diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index c16c644..b50ecd9 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,4 +1,4 @@ -Fixes # +Fixes # > It's a good idea to open an issue first for discussion. diff --git a/jest.config.js b/jest.config.js index 2281444..87c30aa 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,4 +1,4 @@ -export default { +module.exports = { preset: 'ts-jest', testEnvironment: 'node', } diff --git a/package.json b/package.json index bacf44c..9c6efb2 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,7 @@ "i18next-plugin", "i18next-preprocessor" ], - "type": "module", - "main": "lib/index.js", + "exports": "./lib/index.js", "types": "lib/index.d.ts", "files": [ "src", diff --git a/tsconfig.json b/tsconfig.json index 974647f..3f59589 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,8 @@ { "compilerOptions": { - "module": "ESNext", + "module": "CommonJS", "target": "ES6", "removeComments": true, - "moduleResolution": "node", - "esModuleInterop": true, "strict": true, "skipLibCheck": true, "sourceMap": true,