{ "name": "open-lens", "private": true, "productName": "OpenLens", "description": "OpenLens - Open Source IDE for Kubernetes", "homepage": "https://github.com/lensapp/lens", "version": "6.5.0-alpha.1", "repository": { "type": "git", "url": "git+https://github.com/lensapp/lens.git" }, "keywords": [], "bugs": { "url": "https://github.com/lensapp/lens/issues" }, "main": "static/build/main.js", "copyright": "© 2023 OpenLens Authors", "license": "MIT", "author": "OpenLens Authors ", "scripts": { "clean": "rimraf binaries/ dist/ static/build", "build": "npm run compile", "postbuild": "npm run build:tray-icons && npm run download:binaries", "build:app": "electron-builder --publish onTag", "prebuild:app": "run-script-os", "prebuild:app:default": "exit 0", "prebuild:app:win32": "rimraf node_modules/win-ca/pem", "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:*", "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", "test:integration": "jest -xyz --runInBand --detectOpenHandles --forceExit --modulePaths=[\"/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", "postinstall": "electron-rebuild" }, "config": { "k8sProxyVersion": "0.3.0", "bundledKubectlVersion": "1.23.3", "bundledHelmVersion": "3.7.2", "sentryDsn": "", "contentSecurityPolicy": "script-src 'unsafe-eval' 'self'; frame-src https://*.lens.app:*/; img-src * data:", "welcomeRoute": "/welcome" }, "engines": { "node": ">=16 <17" }, "jest": { "collectCoverage": false, "verbose": true, "transform": { "^.+\\.(t|j)sx?$": [ "@swc/jest" ] } }, "nx": { "targets": { "build": { "dependsOn": [ "^build" ], "outputs": [ "{workspaceRoot}/binaries/", "{workspaceRoot}/build/webpack/", "{workspaceRoot}/static/build/" ] }, "dev": { "dependsOn": [ "^prepare:dev" ], "outputs": [ "{workspaceRoot}/binaries/", "{workspaceRoot}/static/build/" ] }, "build:app": { "dependsOn": [ "build" ], "outputs": [ "{workspaceRoot}/dist/" ] }, "test:integration": { "dependsOn": [ "build:app" ] } } }, "build": { "npmRebuild": false, "electronVersion": "19.1.9", "generateUpdatesFilesForAllChannels": true, "files": [ "static/**/*", "!node_modules/@k8slens/core/node_modules/**/*", "!node_modules/@k8slens/core/src" ], "afterSign": "build/notarize.js", "extraResources": [ { "from": "templates/", "to": "./templates/", "filter": "**/*.yaml" }, "LICENSE" ], "linux": { "category": "Network", "artifactName": "${productName}-${version}.${arch}.${ext}", "target": [ "deb", "rpm", "AppImage" ], "extraResources": [ { "from": "binaries/client/linux/${arch}/kubectl", "to": "./${arch}/kubectl" }, { "from": "binaries/client/linux/${arch}/lens-k8s-proxy", "to": "./${arch}/lens-k8s-proxy" }, { "from": "binaries/client/linux/${arch}/helm", "to": "./${arch}/helm" } ] }, "rpm": { "fpm": [ "--rpm-rpmbuild-define=%define _build_id_links none" ] }, "mac": { "hardenedRuntime": true, "gatekeeperAssess": false, "entitlements": "build/entitlements.mac.plist", "entitlementsInherit": "build/entitlements.mac.plist", "extraResources": [ { "from": "binaries/client/darwin/${arch}/kubectl", "to": "./${arch}/kubectl" }, { "from": "binaries/client/darwin/${arch}/lens-k8s-proxy", "to": "./${arch}/lens-k8s-proxy" }, { "from": "binaries/client/darwin/${arch}/helm", "to": "./${arch}/helm" } ] }, "win": { "target": [ "nsis" ], "extraResources": [ { "from": "binaries/client/windows/${arch}/kubectl.exe", "to": "./${arch}/kubectl.exe" }, { "from": "binaries/client/windows/${arch}/lens-k8s-proxy.exe", "to": "./${arch}/lens-k8s-proxy.exe" }, { "from": "binaries/client/windows/${arch}/helm.exe", "to": "./${arch}/helm.exe" } ] }, "nsis": { "include": "build/installer.nsh", "oneClick": false, "allowElevation": true, "createStartMenuShortcut": true, "allowToChangeInstallationDirectory": true }, "protocols": { "name": "Lens Protocol Handler", "schemes": [ "lens" ], "role": "Viewer" } }, "dependencies": { "@k8slens/application": "^6.5.0-alpha.1", "@k8slens/application-for-electron-main": "^6.5.0-alpha.1", "@k8slens/core": "^6.5.0-alpha.1", "@k8slens/ensure-binaries": "^6.5.0-alpha.1", "@k8slens/feature-core": "^6.5.0-alpha.1", "@k8slens/generate-tray-icons": "^6.5.0-alpha.1", "@k8slens/run-many": "^1.0.0-alpha.1", "@k8slens/test-utils": "^1.0.0-alpha.1", "@k8slens/utilities": "^1.0.0-alpha.1", "@ogre-tools/fp": "^15.1.2", "@ogre-tools/injectable": "^15.1.2", "@ogre-tools/injectable-extension-for-auto-registration": "^15.1.2", "@ogre-tools/injectable-extension-for-mobx": "^15.1.2", "@ogre-tools/injectable-react": "^15.1.2", "mobx": "^6.8.0", "rimraf": "^4.1.2" }, "devDependencies": { "@electron/rebuild": "^3.2.10", "@k8slens/node-fetch": "^6.5.0-alpha.1", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10", "@swc/cli": "^0.1.61", "@swc/core": "^1.3.37", "@swc/jest": "^0.2.24", "@types/byline": "^4.2.33", "@types/chart.js": "^2.9.36", "@types/color": "^3.0.3", "@types/crypto-js": "^3.1.47", "@types/lodash": "^4.14.191", "@types/node": "^16.18.6", "@types/proper-lockfile": "^4.1.2", "@types/react-dom": "^17.0.16", "@types/react-router-dom": "^5.3.3", "@types/react-virtualized-auto-sizer": "^1.0.1", "@types/react-window": "^1.8.5", "@types/request-promise-native": "^1.0.18", "@types/tar": "^6.1.4", "@types/tcp-port-used": "^1.0.1", "@types/url-parse": "^1.4.8", "@types/uuid": "^8.3.4", "@types/webpack": "^5.28.0", "@types/webpack-dev-server": "^4.7.2", "@types/webpack-env": "^1.18.0", "@types/webpack-node-externals": "2.5.3", "abort-controller": "^3.0.0", "autoprefixer": "^10.4.13", "circular-dependency-plugin": "^5.2.2", "concurrently": "^7.6.0", "copy-webpack-plugin": "^11.0.0", "cross-env": "^7.0.3", "css-loader": "^6.7.2", "electron": "^19.1.9", "electron-builder": "^23.6.0", "electron-notarize": "^0.3.0", "esbuild-loader": "^2.20.0", "fork-ts-checker-webpack-plugin": "^7.3.0", "html-webpack-plugin": "^5.5.0", "jest": "^28.1.3", "jest-environment-jsdom": "^28.1.3", "jsonfile": "^6.1.0", "mini-css-extract-plugin": "^2.7.1", "monaco-editor": "^0.29.1", "monaco-editor-webpack-plugin": "^5.0.0", "node-loader": "^2.0.0", "nodemon": "^2.0.20", "playwright": "^1.30.0", "react-refresh": "^0.14.0", "react-refresh-typescript": "^2.0.7", "react-select": "^5.7.0", "rimraf": "^4.1.2", "run-script-os": "^1.1.6", "style-loader": "^3.3.1", "tailwindcss": "^3.2.4", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", "type-fest": "^2.14.0", "typed-emitter": "^1.4.0", "typescript": "^4.9.5", "typescript-plugin-css-modules": "^4.1.1", "webpack": "^5.75.0", "webpack-cli": "^4.9.2", "webpack-dev-server": "^4.11.1", "webpack-node-externals": "^3.0.0", "xterm-addon-fit": "^0.5.0" } }