Skip to content

Commit

Permalink
馃敤 Update typescript build process
Browse files Browse the repository at this point in the history
  • Loading branch information
kiliman committed Nov 10, 2022
1 parent 0492eeb commit 189a428
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"sideEffects": false,
"scripts": {
"clean": "rimraf dist",
"build": "tsc --project tsconfig.build.json --module CommonJS --outDir ./dist",
"build": "npm run clean && tsc --project tsconfig.build.json --module CommonJS --outDir ./dist",
"test": "jest",
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate",
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts"]
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"strict": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"declaration": true
"declaration": true,
"noEmit": true
},
"exclude": ["node_modules"],
"include": ["src/**/*.ts", "src/**/*.tsx", "test/**/*.ts"]
Expand Down

0 comments on commit 189a428

Please sign in to comment.