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 eff525c commit 3ca0851
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/react-calendar/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",
"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",
"clean": "rimraf dist",
"copy-styles": "cpy 'src/**/*.css' dist",
Expand Down
4 changes: 3 additions & 1 deletion packages/react-calendar/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 3ca0851

Please sign in to comment.