@michaelthielemann/kestrel 4.1.2 → 4.1.3

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.
@@ -20,9 +20,9 @@ export default defineNuxtModule<KestrelConfig>({
20
20
  // instance (`useNuxt()`) that plain `setup()` callers (tests) do not provide.
21
21
  const [app, server] = await Promise.all([appAutoImports(), serverAutoImports()])
22
22
  // The packages' own compiled output must not be rewritten by the auto-import transform: it would
23
- // inject an import for a symbol a dist file declares itself. Under `node_modules` the default exclusion
24
- // covers that; in a workspace checkout the packages resolve to `packages/*/dist`, which it does not.
25
- // Nitro REPLACES its `node_modules` default with any non-empty `exclude`, so that one is restated.
23
+ // inject an import for a symbol a dist file declares itself. Only the `kestrel-*` packages are
24
+ // excluded never `node_modules` as a whole: in a consumer the engine's own layers live there too,
25
+ // and their server plugins rely on the transform for Nitro's `defineNitroPlugin` & co.
26
26
  const ownDist = /[\\/](node_modules|packages)[\\/](@michaelthielemann[\\/])?kestrel-[^\\/]+[\\/]/
27
27
  const imports = (nuxt.options.imports ||= {} as typeof nuxt.options.imports)
28
28
  imports.transform ||= {}
@@ -36,7 +36,7 @@ export default defineNuxtModule<KestrelConfig>({
36
36
  config.imports.imports.push(...server)
37
37
  const prior = config.imports.exclude
38
38
  const excluded = Array.isArray(prior) ? [...prior] : prior ? [prior] : []
39
- config.imports.exclude = [...excluded, /node_modules/, ownDist]
39
+ config.imports.exclude = [...excluded, ownDist]
40
40
  })
41
41
 
42
42
  // `app:resolve` is the first hook where `mainComponent` is settled across all layers. In dev it fires
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michaelthielemann/kestrel",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "description": "A slim, collection-driven Nuxt 4 CMS meta-layer with a runtime schema engine. Add `extends: ['@michaelthielemann/kestrel']`, define collections, and the database migrates itself.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Michael Thielemann <283621694+MichaelThielemann@users.noreply.github.com>",
@@ -78,12 +78,12 @@
78
78
  "zod": "^4.4.3",
79
79
  "@michaelthielemann/kestrel-access": "0.1.0",
80
80
  "@michaelthielemann/kestrel-auth": "0.1.0",
81
- "@michaelthielemann/kestrel-core": "0.1.0",
82
81
  "@michaelthielemann/kestrel-contracts": "0.1.0",
83
82
  "@michaelthielemann/kestrel-collections": "0.1.0",
83
+ "@michaelthielemann/kestrel-core": "0.1.0",
84
+ "@michaelthielemann/kestrel-delivery-live": "0.1.0",
84
85
  "@michaelthielemann/kestrel-delivery-static": "0.1.0",
85
86
  "@michaelthielemann/kestrel-fields": "0.1.0",
86
- "@michaelthielemann/kestrel-delivery-live": "0.1.0",
87
87
  "@michaelthielemann/kestrel-media": "0.1.0",
88
88
  "@michaelthielemann/kestrel-publishing": "0.1.0"
89
89
  },