Skip to content

Commit fd3d131

Browse files
committed
Add command validating the build is under the right path
1 parent 514aaa5 commit fd3d131

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
"build": "run-s clean compile",
5151
"clean": "run-p clean:*",
5252
"clean:build": "rimraf ./lib",
53-
"compile": "tsc --build tsconfig.build.json",
53+
"compile": "run-s compile:*",
54+
"compile:lib": "tsc --build tsconfig.build.json",
55+
"compile:check": "if [ ! -f lib/index.js ] || [ $(find lib -type f | wc -l) -le 30 ]; then echo 'File structure under lib is broken'; exit 1; fi",
5456
"tsc:root-types": "node types-checks-filter-out-node_modules.js",
5557
"test": "run-s test:*",
5658
"test:tsc": "tsc --project tsconfig.json --noEmit",

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"outDir": "./lib/",
88
"module": "esnext",
99
"target": "es2022",
10-
"rootDir": ".",
1110
"lib": ["ES2022", "DOM"],
1211
"strictBindCallApply": true,
1312
"removeComments": true,

0 commit comments

Comments
 (0)