2024-02-16 17:18:50 +00:00
|
|
|
// For pnpm typecheck:docs to generate correct types
|
2024-02-22 13:12:00 +00:00
|
|
|
|
|
|
|
import { addPluginTemplate } from 'nuxt/kit'
|
|
|
|
|
2024-02-16 17:18:50 +00:00
|
|
|
export default defineNuxtConfig({
|
2024-03-05 10:32:40 +00:00
|
|
|
typescript: { shim: process.env.DOCS_TYPECHECK === 'true' },
|
2024-02-22 13:12:00 +00:00
|
|
|
pages: process.env.DOCS_TYPECHECK === 'true',
|
|
|
|
modules: [
|
|
|
|
function () {
|
|
|
|
addPluginTemplate({
|
|
|
|
filename: 'plugins/my-plugin.mjs',
|
2024-03-09 06:48:15 +00:00
|
|
|
getContents: () => 'export default defineNuxtPlugin({ name: \'my-plugin\' })'
|
2024-02-22 13:12:00 +00:00
|
|
|
})
|
|
|
|
}
|
2024-03-09 06:48:15 +00:00
|
|
|
]
|
2024-02-16 17:18:50 +00:00
|
|
|
})
|