@winding-labs/zest 2.1.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/zest.js +3 -3
- package/package.json +1 -1
package/bin/zest.js
CHANGED
|
@@ -199,8 +199,8 @@ var addToUserPath = (dir, first = false) => editUserPath(dir, true, first);
|
|
|
199
199
|
|
|
200
200
|
// src/bootstrap.ts
|
|
201
201
|
var REPO = "Winding-Labs/zest-cli";
|
|
202
|
-
var VERSION = "2.1
|
|
203
|
-
var ASSETS = JSON.parse('{"darwin-arm64":{"file":"zest-darwin-arm64.gz","sha256":"
|
|
202
|
+
var VERSION = "2.2.1";
|
|
203
|
+
var ASSETS = JSON.parse('{"darwin-arm64":{"file":"zest-darwin-arm64.gz","sha256":"ec9d47c55860fcb15162e7f05ceb8e8221c0fc1f854809ca5e3cdf3e4df93bcc"},"darwin-x64":{"file":"zest-darwin-x64.gz","sha256":"2b73d6d5b5d63fb2427c8c8c714dcfd9802ce45970e31bbf2ed09496dace0671"},"linux-arm64":{"file":"zest-linux-arm64.gz","sha256":"e9de80996c6babec031b2e5634c9bdae1eca7b9e8b8bda0f6dd02d9127a30473"},"linux-x64":{"file":"zest-linux-x64.gz","sha256":"bc6a0876880f54eb57cdb4d00329f097e65066a9297df50c135156450a4ad3d2"},"win-x64":{"file":"zest-win-x64.exe.zip","sha256":"aac3168bacf1b291ab2186492375bf416ff840e90ffc68267c11bd1e1f2885e9"}}');
|
|
204
204
|
function linkOnPath(target) {
|
|
205
205
|
const dir = join3(homedir2(), ".local", "bin");
|
|
206
206
|
const link = join3(dir, "zest");
|
|
@@ -298,7 +298,7 @@ async function main() {
|
|
|
298
298
|
const hint = windows ? addOnWindowsPath(stable) : linkOnPath(stable);
|
|
299
299
|
if (hint)
|
|
300
300
|
console.log(`Zest CLI is at ${stable}; ${hint}`);
|
|
301
|
-
return spawnSync3(stable, args, { stdio: "inherit" }).status ?? 1;
|
|
301
|
+
return spawnSync3(stable, args, { stdio: "inherit", env: { ...process.env, ZEST_INSTALL_VIA: "npx" } }).status ?? 1;
|
|
302
302
|
}
|
|
303
303
|
main().then((code) => process.exit(code), (error) => {
|
|
304
304
|
console.error(`Zest CLI could not be installed: ${error instanceof Error ? error.message : error}`);
|