create-nextjs-cms 0.5.39 → 0.5.40

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/index.js CHANGED
@@ -339,16 +339,26 @@ async function createNextjsCms() {
339
339
  log.error(' Please run "pnpm install", "npm install", "yarn install", or "bun install" manually.');
340
340
  }
341
341
  }
342
+ // Install nextjs-cms-kit globally for setup
343
+ log.step('Installing nextjs-cms-kit globally...');
344
+ try {
345
+ execSync('pnpm add -g nextjs-cms-kit', { stdio: 'inherit' });
346
+ log.step('✅ nextjs-cms-kit installed globally');
347
+ }
348
+ catch (error) {
349
+ log.warn('Could not install nextjs-cms-kit globally.');
350
+ log.error(` Error: ${error instanceof Error ? error.message : 'Unknown error'}`);
351
+ }
342
352
  // Run CMS setup
343
353
  const setupSpinner = spinner();
344
354
  setupSpinner.start('Running CMS setup...');
345
355
  try {
346
- execSync('pnpm next-cms-kit:dev setup', { stdio: 'inherit' });
356
+ execSync('nextjs-cms-kit --dev setup', { stdio: 'inherit' });
347
357
  setupSpinner.stop('✅ CMS setup completed successfully!');
348
358
  }
349
359
  catch (error) {
350
360
  setupSpinner.stop('⚠️ CMS setup failed. You may need to run it manually:');
351
- log.warn(' pnpm next-cms-kit:dev setup');
361
+ log.warn(' nextjs-cms-kit --dev setup');
352
362
  log.error(` Error: ${error instanceof Error ? error.message : 'Unknown error'}`);
353
363
  }
354
364
  log.success('\n🎉 Your NextJS CMS project has been created successfully!');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nextjs-cms",
3
- "version": "0.5.39",
3
+ "version": "0.5.40",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -27,8 +27,8 @@
27
27
  "tsx": "^4.20.6",
28
28
  "typescript": "^5.9.2",
29
29
  "@lzcms/eslint-config": "0.3.0",
30
- "@lzcms/prettier-config": "0.1.0",
31
- "@lzcms/tsconfig": "0.1.0"
30
+ "@lzcms/tsconfig": "0.1.0",
31
+ "@lzcms/prettier-config": "0.1.0"
32
32
  },
33
33
  "prettier": "@lzcms/prettier-config",
34
34
  "scripts": {
@@ -70,7 +70,7 @@
70
70
  "nanoid": "^5.1.2",
71
71
  "next": "^15.5.5",
72
72
  "next-themes": "^0.4.6",
73
- "nextjs-cms": "0.5.39",
73
+ "nextjs-cms": "0.5.40",
74
74
  "plaiceholder": "^3.0.0",
75
75
  "prettier-plugin-tailwindcss": "^0.7.2",
76
76
  "qrcode": "^1.5.4",
@@ -103,7 +103,7 @@
103
103
  "eslint-config-prettier": "^10.0.1",
104
104
  "eslint-plugin-prettier": "^5.2.3",
105
105
  "fs-extra": "^11.3.3",
106
- "nextjs-cms-kit": "0.5.39",
106
+ "nextjs-cms-kit": "0.5.40",
107
107
  "postcss": "^8.5.1",
108
108
  "prettier": "3.5.0",
109
109
  "tailwindcss": "^4.1.18",