create-nextspark-app 0.1.0-beta.2 → 0.1.0-beta.3
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/index.js +12 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52,13 +52,21 @@ async function createProject(options) {
|
|
|
52
52
|
stdio: "inherit"
|
|
53
53
|
// Interactive mode
|
|
54
54
|
});
|
|
55
|
+
const installSpinner = ora(" Installing dependencies...").start();
|
|
56
|
+
try {
|
|
57
|
+
execSync("pnpm install", {
|
|
58
|
+
cwd: projectPath,
|
|
59
|
+
stdio: "pipe"
|
|
60
|
+
});
|
|
61
|
+
installSpinner.succeed(" Dependencies installed");
|
|
62
|
+
} catch (error) {
|
|
63
|
+
installSpinner.fail(" Failed to install dependencies");
|
|
64
|
+
throw error;
|
|
65
|
+
}
|
|
55
66
|
console.log();
|
|
56
|
-
console.log(chalk.
|
|
57
|
-
console.log();
|
|
58
|
-
console.log(" Next steps:");
|
|
67
|
+
console.log(chalk.gray(` To start developing:`));
|
|
59
68
|
console.log();
|
|
60
69
|
console.log(chalk.cyan(` cd ${projectName}`));
|
|
61
|
-
console.log(chalk.cyan(" pnpm dev"));
|
|
62
70
|
console.log();
|
|
63
71
|
}
|
|
64
72
|
|