Skip to content

Commit a17c30f

Browse files
committed
Update the package build script.
1 parent 4e2334a commit a17c30f

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

build-package.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@
33
# exit on any error
44
set -e
55

6+
# validate branches
67
. ./pre-check.sh
78

8-
tsc
9+
# pre-requisites
10+
npm run lint
11+
npm test
12+
13+
# clean any old files
14+
npm run clean
15+
npm install
16+
17+
# build
18+
npm run build
919
npm pack

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"noLib": false,
1111
"declaration": true,
1212
"outDir": "dist",
13+
"rootDir": "src",
1314
"esModuleInterop": true,
1415
"allowSyntheticDefaultImports": true,
1516
"strict": true,
@@ -20,6 +21,7 @@
2021
},
2122
"exclude": [
2223
"node_modules",
24+
"src/*_test.ts",
2325
"dist"
2426
],
2527
"include": [

0 commit comments

Comments
 (0)