@farming-labs/docs 0.0.2 → 0.0.3-beta.2
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/dist/cli/index.mjs +4 -9
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
|
@@ -1530,18 +1530,13 @@ async function init(options = {}) {
|
|
|
1530
1530
|
p.log.error("Failed to bootstrap. Check your connection and that the repo exists.");
|
|
1531
1531
|
process.exit(1);
|
|
1532
1532
|
}
|
|
1533
|
-
p.log.success(`Bootstrapped ${pc.cyan(`'${projectName}'`)}. Installing dependencies...`);
|
|
1534
|
-
const pm = detectPackageManager(targetDir);
|
|
1533
|
+
p.log.success(`Bootstrapped ${pc.cyan(`'${projectName}'`)}. Installing dependencies with pnpm...`);
|
|
1535
1534
|
try {
|
|
1536
|
-
|
|
1537
|
-
else if (pm === "yarn") exec("yarn install", targetDir);
|
|
1538
|
-
else if (pm === "bun") exec("bun install", targetDir);
|
|
1539
|
-
else exec("npm install", targetDir);
|
|
1535
|
+
exec("pnpm install", targetDir);
|
|
1540
1536
|
} catch {
|
|
1541
|
-
p.log.warn("
|
|
1537
|
+
p.log.warn("pnpm install failed. Run pnpm install manually inside the project.");
|
|
1542
1538
|
}
|
|
1543
|
-
|
|
1544
|
-
p.outro(pc.green(`Done! Run ${pc.cyan(`cd ${projectName} && ${devCmd}`)} to start the dev server.`));
|
|
1539
|
+
p.outro(pc.green(`Done! Run ${pc.cyan(`cd ${projectName} && pnpm run dev`)} to start the dev server.`));
|
|
1545
1540
|
process.exit(0);
|
|
1546
1541
|
}
|
|
1547
1542
|
let framework = detectFramework(cwd);
|