From d752997e4fdf6e2922b5f39e43747695dd602059 Mon Sep 17 00:00:00 2001 From: Stephen Niedzielski Date: Thu, 30 Jul 2020 19:31:07 -0600 Subject: [PATCH] [build] Fold NPM build script into test The NPM `build` script was being used to call `test`. The confusion was likely due `build` calling the TypeScript compiler which in this case isn't building anything. It's only used for tests. Since a proper `build` script will be added in T257647. Move the tests in `build` to `test` and drop `build`. Bug: T257647 Change-Id: I7f2c983915f6b1eaa0aa88eb8dd4b32d9c954b78 --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 1ae55eb08..900fd5320 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,7 @@ "private": true, "scripts": { "start": "dev-scripts/setup-storybook.sh && start-storybook --quiet -p 6006 -s docs/ui", - "build": "npm -s test && npm -s run doc", - "test": "npm -s run lint && tsc", + "test": "npm -s run lint && tsc && npm -s run doc", "test:size": "node ./tests/resource-loader-bundlesize.js", "lint": "npm -s run lint:js && npm -s run lint:styles && npm -s run lint:i18n", "lint:fix:js": "npm -s run lint:js -- --fix",