From 70f8e7fbf9429460c6c0e203aadd3a4a49018ba5 Mon Sep 17 00:00:00 2001 From: Jack Kavanagh Date: Mon, 6 Jun 2022 12:50:09 +0200 Subject: [PATCH] only build sr when used (#4772) --- package.json | 2 +- packages/insomnia/package.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3b0416775..7b78a3989 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "publish": "lerna publish from-package", "clean": "lerna run clean --parallel --stream && lerna clean --yes && rimraf node_modules **/*.tsbuildinfo", "test": "lerna run --stream --parallel test", - "inso-start": "npm start --prefix packages/insomnia-inso", + "inso-start": "npm run build:sr --prefix packages/insomnia && npm start --prefix packages/insomnia-inso", "inso-package": "npm run build:sr --prefix packages/insomnia && npm run package --prefix packages/insomnia-inso", "inso-package:artifacts": "npm run artifacts --prefix packages/insomnia-inso", "watch:app": "npm run build:main.min.js --prefix packages/insomnia && npm run start:dev-server --prefix packages/insomnia", diff --git a/packages/insomnia/package.json b/packages/insomnia/package.json index aff2c5173..be614619c 100644 --- a/packages/insomnia/package.json +++ b/packages/insomnia/package.json @@ -17,9 +17,8 @@ "author": "Kong ", "main": "src/main.min.js", "scripts": { - "bootstrap": "npm run build:sr", "prebuild": "npm run clean", - "build": "npm run build:sr && npm run build:app", + "build": "npm run build:app", "build:app": "esr --cache ./scripts/build.ts --noErrorTruncation", "build:main.min.js": "cross-env NODE_ENV=development esr esbuild.main.ts", "build:sr": "concurrently --names sr:source,sr:types \"npm run build:sr:source\" \"npm run build:sr:types\"",