@dargmuesli/nuxt-vio 23.0.0-beta.7 → 23.0.0-beta.8

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.
Files changed (2) hide show
  1. package/nuxt.config.ts +15 -0
  2. package/package.json +2 -2
package/nuxt.config.ts CHANGED
@@ -21,6 +21,10 @@ import {
21
21
  } from './shared/utils/constants'
22
22
 
23
23
  const { resolve } = createResolver(import.meta.url)
24
+ const SHARED_TYPE_REFERENCES = [
25
+ { path: resolve('shared/types/app-config.d.ts') },
26
+ { path: resolve('shared/types/request-event-context.d.ts') },
27
+ ]
24
28
 
25
29
  export default defineNuxtConfig(
26
30
  defu(
@@ -60,6 +64,17 @@ export default defineNuxtConfig(
60
64
  strictRouteTypes: true,
61
65
  typedPages: true,
62
66
  },
67
+ hooks: {
68
+ // consumers' generated tsconfigs exclude `node_modules`, so this layer's type augmentations need explicit references
69
+ 'prepare:types'({ nodeReferences, references, sharedReferences }) {
70
+ for (const list of [nodeReferences, references, sharedReferences]) {
71
+ list.push(...SHARED_TYPE_REFERENCES)
72
+ }
73
+ },
74
+ 'nitro:prepare:types'({ references }) {
75
+ references.push(...SHARED_TYPE_REFERENCES)
76
+ },
77
+ },
63
78
  modules: [
64
79
  '@dargmuesli/nuxt-cookie-control',
65
80
  '@nuxt/devtools',
package/package.json CHANGED
@@ -33,7 +33,7 @@
33
33
  "eslint-config-prettier": "10.1.8",
34
34
  "eslint-plugin-compat": "7.0.2",
35
35
  "eslint-plugin-prettier": "5.5.6",
36
- "eslint-plugin-yml": "3.8.1",
36
+ "eslint-plugin-yml": "3.9.0",
37
37
  "globals": "17.13.0",
38
38
  "jiti": "2.7.0",
39
39
  "jose": "6.2.12",
@@ -103,7 +103,7 @@
103
103
  "url": "git+https://github.com/dargmuesli/vio.git"
104
104
  },
105
105
  "type": "module",
106
- "version": "23.0.0-beta.7",
106
+ "version": "23.0.0-beta.8",
107
107
  "scripts": {
108
108
  "build": "pnpm run build:node",
109
109
  "build:node": "NUXT_PUBLIC_I18N_BASE_URL=https://app.localhost:3001 nuxt build playground",