Get dev mode fixed (#7447)

* Get dev mode fixed

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add empty scripts for windows to satisfy run-script-os

Signed-off-by: Sebastian Malton <sebastian@malton.name>

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2023-03-31 15:30:21 -04:00
1 parent fe2fd4c1fd
commit b5a085b55c
25 files changed
+55 -52

No files matched your search

+6 -2
View File
@@ -5,7 +5,10 @@
"license": "MIT",
"scripts": {
"clean": "rimraf dist/",
"build": "swc ./src/index.ts -d ./dist"
"build": "swc ./src/index.ts -d ./dist",
"postbuild": "run-script-os",
"postbuild:windows": "",
"postbuild:nix": "chmod u+x ./dist/index.js"
},
"type": "module",
"bin": "./dist/index.js",
@@ -26,6 +29,7 @@
"@swc/core": "^1.3.44",
"@types/node": "^16.18.11",
"@types/semver": "^7.3.13",
"rimraf": "^4.4.1"
"rimraf": "^4.4.1",
"run-script-os": "^1.1.6"
}
}
-8
View File
@@ -48,8 +48,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production webpack --config webpack/library-bundle.ts --progress",
"clean": "rimraf dist static/build",
"prepare:dev": "cross-env NODE_ENV=development webpack --config webpack/library-bundle.ts --progress",
"dev": "cross-env NODE_ENV=development webpack --config webpack/library-bundle.ts --watch",
"test:unit": "jest --testPathIgnorePatterns integration",
"test:watch": "func() { jest ${1} --watch --testPathIgnorePatterns integration; }; func",
"lint": "PROD=true eslint --ext js,ts,tsx --max-warnings=0 .",
@@ -98,7 +96,6 @@
],
"runtime": "@side/jest-runtime"
},
"build": {},
"nx": {
"targets": {
"build": {
@@ -108,11 +105,6 @@
"outputs": [
"{workspaceRoot}/static/build/"
]
},
"dev": {
"outputs": [
"{workspaceRoot}/static/build/"
]
}
}
},
+5 -1
View File
@@ -7,6 +7,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",
"prepare:dev": "npm run build",
"prepare": "npm run build"
},
@@ -38,6 +41,7 @@
"@types/node": "^16.18.11",
"@types/semver": "^7.3.13",
"@types/tar-stream": "^2.2.2",
"rimraf": "^4.4.1"
"rimraf": "^4.4.1",
"run-script-os": "^1.1.6"
}
}
+5 -1
View File
@@ -6,6 +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",
"prepare:dev": "npm run build",
"prepare": "npm run build"
},
@@ -27,7 +30,8 @@
"@types/jsdom": "^20.0.1",
"@types/node": "^18.11.18",
"@types/sharp": "^0.31.1",
"rimraf": "^4.4.1"
"rimraf": "^4.4.1",
"run-script-os": "^1.1.6"
},
"dependencies": {
"arg": "^5.0.2",
@@ -32,7 +32,6 @@
"scripts": {
"clean": "rimraf dist/",
"build": "webpack --config webpack.ts",
"dev": "webpack --mode=development --watch --config webpack.ts",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"
},
+1 -11
View File
@@ -28,8 +28,7 @@
"build:dir": "npm run compile && electron-builder --dir",
"compile": "cross-env NODE_ENV=production webpack --config webpack/webpack.ts --progress",
"postcompile": "npm run build:tray-icons && npm run download:binaries",
"predev": "rimraf static/build/ && npm run build:tray-icons && npm run download:binaries",
"dev": "concurrently -i -k \"npm run dev-run -C\" npm:dev:*",
"start": "concurrently -i -k \"npm run dev-run -C\" npm:dev:*",
"dev-run": "nodemon --watch ./static/build/main.js --exec \"electron --remote-debugging-port=9223 --inspect .\"",
"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",
@@ -70,15 +69,6 @@
"{workspaceRoot}/static/build/"
]
},
"dev": {
"dependsOn": [
"^prepare:dev"
],
"outputs": [
"{workspaceRoot}/binaries/",
"{workspaceRoot}/static/build/"
]
},
"build:app": {
"dependsOn": [
"build"
+6 -2
View File
@@ -7,7 +7,10 @@
"private": true,
"scripts": {
"clean": "rimraf dist/",
"build": "swc ./src/index.ts -d ./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"
@@ -19,7 +22,8 @@
"@types/inquirer": "^9.0.3",
"@types/node": "^16.18.11",
"@types/semver": "^7.3.13",
"rimraf": "^4.4.1"
"rimraf": "^4.4.1",
"run-script-os": "^1.1.6"
},
"dependencies": {
"chalk": "^5.2.0",
@@ -24,8 +24,8 @@
"license": "MIT",
"homepage": "https://github.com/lensapp/lens",
"scripts": {
"clean": "rimraf dist/",
"build": "webpack",
"dev": "webpack --mode=development --watch",
"test:unit": "jest --coverage --runInBand",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"
@@ -24,8 +24,8 @@
"license": "MIT",
"homepage": "https://github.com/lensapp/lens",
"scripts": {
"clean": "rimraf dist/",
"build": "webpack",
"dev": "webpack --mode=development --watch",
"test:unit": "jest --coverage --runInBand",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"
@@ -24,8 +24,8 @@
"license": "MIT",
"homepage": "https://github.com/lensapp/lens",
"scripts": {
"clean": "rimraf dist/",
"build": "webpack",
"dev": "webpack --mode=development --watch",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"
},
@@ -24,8 +24,8 @@
"license": "MIT",
"homepage": "https://github.com/lensapp/lens",
"scripts": {
"clean": "rimraf dist/",
"build": "webpack",
"dev": "webpack --mode=development --watch",
"test:unit": "jest --coverage --runInBand",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"
@@ -26,8 +26,8 @@
"license": "MIT",
"homepage": "https://github.com/lensapp/lens",
"scripts": {
"clean": "rimraf dist/",
"build": "webpack",
"dev": "webpack --mode=development --watch",
"test:unit": "jest --coverage --runInBand",
"lint:fix": "lens-lint --fix",
"lint": "lens-lint"
@@ -26,8 +26,8 @@
"license": "MIT",
"homepage": "https://github.com/lensapp/lens",
"scripts": {
"clean": "rimraf dist/",
"build": "webpack",
"dev": "webpack --mode=development --watch",
"test:unit": "jest --coverage --runInBand",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"
@@ -26,8 +26,8 @@
"license": "MIT",
"homepage": "https://github.com/lensapp/lens",
"scripts": {
"clean": "rimraf dist/",
"build": "webpack",
"dev": "webpack --mode=development --watch",
"test:unit": "jest --coverage --runInBand",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"
@@ -26,8 +26,8 @@
"license": "MIT",
"homepage": "https://github.com/lensapp/lens",
"scripts": {
"clean": "rimraf dist/",
"build": "webpack",
"dev": "webpack --mode=development --watch",
"test:unit": "jest --coverage --runInBand",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"
@@ -26,8 +26,8 @@
"license": "MIT",
"homepage": "https://github.com/lensapp/lens",
"scripts": {
"clean": "rimraf dist/",
"build": "webpack",
"dev": "webpack --mode=development --watch",
"test:unit": "jest --coverage --runInBand",
"lint:fix": "lens-lint --fix",
"lint": "lens-lint"
@@ -24,8 +24,8 @@
"license": "MIT",
"homepage": "https://github.com/lensapp/lens",
"scripts": {
"clean": "rimraf dist/",
"build": "webpack",
"dev": "webpack --mode=development --watch",
"test:unit": "jest --coverage --runInBand",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"
@@ -20,8 +20,8 @@
"license": "MIT",
"homepage": "https://github.com/lensapp/lens",
"scripts": {
"clean": "rimraf dist/",
"build": "webpack",
"dev": "webpack --mode=development --watch",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"
},
@@ -20,8 +20,8 @@
"license": "MIT",
"homepage": "https://github.com/lensapp/lens",
"scripts": {
"clean": "rimraf dist/",
"build": "webpack",
"dev": "webpack --mode=development --watch",
"test:unit": "jest --coverage --runInBand"
},
"peerDependencies": {
@@ -4,15 +4,10 @@
"version": "1.0.0-alpha.1",
"description": "TBD",
"type": "commonjs",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"files": [
"build"
],
"repository": {
"type": "git",
"url": "git+https://github.com/lensapp/lens.git"
@@ -26,8 +21,8 @@
"license": "MIT",
"homepage": "https://github.com/lensapp/lens",
"scripts": {
"clean": "rimraf dist/",
"build": "webpack",
"dev": "webpack --mode=development --watch",
"test:unit": "jest --coverage --runInBand",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"
@@ -20,8 +20,8 @@
"license": "MIT",
"homepage": "https://github.com/lensapp/lens",
"scripts": {
"build": "webpack",
"dev": "webpack --mode=development --watch"
"clean": "rimraf dist/",
"build": "webpack"
},
"peerDependencies": {
"@ogre-tools/injectable": "^15.1.2",
@@ -20,8 +20,8 @@
"license": "MIT",
"homepage": "https://github.com/lensapp/lens",
"scripts": {
"clean": "rimraf dist/",
"build": "webpack",
"dev": "webpack --mode=development --watch",
"test:unit": "jest --coverage --runInBand"
},
"peerDependencies": {