1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Swtich @k8slens/download-binaries to provide a binary

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-01-27 08:22:29 -05:00
parent e9b7edea76
commit 3958016091
3 changed files with 4 additions and 5 deletions

View File

@ -6,9 +6,9 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"clean": "rm -rf dist/", "clean": "rm -rf dist/",
"build": "swc ./src/index.ts -o ./dist/index.mjs", "build": "swc ./src/index.ts -o ./dist/index.mjs"
"download": "node ./dist/index.mjs"
}, },
"bin": "./dist/index.mjs",
"files": [ "files": [
"dist" "dist"
], ],

View File

@ -1,3 +1,4 @@
#!/usr/bin/env node
/** /**
* Copyright (c) OpenLens Authors. All rights reserved. * Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information. * Licensed under MIT License. See LICENSE in root directory for more information.
@ -17,8 +18,6 @@ import fetch from "node-fetch"
import z from "zod"; import z from "zod";
import arg from "arg"; import arg from "arg";
console.log(process.argv)
const options = arg({ const options = arg({
"--package": String, "--package": String,
"--base-dir": String, "--base-dir": String,

View File

@ -35,7 +35,7 @@
"dev:renderer": "env NODE_ENV=development ts-node ./webpack/dev-server.ts", "dev:renderer": "env NODE_ENV=development ts-node ./webpack/dev-server.ts",
"test:integration": "jest -xyz --runInBand --detectOpenHandles --forceExit --modulePaths=[\"<rootDir>/integration/\"];", "test:integration": "jest -xyz --runInBand --detectOpenHandles --forceExit --modulePaths=[\"<rootDir>/integration/\"];",
"build:tray-icons": "ts-node build/generate-tray-icons.ts", "build:tray-icons": "ts-node build/generate-tray-icons.ts",
"download:binaries": "cd node_modules/@k8slens/download-binaries && npm run download -- --package $INIT_CWD/package.json --base-dir $INIT_CWD/binaries/client" "download:binaries": "npm exec -- @k8slens/download-binaries --package $INIT_CWD/package.json --base-dir $INIT_CWD/binaries/client"
}, },
"config": { "config": {
"k8sProxyVersion": "0.3.0", "k8sProxyVersion": "0.3.0",