@shipindays/shipindays 0.1.3 → 0.1.4
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/index.js +0 -23
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -397,16 +397,6 @@ async function main() {
|
|
|
397
397
|
email: emailProvider,
|
|
398
398
|
};
|
|
399
399
|
|
|
400
|
-
// ── 4. Git + install ───────────────────────────────────────────────────────
|
|
401
|
-
const initGit = await p.confirm({
|
|
402
|
-
message: "Initialize a git repository?",
|
|
403
|
-
initialValue: true,
|
|
404
|
-
});
|
|
405
|
-
if (p.isCancel(initGit)) {
|
|
406
|
-
p.cancel("Cancelled.");
|
|
407
|
-
process.exit(0);
|
|
408
|
-
}
|
|
409
|
-
|
|
410
400
|
const pm = detectPM();
|
|
411
401
|
const install = await p.confirm({
|
|
412
402
|
message: `Install dependencies with ${pm}?`,
|
|
@@ -473,19 +463,6 @@ async function main() {
|
|
|
473
463
|
}
|
|
474
464
|
spin.stop("package.json configured.");
|
|
475
465
|
|
|
476
|
-
// ── 11. Git init ───────────────────────────────────────────────────────────
|
|
477
|
-
if (initGit) {
|
|
478
|
-
spin.start("Initialising git...");
|
|
479
|
-
try {
|
|
480
|
-
run("git init", targetPath);
|
|
481
|
-
run("git add -A", targetPath);
|
|
482
|
-
run(`git commit -m "chore: scaffold from shipindays"`, targetPath);
|
|
483
|
-
spin.stop("Git initialised.");
|
|
484
|
-
} catch {
|
|
485
|
-
spin.stop(chalk.yellow("Git skipped — run manually."));
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
|
|
489
466
|
// ── 12. Install dependencies ───────────────────────────────────────────────
|
|
490
467
|
if (install) {
|
|
491
468
|
spin.start(`Installing with ${pm}...`);
|
package/package.json
CHANGED