Skip to content

Commit

Permalink
chore: add seperate tsconfig for build
Browse files Browse the repository at this point in the history
  • Loading branch information
cyntler committed Apr 9, 2024
1 parent bb385e1 commit 37cc0a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"scripts": {
"start": "rimraf dist && tsc --watch",
"build": "rimraf dist && npm run build:esm && npm run build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
"build:esm": "tsc -p tsconfig.build.json",
"build:cjs": "tsc -p tsconfig.build.json --module commonjs --outDir dist/cjs",
"test": "jest",
"test:watch": "jest --watch",
"check-prettier": "prettier --check ./src",
Expand Down
4 changes: 4 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["./dist", "**/*.test.tsx"]
}

0 comments on commit 37cc0a2

Please sign in to comment.