Skip to content

Commit dbef4b8

Browse files
committed
Enable verbatimModuleSyntax TypeScript config
1 parent 94a4a14 commit dbef4b8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
},
1515
"scripts": {
1616
"build": "yarn build-esm && yarn build-cjs && yarn build-cjs-package",
17-
"build-esm": "tsc --project tsconfig.build.json --outDir dist/esm --module esnext",
18-
"build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs",
17+
"build-esm": "tsc --project tsconfig.build.json --outDir dist/esm",
18+
"build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --verbatimModuleSyntax false",
1919
"build-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
2020
"clean": "rimraf dist",
2121
"lint": "eslint .",

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
"declaration": true,
44
"esModuleInterop": true,
55
"isolatedModules": true,
6+
"module": "esnext",
67
"moduleResolution": "node",
78
"noUncheckedIndexedAccess": true,
89
"outDir": "dist",
910
"strict": true,
10-
"target": "es5"
11+
"target": "es5",
12+
"verbatimModuleSyntax": true
1113
},
1214
"include": ["src"]
1315
}

0 commit comments

Comments
 (0)