chore: Remove most uses of "bin" from workspaces

- Replace with running scripts from a specific workspace

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-04-14 14:42:00 -04:00
1 parent ed0eba548f
commit 3aa6c1666a
9 files changed
+20 -70

No files matched your search

+2 -6
View File
@@ -6,12 +6,9 @@
"scripts": {
"clean": "rimraf dist/",
"build": "swc ./src/index.ts -d ./dist",
"postbuild": "run-script-os",
"postbuild:windows": "",
"postbuild:nix": "chmod u+x ./dist/index.js"
"bump": "./dist/index.js"
},
"type": "module",
"bin": "./dist/index.js",
"files": [
"dist"
],
@@ -29,7 +26,6 @@
"@swc/core": "^1.3.44",
"@types/node": "^16.18.11",
"@types/semver": "^7.3.13",
"rimraf": "^4.4.1",
"run-script-os": "^1.1.6"
"rimraf": "^4.4.1"
}
}
+2 -8
View File
@@ -7,12 +7,7 @@
"scripts": {
"clean": "rimraf dist/",
"build": "swc ./src/index.ts -d ./dist/",
"postbuild": "run-script-os",
"postbuild:windows": "",
"postbuild:nix": "chmod u+x ./dist/index.js"
},
"bin": {
"ensure-binaries": "./dist/index.js"
"ensure": "./dist/index.js"
},
"type": "module",
"files": [
@@ -39,7 +34,6 @@
"@types/node": "^16.18.11",
"@types/semver": "^7.3.13",
"@types/tar-stream": "^2.2.2",
"rimraf": "^4.4.1",
"run-script-os": "^1.1.6"
"rimraf": "^4.4.1"
}
}
+2 -8
View File
@@ -6,12 +6,7 @@
"scripts": {
"clean": "rimraf dist/",
"build": "swc ./src/index.ts -d ./dist/",
"postbuild": "run-script-os",
"postbuild:windows": "",
"postbuild:nix": "chmod u+x ./dist/index.js"
},
"bin": {
"generate-tray-icons": "./dist/index.js"
"generate": "./dist/index.js"
},
"files": [
"dist"
@@ -28,8 +23,7 @@
"@types/jsdom": "^20.0.1",
"@types/node": "^18.11.18",
"@types/sharp": "^0.31.1",
"rimraf": "^4.4.1",
"run-script-os": "^1.1.6"
"rimraf": "^4.4.1"
},
"dependencies": {
"arg": "^5.0.2",
+2 -3
View File
@@ -33,8 +33,8 @@
"dev:main": "cross-env NODE_ENV=development webpack --config webpack/main.ts --progress --watch",
"dev:renderer": "cross-env NODE_ENV=development ts-node ./webpack/dev-server.ts",
"test:integration": "jest -xyz --runInBand --modulePaths=[\"<rootDir>/integration/\"];",
"build:tray-icons": "generate-tray-icons --output ./static/build/tray --input ../../node_modules/@k8slens/core/src/renderer/components/icon/logo-lens.svg --notice-icon ../../node_modules/@k8slens/core/src/renderer/components/icon/notice.svg --spinner-icon ../../node_modules/@k8slens/core/src/renderer/components/icon/arrow-spinner.svg",
"download:binaries": "ensure-binaries --package ./package.json --base-dir ./binaries/client",
"build:tray-icons": "npm run --workspace @k8slens/generate-tray-icons generate -- --output ./static/build/tray --input ../../node_modules/@k8slens/core/src/renderer/components/icon/logo-lens.svg --notice-icon ../../node_modules/@k8slens/core/src/renderer/components/icon/notice.svg --spinner-icon ../../node_modules/@k8slens/core/src/renderer/components/icon/arrow-spinner.svg",
"download:binaries": "npm run --workspace @k8slens/ensure-binaries ensure -- --package ./package.json --base-dir ./binaries/client",
"postinstall": "electron-rebuild"
},
"config": {
@@ -262,7 +262,6 @@
"react-refresh-typescript": "^2.0.7",
"react-select": "^5.7.0",
"rimraf": "^4.4.1",
"run-script-os": "^1.1.6",
"style-loader": "^3.3.1",
"tailwindcss": "^3.3.1",
"ts-loader": "^9.4.2",
+2 -8
View File
@@ -8,12 +8,7 @@
"scripts": {
"clean": "rimraf dist/",
"build": "swc ./src/index.ts -d ./dist",
"postbuild": "run-script-os",
"postbuild:windows": "",
"postbuild:nix": "chmod u+x ./dist/index.js"
},
"bin": {
"create-release-pr": "./dist/index.js"
"create": "./dist/index.js"
},
"type": "module",
"devDependencies": {
@@ -22,8 +17,7 @@
"@types/inquirer": "^9.0.3",
"@types/node": "^16.18.11",
"@types/semver": "^7.3.13",
"rimraf": "^4.4.1",
"run-script-os": "^1.1.6"
"rimraf": "^4.4.1"
},
"dependencies": {
"chalk": "^5.2.0",
@@ -34,9 +34,9 @@
"@k8slens/application": "^6.5.0-alpha.0",
"@k8slens/feature-core": "^6.5.0-alpha.0",
"@k8slens/messaging": "^1.0.0-alpha.1",
"@ogre-tools/fp": "^15.1.2",
"@ogre-tools/injectable": "^15.3.1",
"@ogre-tools/injectable-extension-for-auto-registration": "^15.3.0",
"@ogre-tools/fp": "^15.1.2",
"electron": "^22.3.3",
"lodash": "^4.17.21"
},