Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ni55aN committed Aug 29, 2024
1 parent d795099 commit 5cbf00a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"rete": "./bin/index.js"
},
"scripts": {
"build": "tsc",
"build": "tsc -p tsconfig.build.json",
"dev": "tsc --watch",
"lint": "eslint src",
"test": "jest --preset ts-jest --coverage --testEnvironment node --collectCoverageFrom 'src/**/*' --testMatch '**/*.test.ts'"
Expand Down
8 changes: 8 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "bin",
"declaration": true,
},
"include": ["src"],
}
4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "./configs/tsconfig.json",
"compilerOptions": {
"outDir": "bin",
"declaration": true,
"target": "ES2018",
"moduleResolution": "Node",
"module": "CommonJS",
Expand All @@ -13,5 +11,5 @@
"noUnusedLocals": true,
"skipLibCheck": true
},
"include": ["src"],
"include": ["src", "test"],
}

0 comments on commit 5cbf00a

Please sign in to comment.