Skip to content

Commit 14b8336

Browse files
committed
🏗 Create tsconfig for build
1 parent 0c97746 commit 14b8336

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"scripts": {
1010
"prebuild": "rm -rf dist",
11-
"build": "tsc -p tsconfig.json && cpx 'src/lua/*.lua' dist/lua",
11+
"build": "tsc -p tsconfig.build.json && cpx 'src/lua/*.lua' dist/lua",
1212
"prepublish:npm": "npm run build",
1313
"publish:npm": "npm publish --access public",
1414
"prepublish:next": "npm run build",

tsconfig.build.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"exclude": ["node_modules", "dist", "test", "**/*spec.ts"]
4+
}

tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010
"target": "es6",
1111
"sourceMap": false,
1212
"outDir": "./dist",
13-
"rootDir": "./src",
1413
"skipLibCheck": true
1514
},
16-
"include": ["src/**/*"],
15+
"include": ["src/**/*", "test/**/*"],
1716
"exclude": ["node_modules", "**/*.spec.ts"]
1817
}

0 commit comments

Comments
 (0)