Skip to content

Commit

Permalink
💚 Fix build errors
Browse files Browse the repository at this point in the history
- 🏷️ Add @types/web-bluetooth
  See vueuse/vueuse#1704
- 🔧 Set transpile target to `esnext`
  See vitejs/vite#6985
  • Loading branch information
neutron0831 committed Mar 9, 2023
1 parent b0a1b0e commit ec76d54
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"postinstall": "husky install && chmod +x .husky/*",
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"build": "vue-tsc --noEmit && vite build --target esnext",
"preview": "vite preview",
"lint": "eslint --ext .js,.ts,.vue --fix --no-error-on-unmatched-pattern src",
"format": "prettier --write --ignore-unknown --no-error-on-unmatched-pattern src",
Expand Down Expand Up @@ -43,6 +43,7 @@
"@commitlint/parse": "^17.4.4",
"@octokit/types": "^9.0.0",
"@types/node": "^18.11.9",
"@types/web-bluetooth": "^0.0.16",
"@types/webfontloader": "^1.6.35",
"@types/webpack": "^5.28.0",
"@vitejs/plugin-vue": "^3.0.3",
Expand Down
2 changes: 2 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tsconfig.json
Expand Up @@ -13,7 +13,7 @@
"resolveJsonModule": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"],
"types": ["node", "vuetify"],
"types": ["node", "vuetify", "web-bluetooth"],
"paths": {
"@/*": ["src/*"]
}
Expand Down

0 comments on commit ec76d54

Please sign in to comment.