Skip to content

Commit 980e0cf

Browse files
committed
fix: update build script to include type checking and add vue-tsc as a dependency
1 parent b1e783e commit 980e0cf

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

bun.lockb

4.22 KB
Binary file not shown.

nuxt.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineNuxtConfig } from 'nuxt/config'
1+
import { defineNuxtConfig } from "nuxt/config"
22
// https://nuxt.com/docs/api/configuration/nuxt-config
33
export default defineNuxtConfig({
44
ssr: false,
@@ -16,6 +16,11 @@ export default defineNuxtConfig({
1616
"@nuxthub/core",
1717
],
1818

19+
typescript: {
20+
typeCheck: true,
21+
shim: true,
22+
},
23+
1924
eslint: {
2025
config: {
2126
typescript: {

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"build": "nuxt build",
6+
"build": "vue-tsc --noEmit && nuxt build",
77
"dev": "nuxt dev",
88
"generate": "nuxt generate",
99
"preview": "nuxt preview",
@@ -28,8 +28,9 @@
2828
"nuxt": "3.17.4",
2929
"nuxt-icon": "^0.6.10",
3030
"prettier": "3.5.3",
31-
"typescript": "5.8.3",
31+
"typescript": "^5.8.3",
32+
"vue-tsc": "^2.2.10",
3233
"wrangler": "^4.18.0"
3334
},
3435
"version": "0.1.1"
35-
}
36+
}

0 commit comments

Comments
 (0)