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.
- package/package.json +1 -1
- package/scripts/cli.mjs +7 -5
package/package.json
CHANGED
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
|
|
488
|
-
|
|
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
|
|
492
|
+
exec("npm install --omit=dev --ignore-scripts", { cwd: INSTALL_DIR });
|
|
491
493
|
log(" Dependencies installed ✓");
|
|
492
494
|
} catch (err) {
|
|
493
|
-
logError(`npm
|
|
495
|
+
logError(`npm install failed: ${err.message}`);
|
|
494
496
|
process.exitCode = 1;
|
|
495
497
|
return;
|
|
496
498
|
}
|