From 055d616ecd7989d1fd52a7dea7bdad0faa8040c3 Mon Sep 17 00:00:00 2001 From: Slava Bereza Date: Thu, 30 Nov 2023 19:42:41 +0300 Subject: [PATCH] chore: migrate to mjs --- index.js => index.mjs | 0 jest.config.cjs | 6 ++++++ package.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) rename index.js => index.mjs (100%) create mode 100644 jest.config.cjs diff --git a/index.js b/index.mjs similarity index 100% rename from index.js rename to index.mjs diff --git a/jest.config.cjs b/jest.config.cjs new file mode 100644 index 0000000..7f8b211 --- /dev/null +++ b/jest.config.cjs @@ -0,0 +1,6 @@ +module.exports = { + transform: { + "^.+\\.mjs$": "babel-jest", + "^.+\\.ts$": "babel-jest", + }, +} \ No newline at end of file diff --git a/package.json b/package.json index 813df85..018806a 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "2.0.0", "description": "How to easy collect unsubscribe functions from several sources", "type": "module", - "main": "index.js", + "main": "index.mjs", "types": "index.d.ts", "scripts": { "test": "jest"