Revert "only build sr when used (#4772)" (#5075)

This reverts commit 70f8e7fbf9.
This commit is contained in:
David Fluck 2022-08-15 14:15:30 -04:00 committed by GitHub
parent 6f227ffa11
commit a3fa6ca87f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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 run build:sr --prefix packages/insomnia && npm start --prefix packages/insomnia-inso",
"inso-start": "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",

View File

@ -17,8 +17,9 @@
"author": "Kong <office@konghq.com>",
"main": "src/main.min.js",
"scripts": {
"bootstrap": "npm run build:sr",
"prebuild": "npm run clean",
"build": "npm run build:app",
"build": "npm run build:sr && 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\"",