Skip to content

Commit

Permalink
chore: use nuxt.config to enable pages for docs typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 16, 2024
1 parent f420457 commit 72a2e23
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .nuxtrc
@@ -1,3 +1 @@
telemetry.enabled=false
# For pnpm typecheck:docs to generate correct types
pages=true
4 changes: 4 additions & 0 deletions nuxt.config.ts
@@ -0,0 +1,4 @@
// For pnpm typecheck:docs to generate correct types
export default defineNuxtConfig({
pages: process.env.DOCS_TYPECHECK === 'true'
})
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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:*",
Expand Down
1 change: 0 additions & 1 deletion vitest.nuxt.config.ts
Expand Up @@ -10,7 +10,6 @@ export default defineVitestConfig({
environmentOptions: {
nuxt: {
overrides: {
pages: false,
appConfig: {
nuxt: {
buildId: 'override'
Expand Down

0 comments on commit 72a2e23

Please sign in to comment.