mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +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
|
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:types": "pnpm --filter './test/fixtures/**' test:types",
|
||||||
"test:unit": "vitest run packages/ --coverage",
|
"test:unit": "vitest run packages/ --coverage",
|
||||||
"typecheck": "tsc --noEmit",
|
"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": {
|
"resolutions": {
|
||||||
"@nuxt/kit": "workspace:*",
|
"@nuxt/kit": "workspace:*",
|
||||||
|
@ -10,7 +10,6 @@ export default defineVitestConfig({
|
|||||||
environmentOptions: {
|
environmentOptions: {
|
||||||
nuxt: {
|
nuxt: {
|
||||||
overrides: {
|
overrides: {
|
||||||
pages: false,
|
|
||||||
appConfig: {
|
appConfig: {
|
||||||
nuxt: {
|
nuxt: {
|
||||||
buildId: 'override'
|
buildId: 'override'
|
||||||
|
Loading…
Reference in New Issue
Block a user