Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit c43eb3d

Browse files
committed
add PKG_TARGET env variable
1 parent ccbb347 commit c43eb3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"build:vendor": "find src/vendor -name '*.js' -exec esbuild --define:process.env.STAGE=\\\"${STAGE:-}\\\" --define:process.env.NODE_ENV=\\\"${NODE_ENV:-development}\\\" --supported:dynamic-import=false \\{\\} --outdir=dist/vendor --format=cjs --bundle --platform=node \\;",
121121
"build:bundle": "find dist -name '*.js' -not -path 'dist/vendor/*' -exec esbuild --define:process.env.STAGE=\\\"${STAGE:-}\\\" --define:process.env.SNAPLET_CLI_VERSION=\\\"$(./scripts/displayCLIVersion.js)\\\" --define:process.env.NODE_ENV=\\\"${NODE_ENV:-development}\\\" --supported:dynamic-import=false \\{\\} --outfile=\\{\\} --allow-overwrite \\;",
122122
"build": "yarn clean && yarn build:ts && yarn build:bundle && yarn build:vendor",
123-
"build:binary": "pkg ./dist/index.js --output=bin/cli --options no-warnings --config package.json --compress GZip",
123+
"build:binary": "pkg ./dist/index.js --output=bin/cli --options no-warnings --config package.json --compress -t ${PKG_TARGET:-}",
124124
"build:container": "./scripts/buildContainer.js",
125125
"clean": "rm -rf .dts dist",
126126
"dev:auto": "vite-node scripts/dev.ts --",

0 commit comments

Comments
 (0)