diff --git a/packages/react-timerange-picker/package.json b/packages/react-timerange-picker/package.json index 87a1ab1..dbc6c34 100644 --- a/packages/react-timerange-picker/package.json +++ b/packages/react-timerange-picker/package.json @@ -21,7 +21,7 @@ "build": "yarn build-js && yarn copy-styles", "build-js": "yarn build-js-esm && yarn build-js-cjs && yarn build-js-cjs-package && yarn build-js-cjs-replace", "build-js-esm": "tsc --project tsconfig.build.json --outDir dist/esm", - "build-js-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --verbatimModuleSyntax false", + "build-js-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --moduleResolution node --verbatimModuleSyntax false", "build-js-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json", "build-js-cjs-replace": "replace-in-files --string='/dist/esm/' --replacement='/dist/cjs/' dist/cjs/**/*", "clean": "rimraf dist", diff --git a/packages/react-timerange-picker/tsconfig.json b/packages/react-timerange-picker/tsconfig.json index 5da9a00..bab43ff 100644 --- a/packages/react-timerange-picker/tsconfig.json +++ b/packages/react-timerange-picker/tsconfig.json @@ -4,8 +4,8 @@ "esModuleInterop": true, "isolatedModules": true, "jsx": "react", - "module": "esnext", - "moduleResolution": "node", + "module": "nodenext", + "moduleResolution": "nodenext", "noEmit": true, "noUncheckedIndexedAccess": true, "outDir": "dist",