@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.
@@ -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
- const isMonorepo = fs.existsSync(path.join(__dirname, "../../../core/package.json"));
146
- const latestVersion = isMonorepo ? "workspace:*" : "latest";
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lastbrain/app",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Framework modulaire Next.js avec CLI et système de modules",
5
5
  "private": false,
6
6
  "type": "module",