Skip to content

Commit

Permalink
use specific tsconfig for cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeBu committed Jul 31, 2024
1 parent 8a28524 commit 0980f0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"build": "rm -rf dist && pnpm build:cjs && pnpm build:esm",
"build:cjs": "tsc -p tsconfig.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json",
"test": "vitest",
"typecheck": "tsc --noEmit",
Expand Down
4 changes: 4 additions & 0 deletions tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["src"]
}

0 comments on commit 0980f0d

Please sign in to comment.