From e61a3a3913200c4c931fd941b4271da26a1e9785 Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Wed, 17 Apr 2019 13:44:50 +0100 Subject: [PATCH] Add test for clean dependency tree Breaks the build if any packages are missing --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c76d8a01fc..b0b72954f3 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "release-to-branch": "node bin/check-nvmrc.js && ./bin/release-to-branch.sh", "build:package": "node bin/check-nvmrc.js && gulp build:package --destination 'package' && npm run test:build:package", "build:dist": "node bin/check-nvmrc.js && gulp build:dist --destination 'dist' && npm run test:build:dist", - "test": "standard && gulp test && gulp copy-assets && jest --testPathIgnorePatterns='after-*'", + "test": "npm run test:dependencies && standard && gulp test && gulp copy-assets && jest --testPathIgnorePatterns='after-*'", + "test:dependencies": "npm ls --depth=0", "test:build:package": "jest tasks/gulp/__tests__/after-build-package.test.js", "test:build:dist": "jest tasks/gulp/__tests__/after-build-dist.test.js" },