nextjs-cms 0.5.11 → 0.5.13

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.
@@ -270,7 +270,7 @@ export class SectionFactory {
270
270
  }
271
271
  const sections = [];
272
272
  try {
273
- const sectionFiles = await glob('**/*.section.js', {
273
+ const sectionFiles = await glob('**/*.section.ts', {
274
274
  cwd: cmsConfig.sectionsFolder,
275
275
  });
276
276
  for (const file of sectionFiles) {
@@ -349,7 +349,7 @@ export class SectionFactory {
349
349
  if (!this.isDev || this.watcherStarted)
350
350
  return;
351
351
  this.watcherStarted = true;
352
- const watcher = chokidar.watch('**/*.section.js', {
352
+ const watcher = chokidar.watch('**/*.section.ts', {
353
353
  cwd: cmsConfig.sectionsFolder,
354
354
  ignoreInitial: true,
355
355
  });
@@ -1,5 +1,5 @@
1
1
  import CpanelAPI from './CpanelApi.js';
2
- export { sanitizeFileName, sanitizeFolderOrFileName, cn, humanReadableFileSize, capitalizeWords, base64ToBlob, displayDateFromString, formatNumber, } from './utils';
2
+ export { sanitizeFileName, sanitizeFolderOrFileName, cn, humanReadableFileSize, capitalizeWords, base64ToBlob, displayDateFromString, formatNumber, } from './utils.js';
3
3
  export { CpanelAPI };
4
- export { responseHeaders } from './constants';
4
+ export { responseHeaders } from './constants.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gBAAgB,CAAA;AACtC,OAAO,EACH,gBAAgB,EAChB,wBAAwB,EACxB,EAAE,EACF,qBAAqB,EACrB,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,YAAY,GACf,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,SAAS,EAAE,CAAA;AACpB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gBAAgB,CAAA;AACtC,OAAO,EACH,gBAAgB,EAChB,wBAAwB,EACxB,EAAE,EACF,qBAAqB,EACrB,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,YAAY,GACf,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,SAAS,EAAE,CAAA;AACpB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import CpanelAPI from './CpanelApi.js';
2
- export { sanitizeFileName, sanitizeFolderOrFileName, cn, humanReadableFileSize, capitalizeWords, base64ToBlob, displayDateFromString, formatNumber, } from './utils';
2
+ export { sanitizeFileName, sanitizeFolderOrFileName, cn, humanReadableFileSize, capitalizeWords, base64ToBlob, displayDateFromString, formatNumber, } from './utils.js';
3
3
  export { CpanelAPI };
4
- export { responseHeaders } from './constants';
4
+ export { responseHeaders } from './constants.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextjs-cms",
3
- "version": "0.5.11",
3
+ "version": "0.5.13",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",
@@ -151,8 +151,8 @@
151
151
  "tsx": "^4.20.6",
152
152
  "typescript": "^5.9.2",
153
153
  "@lzcms/eslint-config": "0.3.0",
154
- "@lzcms/tsconfig": "0.1.0",
155
- "@lzcms/prettier-config": "0.1.0"
154
+ "@lzcms/prettier-config": "0.1.0",
155
+ "@lzcms/tsconfig": "0.1.0"
156
156
  },
157
157
  "license": "MIT",
158
158
  "keywords": [