@boopkit/cli 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.
@@ -2,7 +2,7 @@
2
2
  "@boopkit/cap-api": "0.1.0",
3
3
  "@boopkit/cap-cloud-storage": "0.1.0",
4
4
  "@boopkit/cap-coding": "0.1.0",
5
- "@boopkit/cap-database": "0.1.0",
5
+ "@boopkit/cap-database": "0.1.1",
6
6
  "@boopkit/cap-email": "0.1.0",
7
7
  "@boopkit/cap-hello": "0.1.0",
8
8
  "@boopkit/cap-noticeboard": "0.1.0",
@@ -326,6 +326,15 @@ function runInit(name, options) {
326
326
  }
327
327
  // --- Post-install setup (CSS build, Prisma generate) ---
328
328
  if (shouldInstall) {
329
+ // Re-run npm install to pick up deps added by capability scaffolding
330
+ // (the first install only had kernel + @boopkit/cap-* deps)
331
+ try {
332
+ console.log('\nInstalling capability dependencies...');
333
+ (0, child_process_1.execSync)('npm install', { cwd: targetDir, stdio: 'inherit' });
334
+ }
335
+ catch {
336
+ console.error('Warning: npm install failed. You can run it manually later.');
337
+ }
329
338
  // Build CSS if tailwind:build script exists
330
339
  const pkgPath = path.join(targetDir, 'package.json');
331
340
  const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
@@ -348,13 +357,6 @@ function runInit(name, options) {
348
357
  console.error('Warning: Prisma generate failed. Run `npm run db:generate` manually.');
349
358
  }
350
359
  }
351
- // Re-run npm install to pick up any new deps added by capability scaffolding
352
- try {
353
- (0, child_process_1.execSync)('npm install', { cwd: targetDir, stdio: 'inherit' });
354
- }
355
- catch {
356
- // Already warned earlier if npm install has issues
357
- }
358
360
  }
359
361
  console.log(`\nNext steps:`);
360
362
  console.log(` cd ${name}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boopkit/cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "CLI tool to scaffold new projects from boop profiles and capabilities",
5
5
  "main": "dist/cli.js",
6
6
  "workspaces": [