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 d6cec07 commit 39f6d8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
},
"scripts": {
"build": "yarn build-esm && yarn build-cjs && yarn build-cjs-package",
"build-esm": "tsc --project tsconfig.build.json --outDir dist/esm --module esnext",
"build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs",
"build-esm": "tsc --project tsconfig.build.json --outDir dist/esm",
"build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --verbatimModuleSyntax false",
"build-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
"clean": "rimraf dist",
"lint": "eslint .",
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
"declaration": true,
"esModuleInterop": true,
"isolatedModules": true,
"module": "esnext",
"moduleResolution": "node",
"noUncheckedIndexedAccess": true,
"outDir": "dist",
"strict": true,
"target": "es5"
"target": "es5",
"verbatimModuleSyntax": true
},
"include": ["src"]
}

0 comments on commit 39f6d8b

Please sign in to comment.