dialog-survey 1.6.3 → 1.6.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/cli.mjs +7 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dialog-survey",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "type": "module",
5
5
  "description": "AI-powered interview robot that conducts async multi-turn interviews via DingTalk",
6
6
  "repository": {
package/scripts/cli.mjs CHANGED
@@ -462,7 +462,6 @@ export async function installCommand(flags) {
462
462
  log("Copying package files...");
463
463
  const filesToCopy = [
464
464
  "package.json",
465
- "package-lock.json",
466
465
  "dist",
467
466
  "prisma",
468
467
  "src/views",
@@ -484,13 +483,16 @@ export async function installCommand(flags) {
484
483
  await writeFile(join(INSTALL_DIR, ".env"), envContent, "utf-8");
485
484
  log(` Created ${INSTALL_DIR}/.env`);
486
485
 
487
- // Step 7: npm ci
488
- log("Installing dependencies (npm ci --omit=dev)...");
486
+ // Step 7: npm install
487
+ // Use npm install instead of npm ci because package-lock.json is never
488
+ // included in npm published packages by design. npm install generates
489
+ // its own lock file from package.json.
490
+ log("Installing dependencies (npm install --omit=dev)...");
489
491
  try {
490
- exec("npm ci --omit=dev --ignore-scripts", { cwd: INSTALL_DIR });
492
+ exec("npm install --omit=dev --ignore-scripts", { cwd: INSTALL_DIR });
491
493
  log(" Dependencies installed ✓");
492
494
  } catch (err) {
493
- logError(`npm ci failed: ${err.message}`);
495
+ logError(`npm install failed: ${err.message}`);
494
496
  process.exitCode = 1;
495
497
  return;
496
498
  }