Skip to content

Commit

Permalink
fix(bridge): add schema.d.ts to nuxt.d.ts (nuxt#3237)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Feb 16, 2022
1 parent 60e672f commit 07c14b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/bridge/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ export function setupAppBridge (_options: any) {
})))
addTemplate(schemaTemplate)
})
nuxt.hook('prepare:types', ({ references }) => {
// Add module augmentations directly to NuxtConfig
references.push({ path: resolve(nuxt.options.buildDir, 'types/schema.d.ts') })
})

// Alias vue to have identical vue3 exports
nuxt.options.alias['vue2-bridge'] = resolve(distDir, 'runtime/vue2-bridge.mjs')
Expand Down

0 comments on commit 07c14b8

Please sign in to comment.