Skip to content

Commit 486dc7c

Browse files
authored
chore: use module-builder stub mode for more accurate types (#490)
1 parent 59c0790 commit 486dc7c

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"build": "pnpm dev:prepare && nuxt-module-build",
3737
"dev": "nuxi dev playground",
3838
"dev:build": "nuxi build playground",
39-
"dev:prepare": "pnpm nuxt-module-build --stub && nuxi prepare playground",
39+
"dev:prepare": "pnpm nuxt-module-build --stub && nuxt-module-build prepare && nuxi prepare playground",
4040
"docs:dev": "nuxi dev docs",
4141
"docs:build": "nuxi build docs",
4242
"lint": "pnpm lint:all:eslint && pnpm lint:all:prettier",

playground/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./.nuxt/tsconfig.json",
3+
}

src/runtime/ionic.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { IonicVue } from '@ionic/vue'
22
import { defineNuxtPlugin } from '#imports'
3-
// @ts-expect-error virtual template
43
import ionicVueConfig from '#build/ionic/vue-config.mjs'
54

65
export default defineNuxtPlugin(nuxtApp => {

tsconfig.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
2-
"extends": "./playground/.nuxt/tsconfig.json",
2+
"extends": "./.nuxt/tsconfig.json",
33
"compilerOptions": {
44
"types": [
55
"@kevinmarrec/nuxt-pwa"
66
]
7-
}
7+
},
8+
"exclude": [
9+
"docs",
10+
"playground"
11+
]
812
}

0 commit comments

Comments
 (0)