create-nextjs-cms 0.5.52 → 0.5.54

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,10 +339,34 @@ async function createNextjsCms() {
339
339
  log.error(' Please run "pnpm install", "npm install", "yarn install", or "bun install" manually.');
340
340
  }
341
341
  }
342
+ // Remove any existing global nextjs-cms-kit installation before installing with preferred PM
343
+ log.step('Ensuring clean nextjs-cms-kit global installation...');
344
+ const globalRemoveCommands = {
345
+ pnpm: 'pnpm remove -g nextjs-cms-kit',
346
+ npm: 'npm uninstall -g nextjs-cms-kit',
347
+ yarn: 'yarn global remove nextjs-cms-kit',
348
+ bun: 'bun remove -g nextjs-cms-kit',
349
+ };
350
+ // Try to remove from all package managers to ensure clean state
351
+ const allPMs = ['pnpm', 'npm', 'yarn', 'bun'];
352
+ for (const pm of allPMs) {
353
+ try {
354
+ execSync(globalRemoveCommands[pm], { stdio: 'pipe' });
355
+ }
356
+ catch {
357
+ // Ignore errors - package might not be installed with this PM
358
+ }
359
+ }
342
360
  // Install nextjs-cms-kit globally for setup
343
361
  log.step('Installing nextjs-cms-kit globally...');
344
362
  try {
345
- execSync('pnpm add -g nextjs-cms-kit', { stdio: 'inherit' });
363
+ const globalInstallCommands = {
364
+ pnpm: 'pnpm add -g nextjs-cms-kit',
365
+ npm: 'npm install -g nextjs-cms-kit',
366
+ yarn: 'yarn global add nextjs-cms-kit',
367
+ bun: 'bun add -g nextjs-cms-kit',
368
+ };
369
+ execSync(globalInstallCommands[preferredPM], { stdio: 'inherit' });
346
370
  log.step('✅ nextjs-cms-kit installed globally');
347
371
  }
348
372
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nextjs-cms",
3
- "version": "0.5.52",
3
+ "version": "0.5.54",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -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.52",
73
+ "nextjs-cms": "0.5.54",
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.52",
106
+ "nextjs-cms-kit": "0.5.54",
107
107
  "postcss": "^8.5.1",
108
108
  "prettier": "3.5.0",
109
109
  "tailwindcss": "^4.1.18",