diff --git a/packages/react-async-button/package.json b/packages/react-async-button/package.json index fdb8a90..e67fc75 100644 --- a/packages/react-async-button/package.json +++ b/packages/react-async-button/package.json @@ -14,8 +14,8 @@ }, "scripts": { "build": "yarn build-esm && yarn build-cjs && yarn build-cjs-package", - "build-esm": "tsc --project tsconfig.build.json --outDir dist/esm --module esnext", - "build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs", + "build-esm": "tsc --project tsconfig.build.json --outDir dist/esm", + "build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --verbatimModuleSyntax false", "build-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json", "clean": "rimraf dist", "lint": "eslint . --ext .js,.jsx,.ts,.tsx", diff --git a/packages/react-async-button/tsconfig.json b/packages/react-async-button/tsconfig.json index ebc0e5b..b18b5c6 100644 --- a/packages/react-async-button/tsconfig.json +++ b/packages/react-async-button/tsconfig.json @@ -4,11 +4,13 @@ "esModuleInterop": true, "isolatedModules": true, "jsx": "react", + "module": "esnext", "moduleResolution": "node", "noUncheckedIndexedAccess": true, "outDir": "dist", "strict": true, - "target": "es5" + "target": "es5", + "verbatimModuleSyntax": true }, "include": ["src"] } diff --git a/test/tsconfig.json b/test/tsconfig.json index 5fc6458..96ce1f8 100644 --- a/test/tsconfig.json +++ b/test/tsconfig.json @@ -9,6 +9,7 @@ "noUncheckedIndexedAccess": true, "outDir": "dist", "strict": true, - "target": "es5" + "target": "esnext", + "verbatimModuleSyntax": true } }