Skip to content

Commit 3744dbc

Browse files
committed
tasks: add npm ls to preversion script
- npm ls exits with code 1 (i.e. errors out) when a unmet dependencies are present in node_modules/ - use this to as a sanity check before versioning and bundling
1 parent 5acfb06 commit 3744dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"start-image_viewer": "node devtools/image_viewer/server.js",
4545
"start": "npm run start-test_dashboard",
4646
"baseline": "node tasks/baseline.js",
47-
"preversion": "npm-link-check && npm dedupe",
47+
"preversion": "npm-link-check && && npm dedupe && npm ls",
4848
"version": "npm run build && git add -A dist src build",
4949
"postversion": "git push && git push --tags"
5050
},

0 commit comments

Comments
 (0)