nextjs-cms 0.5.13 → 0.5.15

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.
@@ -29,7 +29,7 @@ export const loadConfigModule = () => {
29
29
  unregister = register({ format: 'cjs', loader: 'ts' }).unregister;
30
30
  }
31
31
  catch {
32
- throw new Error(`Unable to load TypeScript config '${found}'. Install 'esbuild-register' in nextjs-cms/cms, or provide lz.config.js/json.`);
32
+ throw new Error(`Unable to load TypeScript config '${found}'. Install 'esbuild-register', or provide lz.config.js/json.`);
33
33
  }
34
34
  }
35
35
  const mod = safeRequire(found);
@@ -25,7 +25,7 @@ let tsLoaderRegistered = false;
25
25
  * @returns The default export of the section file.
26
26
  */
27
27
  const requireModuleRuntime = (absPath) => {
28
- const isTs = absPath.endsWith('.js') || absPath.endsWith('.cts') || absPath.endsWith('.mts');
28
+ const isTs = absPath.endsWith('.ts') || absPath.endsWith('.cts') || absPath.endsWith('.mts');
29
29
  if (isTs && !tsLoaderRegistered) {
30
30
  try {
31
31
  const { register } = safeRequire('esbuild-register/dist/node');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextjs-cms",
3
- "version": "0.5.13",
3
+ "version": "0.5.15",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",
@@ -112,11 +112,13 @@
112
112
  "axios": "^1.8.4",
113
113
  "bcrypt": "^6.0.0",
114
114
  "chalk": "^5.4.1",
115
+ "chokidar": "^5.0.0",
115
116
  "commander": "^14.0.2",
116
117
  "devalue": "^5.1.1",
117
118
  "dotenv": "^16.4.7",
118
119
  "drizzle-orm": "^0.44.6",
119
120
  "drizzle-zod": "^0.7.0",
121
+ "esbuild-register": "^3.6.0",
120
122
  "glob": "^11.0.3",
121
123
  "i18next": "^25.2.1",
122
124
  "jose": "^6.0.11",