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.
Files changed (2) hide show
  1. package/dist/index.js +9 -2
  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
- cliSpinner.fail(" Failed to install dependencies");
106
- throw error;
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..."));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nextspark-app",
3
- "version": "0.1.0-beta.160",
3
+ "version": "0.1.0-beta.161",
4
4
  "description": "Create a new NextSpark SaaS project",
5
5
  "type": "module",
6
6
  "bin": {