only build sr when used (#4772)

This commit is contained in:
Jack Kavanagh 2022-06-06 12:50:09 +02:00 committed by GitHub
parent 29f530e19c
commit 70f8e7fbf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -20,7 +20,7 @@
"publish": "lerna publish from-package", "publish": "lerna publish from-package",
"clean": "lerna run clean --parallel --stream && lerna clean --yes && rimraf node_modules **/*.tsbuildinfo", "clean": "lerna run clean --parallel --stream && lerna clean --yes && rimraf node_modules **/*.tsbuildinfo",
"test": "lerna run --stream --parallel test", "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": "npm run build:sr --prefix packages/insomnia && npm run package --prefix packages/insomnia-inso",
"inso-package:artifacts": "npm run artifacts --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", "watch:app": "npm run build:main.min.js --prefix packages/insomnia && npm run start:dev-server --prefix packages/insomnia",

View File

@ -17,9 +17,8 @@
"author": "Kong <office@konghq.com>", "author": "Kong <office@konghq.com>",
"main": "src/main.min.js", "main": "src/main.min.js",
"scripts": { "scripts": {
"bootstrap": "npm run build:sr",
"prebuild": "npm run clean", "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:app": "esr --cache ./scripts/build.ts --noErrorTruncation",
"build:main.min.js": "cross-env NODE_ENV=development esr esbuild.main.ts", "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\"", "build:sr": "concurrently --names sr:source,sr:types \"npm run build:sr:source\" \"npm run build:sr:types\"",