Skip to content

Commit 10e833f

Browse files
committed
Add command validating the build is under the right path
1 parent aca9ecd commit 10e833f

1 file changed

Lines changed: 3 additions & 1 deletion

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 --rootDir .",

0 commit comments

Comments
 (0)