create-nextspark-app 0.1.0-beta.160 → 0.1.0-beta.161
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 +9 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -102,8 +102,15 @@ async function createProject(options) {
|
|
|
102
102
|
});
|
|
103
103
|
cliSpinner.succeed(" @nextsparkjs/core, @nextsparkjs/cli, and dependencies installed");
|
|
104
104
|
} catch (error) {
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
const coreInstalled = fs.existsSync(
|
|
106
|
+
path.join(projectPath, "node_modules", "@nextsparkjs", "core")
|
|
107
|
+
);
|
|
108
|
+
if (coreInstalled) {
|
|
109
|
+
cliSpinner.succeed(" @nextsparkjs/core, @nextsparkjs/cli, and dependencies installed");
|
|
110
|
+
} else {
|
|
111
|
+
cliSpinner.fail(" Failed to install dependencies");
|
|
112
|
+
throw error;
|
|
113
|
+
}
|
|
107
114
|
}
|
|
108
115
|
console.log();
|
|
109
116
|
console.log(chalk.blue(" Starting NextSpark wizard..."));
|