mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-21 21:25:11 +00:00
chore: use nuxt.config
to enable pages for docs typecheck
This commit is contained in:
parent
f42045746f
commit
72a2e23cc4
2
.nuxtrc
2
.nuxtrc
@ -1,3 +1 @@
|
||||
telemetry.enabled=false
|
||||
# For pnpm typecheck:docs to generate correct types
|
||||
pages=true
|
||||
|
4
nuxt.config.ts
Normal file
4
nuxt.config.ts
Normal file
@ -0,0 +1,4 @@
|
||||
// For pnpm typecheck:docs to generate correct types
|
||||
export default defineNuxtConfig({
|
||||
pages: process.env.DOCS_TYPECHECK === 'true'
|
||||
})
|
@ -30,7 +30,7 @@
|
||||
"test:types": "pnpm --filter './test/fixtures/**' test:types",
|
||||
"test:unit": "vitest run packages/ --coverage",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"typecheck:docs": "nuxi prepare && nuxt-content-twoslash verify --content-dir docs"
|
||||
"typecheck:docs": "DOCS_TYPECHECK=true pnpm nuxi prepare && nuxt-content-twoslash verify --content-dir docs"
|
||||
},
|
||||
"resolutions": {
|
||||
"@nuxt/kit": "workspace:*",
|
||||
|
@ -10,7 +10,6 @@ export default defineVitestConfig({
|
||||
environmentOptions: {
|
||||
nuxt: {
|
||||
overrides: {
|
||||
pages: false,
|
||||
appConfig: {
|
||||
nuxt: {
|
||||
buildId: 'override'
|
||||
|
Loading…
Reference in New Issue
Block a user