@stackframe/init-stack 2.5.16 → 2.5.18
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/CHANGELOG.md +8 -0
- package/index.mjs +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/index.mjs
CHANGED
|
@@ -81,7 +81,8 @@ async function main() {
|
|
|
81
81
|
`The project at ${projectPath} does not appear to be a Next.js project, or does not have 'next' installed as a dependency. Only Next.js projects are currently supported.`
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
const nextPackageJsonVersion = packageJson.dependencies["next"];
|
|
85
|
+
if (!nextPackageJsonVersion.includes("14") && nextPackageJsonVersion !== "latest") {
|
|
85
86
|
throw new UserError(
|
|
86
87
|
`The project at ${projectPath} is using an unsupported version of Next.js (found ${packageJson.dependencies["next"]}).\n\nOnly Next.js 14 projects are currently supported. See Next's upgrade guide: https://nextjs.org/docs/app/building-your-application/upgrading/version-14`
|
|
87
88
|
);
|
|
@@ -195,7 +196,7 @@ async function main() {
|
|
|
195
196
|
{
|
|
196
197
|
type: "confirm",
|
|
197
198
|
name: "ready",
|
|
198
|
-
message: `Found a Next.js project at ${projectPath}
|
|
199
|
+
message: `Found a Next.js project at ${projectPath} — ready to install Stack?`,
|
|
199
200
|
default: true,
|
|
200
201
|
},
|
|
201
202
|
]);
|