pingcode-cli-unofficial 1.8.0 → 1.8.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.
@@ -273,7 +273,7 @@ function printDryRun(plan, mode) {
273
273
  import { Command } from "commander";
274
274
 
275
275
  // src/version.ts
276
- var VERSION = "1.8.0";
276
+ var VERSION = "1.8.1";
277
277
 
278
278
  // src/cli/globals.ts
279
279
  import { Option } from "commander";
@@ -14273,6 +14273,19 @@ async function runAutoUpdate(env = process.env, fetchFn = defaultFetch, exec = d
14273
14273
  throw new TransportError("invalid tarball: dist/bin/pingcode.js not found");
14274
14274
  }
14275
14275
  await atomicReplace(dir, stagingDir);
14276
+ try {
14277
+ exec("npm", ["install", "--production", "--prefix", dir]);
14278
+ } catch (error) {
14279
+ const backup = `${dir}.backup`;
14280
+ try {
14281
+ atomicReplace(dir, backup);
14282
+ } catch {
14283
+ }
14284
+ throw new TransportError(
14285
+ `failed to install dependencies: ${errorMessage2(error)}`,
14286
+ { cause: error }
14287
+ );
14288
+ }
14276
14289
  const skillSource = path5.join(dir, "skills", "pingcode");
14277
14290
  if (dirExists(skillSource)) {
14278
14291
  await syncSkills(skillSource, skillTargets(env));