create-nextspark-app 0.1.0-beta.159 → 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 +15 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -89,7 +89,12 @@ async function createProject(options) {
89
89
  "next-intl",
90
90
  "better-auth",
91
91
  "@better-fetch/fetch",
92
- "jiti"
92
+ "jiti",
93
+ // Imported directly by shipped app routes (devtools docs/tests + media upload).
94
+ // Must be direct project deps, not phantom-hoisted from @nextsparkjs/core,
95
+ // otherwise `next build` fails to resolve them under pnpm.
96
+ "gray-matter",
97
+ "@vercel/blob"
93
98
  ].join(" ");
94
99
  execSync(`pnpm add ${essentialDeps}`, {
95
100
  cwd: projectPath,
@@ -97,8 +102,15 @@ async function createProject(options) {
97
102
  });
98
103
  cliSpinner.succeed(" @nextsparkjs/core, @nextsparkjs/cli, and dependencies installed");
99
104
  } catch (error) {
100
- cliSpinner.fail(" Failed to install dependencies");
101
- 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
+ }
102
114
  }
103
115
  console.log();
104
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.159",
3
+ "version": "0.1.0-beta.161",
4
4
  "description": "Create a new NextSpark SaaS project",
5
5
  "type": "module",
6
6
  "bin": {