Skip to content

Commit a5bab3b

Browse files
committed
Enable verbatimModuleSyntax TypeScript config
1 parent c9ec669 commit a5bab3b

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

packages/react-clock/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"scripts": {
2121
"build": "yarn build-js && yarn copy-styles",
2222
"build-js": "yarn build-js-esm && yarn build-js-cjs && yarn build-js-cjs-package",
23-
"build-js-esm": "tsc --project tsconfig.build.json --outDir dist/esm --module esnext",
24-
"build-js-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs",
23+
"build-js-esm": "tsc --project tsconfig.build.json --outDir dist/esm",
24+
"build-js-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --verbatimModuleSyntax false",
2525
"build-js-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
2626
"clean": "rimraf dist",
2727
"copy-styles": "cpy 'src/**/*.css' dist",

packages/react-clock/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
"esModuleInterop": true,
55
"isolatedModules": true,
66
"jsx": "react",
7+
"module": "esnext",
78
"moduleResolution": "node",
89
"noUncheckedIndexedAccess": true,
910
"outDir": "dist",
1011
"strict": true,
11-
"target": "es5"
12+
"target": "es5",
13+
"verbatimModuleSyntax": true
1214
},
1315
"include": ["src"]
1416
}

sample/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"noUncheckedIndexedAccess": true,
1010
"outDir": "dist",
1111
"strict": true,
12-
"target": "es5"
12+
"target": "esnext",
13+
"verbatimModuleSyntax": true
1314
}
1415
}

test/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"noUncheckedIndexedAccess": true,
1010
"outDir": "dist",
1111
"strict": true,
12-
"target": "es5"
12+
"target": "esnext",
13+
"verbatimModuleSyntax": true
1314
}
1415
}

0 commit comments

Comments
 (0)