nextjs-cms 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.
@@ -37,13 +37,13 @@ const withPatchedCjsResolveJsToTs = (fn) => {
37
37
  export const loadConfigModule = () => {
38
38
  const cwd = process.cwd();
39
39
  const candidates = [
40
- 'lz.config.js',
41
- 'lz.config.cjs',
42
- 'lz.config.mjs',
43
- 'lz.config.json',
44
- 'lz.config.ts',
45
- 'lz.config.cts',
46
- 'lz.config.mts',
40
+ 'cms.config.js',
41
+ 'cms.config.cjs',
42
+ 'cms.config.mjs',
43
+ 'cms.config.json',
44
+ 'cms.config.ts',
45
+ 'cms.config.cts',
46
+ 'cms.config.mts',
47
47
  ].map((f) => resolve(join(cwd, f)));
48
48
  const found = candidates.find((p) => existsSync(p));
49
49
  if (!found) {
@@ -58,7 +58,7 @@ export const loadConfigModule = () => {
58
58
  unregister = register({ format: 'cjs', loader: 'ts' }).unregister;
59
59
  }
60
60
  catch {
61
- throw new Error(`Unable to load TypeScript config '${found}'. Install 'esbuild-register', or provide lz.config.js/json.`);
61
+ throw new Error(`Unable to load TypeScript config '${found}'. Install 'esbuild-register', or provide cms.config.js/json.`);
62
62
  }
63
63
  }
64
64
  const mod = process.env.NODE_ENV === 'test'
@@ -49,7 +49,7 @@ declare const configSchema: z.ZodObject<{
49
49
  /**
50
50
  * Allow recursive delete of categories children (depth > 1) when deleting the parent category.
51
51
  * If true, all children categories will be deleted when the parent category is deleted.
52
- * For this to take effect, `allowRecursiveDelete` in lz.config.ts must also be set to true.
52
+ * For this to take effect, `allowRecursiveDelete` in cms.config.ts must also be set to true.
53
53
  * @default false
54
54
  */
55
55
  allowRecursiveDelete: z.ZodOptional<z.ZodBoolean>;
@@ -112,7 +112,7 @@ declare const optionsSchema: z.ZodObject<{
112
112
  /**
113
113
  * Allow recursive delete of categories children (depth > 1) when deleting the parent category.
114
114
  * If true, all children categories will be deleted when the parent category is deleted.
115
- * For this to take effect, `allowRecursiveDelete` in lz.config.ts must also be set to true.
115
+ * For this to take effect, `allowRecursiveDelete` in cms.config.ts must also be set to true.
116
116
  * @default false
117
117
  */
118
118
  allowRecursiveDelete: z.ZodOptional<z.ZodBoolean>;
@@ -210,7 +210,7 @@ export declare const categorySectionConfigSchema: z.ZodObject<{
210
210
  /**
211
211
  * Allow recursive delete of categories children (depth > 1) when deleting the parent category.
212
212
  * If true, all children categories will be deleted when the parent category is deleted.
213
- * For this to take effect, `allowRecursiveDelete` in lz.config.ts must also be set to true.
213
+ * For this to take effect, `allowRecursiveDelete` in cms.config.ts must also be set to true.
214
214
  * @default false
215
215
  */
216
216
  allowRecursiveDelete: z.ZodOptional<z.ZodBoolean>;
@@ -22,7 +22,7 @@ const configSchema = z.strictObject({
22
22
  /**
23
23
  * Allow recursive delete of categories children (depth > 1) when deleting the parent category.
24
24
  * If true, all children categories will be deleted when the parent category is deleted.
25
- * For this to take effect, `allowRecursiveDelete` in lz.config.ts must also be set to true.
25
+ * For this to take effect, `allowRecursiveDelete` in cms.config.ts must also be set to true.
26
26
  * @default false
27
27
  */
28
28
  allowRecursiveDelete: z.boolean().optional().describe('Allow recursive delete of categories children'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextjs-cms",
3
- "version": "0.5.53",
3
+ "version": "0.5.55",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",
@@ -159,7 +159,7 @@
159
159
  "prettier": "@lzcms/prettier-config",
160
160
  "scripts": {
161
161
  "build": "tsc",
162
- "dev": "tsc",
162
+ "dev": "tsc --watch",
163
163
  "clean": "git clean -xdf .cache .turbo dist node_modules tsconfig.tsbuildinfo",
164
164
  "typecheck": "tsc --noEmit"
165
165
  }