@lastbrain/app 0.1.3 → 0.1.4
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/scripts/init-app.js +4 -2
- package/package.json +1 -1
package/dist/scripts/init-app.js
CHANGED
|
@@ -142,8 +142,10 @@ async function addDependencies(targetDir, useHeroUI, withAuth, selectedModules =
|
|
|
142
142
|
const pkg = await fs.readJson(pkgPath);
|
|
143
143
|
console.log(chalk.yellow("\n📦 Configuration des dépendances..."));
|
|
144
144
|
// Détecter si on est dans le monorepo (développement local)
|
|
145
|
-
|
|
146
|
-
const
|
|
145
|
+
// Vérifier si le projet cible est à l'intérieur du monorepo
|
|
146
|
+
const targetIsInMonorepo = fs.existsSync(path.join(targetDir, "../../../packages/core/package.json")) ||
|
|
147
|
+
fs.existsSync(path.join(targetDir, "../../packages/core/package.json"));
|
|
148
|
+
const latestVersion = targetIsInMonorepo ? "workspace:*" : "latest";
|
|
147
149
|
// Dependencies
|
|
148
150
|
const requiredDeps = {
|
|
149
151
|
next: "^15.0.3",
|