nextjs-cms-kit 0.5.53 → 0.5.55
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/lib/program.js +3 -3
- package/package.json +3 -3
package/dist/lib/program.js
CHANGED
|
@@ -21,7 +21,7 @@ function findPackageJson(startDir) {
|
|
|
21
21
|
function findConfigFile(startDir) {
|
|
22
22
|
let dir = startDir ?? process.cwd();
|
|
23
23
|
while (true) {
|
|
24
|
-
const candidate = join(dir, '
|
|
24
|
+
const candidate = join(dir, 'cms.config.ts');
|
|
25
25
|
if (existsSync(candidate))
|
|
26
26
|
return candidate;
|
|
27
27
|
const parent = dirname(dir);
|
|
@@ -40,7 +40,7 @@ const version = packageJson.version;
|
|
|
40
40
|
const dependencies = packageJson.dependencies;
|
|
41
41
|
function checkNextjsCmsInstallation() {
|
|
42
42
|
const requireFromCwd = createRequire(join(process.cwd(), 'index.js'));
|
|
43
|
-
// Check for
|
|
43
|
+
// Check for cms.config.ts file
|
|
44
44
|
const configFile = findConfigFile();
|
|
45
45
|
if (configFile === undefined) {
|
|
46
46
|
return { error: 'not-nextjs-cms-app' };
|
|
@@ -116,7 +116,7 @@ function validateNextjsCmsApp() {
|
|
|
116
116
|
case 'not-nextjs-cms-app':
|
|
117
117
|
console.error(chalk.red('❌ Error: This command must be run in a nextjs-cms application directory.'));
|
|
118
118
|
console.error(chalk.gray('Make sure you have:'));
|
|
119
|
-
console.error(chalk.gray(' -
|
|
119
|
+
console.error(chalk.gray(' - cms.config.ts file'));
|
|
120
120
|
console.error(chalk.gray(' - nextjs-cms as a dependency in package.json'));
|
|
121
121
|
console.error(chalk.gray(' - Did you forget to run `pnpm install`?'));
|
|
122
122
|
console.error('');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nextjs-cms-kit",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.55",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"nextjs-cms-kit": "./dist/index.js"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dotenv": "^17.2.3",
|
|
31
31
|
"drizzle-zod": "^0.7.0",
|
|
32
32
|
"mysql2": "^3.12.0",
|
|
33
|
-
"nextjs-cms": "0.5.
|
|
33
|
+
"nextjs-cms": "0.5.55"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/bcrypt": "^6.0.0",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"prettier": "^3.3.3",
|
|
40
40
|
"tsx": "^4.20.6",
|
|
41
41
|
"typescript": "^5.9.2",
|
|
42
|
-
"@lzcms/prettier-config": "0.1.0",
|
|
43
42
|
"@lzcms/eslint-config": "0.3.0",
|
|
43
|
+
"@lzcms/prettier-config": "0.1.0",
|
|
44
44
|
"@lzcms/tsconfig": "0.1.0"
|
|
45
45
|
},
|
|
46
46
|
"prettier": "@lzcms/prettier-config",
|