From b2db0c2eceeccc5284f5c4c4bc251ecc2d38af1d Mon Sep 17 00:00:00 2001 From: Shahar Talmi Date: Sat, 17 Sep 2022 23:53:47 +0300 Subject: [PATCH] added a build command --- package.json | 3 ++- packages/vscode-import-cost/package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3afd6b4..d4c218a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "scripts": { "prepare": "husky install", "lint": "eslint . && npm run lint --workspaces --if-present", - "test": "npm run test --workspaces --if-present" + "test": "npm run test --workspaces --if-present", + "build": "npm run build --workspaces --if-present" }, "devDependencies": { "eslint": "^8.3.0", diff --git a/packages/vscode-import-cost/package.json b/packages/vscode-import-cost/package.json index 6d2b9da..a2e71cc 100644 --- a/packages/vscode-import-cost/package.json +++ b/packages/vscode-import-cost/package.json @@ -161,6 +161,7 @@ }, "scripts": { "pretest": "webpack -c ./webpack.browser.js && webpack -c ./webpack.electron.js", + "build": "npm run pretest && vsce package --no-dependencies", "test": "node ./test/index.js" }, "devDependencies": {