Skip to content

Commit

Permalink
build: use ts verbatimModuleSyntax for future type erasure
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jan 17, 2025
1 parent babdea4 commit 8a7a927
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"typescript": "5.5.2"
},
"scripts": {
"build": "tsc && tsc -p tsconfig.esm.json",
"build": "tsc && tsc -p tsconfig.cjs.json",
"build:release": "cd build; npm run build:release",
"lint": "prettier --check src",
"format": "prettier --write src",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.esm.json → tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "@paulmillr/jsbt/tsconfigs/esm.json",
"extends": "@paulmillr/jsbt/tsconfigs/cjs.json",
"compilerOptions": {
"outDir": "lib/esm"
"outDir": "lib"
},
"include": ["index.ts", "src"],
"exclude": ["node_modules", "lib"]
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "@paulmillr/jsbt/tsconfigs/cjs.json",
"extends": "@paulmillr/jsbt/tsconfigs/esm.json",
"compilerOptions": {
"outDir": "lib"
"outDir": "lib/esm"
},
"include": ["index.ts", "src"],
"exclude": ["node_modules", "lib"]
Expand Down

0 comments on commit 8a7a927

Please sign in to comment.