Skip to content

Commit

Permalink
Enable verbatimModuleSyntax TypeScript config
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Oct 7, 2023
1 parent 1175960 commit 4d72a71
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/react-datetimerange-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"scripts": {
"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 --module esnext",
"build-js-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs",
"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-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",
Expand Down
4 changes: 3 additions & 1 deletion packages/react-datetimerange-picker/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
3 changes: 2 additions & 1 deletion sample/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"noUncheckedIndexedAccess": true,
"outDir": "dist",
"strict": true,
"target": "es5"
"target": "esnext",
"verbatimModuleSyntax": true
}
}
3 changes: 2 additions & 1 deletion test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"noUncheckedIndexedAccess": true,
"outDir": "dist",
"strict": true,
"target": "es5"
"target": "esnext",
"verbatimModuleSyntax": true
}
}

0 comments on commit 4d72a71

Please sign in to comment.