Skip to content

Commit

Permalink
refactor: import @volar/typescript from vue-tsc (#333)
Browse files Browse the repository at this point in the history
* refactor: import `@volar/typescript` from `vue-tsc`

* chore: update

* Update prepareVueTsc.ts

* damn prettier

* Create wild-mangos-approve.md
  • Loading branch information
so1ve committed Jul 1, 2024
1 parent b59b0ac commit 7d985e7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-mangos-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vite-plugin-checker": patch
---

refactor: import `@volar/typescript` from `vue-tsc`
1 change: 0 additions & 1 deletion packages/vite-plugin-checker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"homepage": "https://github.com/fi3ework/vite-plugin-checker",
"dependencies": {
"@babel/code-frame": "^7.12.13",
"@volar/typescript": "^2.3.0",
"ansi-escapes": "^4.3.0",
"chalk": "^4.1.1",
"chokidar": "^3.5.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ const _require = createRequire(import.meta.url)
// isomorphic __dirname https://antfu.me/posts/isomorphic-dirname
const _filename = fileURLToPath(import.meta.url)
const _dirname = dirname(_filename)
let proxyApiPath = _require.resolve('@volar/typescript/lib/node/proxyCreateProgram')
const vueTscDir = dirname(_require.resolve('vue-tsc/package.json'))
let proxyApiPath = _require.resolve('@volar/typescript/lib/node/proxyCreateProgram', {
paths: [vueTscDir],
})
let runExtensions = ['.vue']

export async function prepareVueTsc() {
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

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

0 comments on commit 7d985e7

Please sign in to comment.