@nuasite/cms 0.19.0 → 0.19.1

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/editor.js CHANGED
@@ -381,7 +381,7 @@ function BS(t, e) {
381
381
  function FS(t, e) {
382
382
  return typeof e == "function" ? e(t) : e;
383
383
  }
384
- const Y_ = "0.19.0", Q_ = Y_, st = {
384
+ const Y_ = "0.19.1", Q_ = Y_, st = {
385
385
  /** Highlight overlay for hovered elements */
386
386
  HIGHLIGHT: 2147483644,
387
387
  /** Hover outline for elements/components */
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/astro-cms"
15
15
  },
16
16
  "license": "Apache-2.0",
17
- "version": "0.19.0",
17
+ "version": "0.19.1",
18
18
  "module": "src/index.ts",
19
19
  "types": "src/index.ts",
20
20
  "type": "module",
package/src/index.ts CHANGED
@@ -112,6 +112,9 @@ export default function nuaCms(options: NuaCmsOptions = {}): AstroIntegration {
112
112
  name: '@nuasite/cms',
113
113
  hooks: {
114
114
  'astro:config:setup': async ({ updateConfig, command, injectScript, logger }) => {
115
+ // CMS is only needed during dev — skip all setup during build
116
+ if (command !== 'dev') return
117
+
115
118
  // --- CMS Marker setup ---
116
119
  idCounter.value = 0
117
120
  manifestWriter.reset()
@@ -295,21 +298,8 @@ export default function nuaCms(options: NuaCmsOptions = {}): AstroIntegration {
295
298
  },
296
299
 
297
300
  'astro:build:done': async ({ dir, logger }) => {
298
- if (generateManifest) {
299
- await processBuildOutput(dir, markerConfig, manifestWriter, idCounter, logger)
300
- }
301
-
302
301
  // Merge CMS-managed redirects (src/_redirects) into dist/_redirects
303
302
  await mergeRedirects(dir, logger)
304
-
305
- const errorCollector = getErrorCollector()
306
- if (errorCollector.hasWarnings()) {
307
- const warnings = errorCollector.getWarnings()
308
- logger.warn(`${warnings.length} warning(s) during processing:`)
309
- for (const { context, message } of warnings) {
310
- logger.warn(` - ${context}: ${message}`)
311
- }
312
- }
313
303
  },
314
304
  },
315
305
  }