Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor(tsc): return the result of runTsc #5517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2025

Conversation

escaton
Copy link
Contributor

@escaton escaton commented Jul 18, 2025

Hello, I tried to find a way to use vue-tsc programmatically to pass it into tools like webpack/rspack-ts-checker, but it is currently designed to simply invoke only tsc cli.
This PR in combination with a same change on volar side will allow to make use of not just lib/tsc, but also lib/typescript and pass it to any tool that expects the typescript API as simply as

// vue-typescript.js
module.exports = require('vue-tsc').runTsc(require.resolve('typescript'))
...
someCheckerPlugin({
  typescript: require.resolve('./vue-typescript')
})
...

Copy link

pkg-pr-new bot commented Jul 18, 2025

Open in StackBlitz

vue-component-meta

npm i https://pkg.pr.new/vuejs/language-tools/vue-component-meta@5517

vue-component-type-helpers

npm i https://pkg.pr.new/vuejs/language-tools/vue-component-type-helpers@5517

@vue/language-core

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-core@5517

@vue/language-plugin-pug

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-plugin-pug@5517

@vue/language-server

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-server@5517

@vue/language-service

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-service@5517

vue-tsc

npm i https://pkg.pr.new/vuejs/language-tools/vue-tsc@5517

@vue/typescript-plugin

npm i https://pkg.pr.new/vuejs/language-tools/@vue/typescript-plugin@5517

commit: 0988793

@johnsoncodehk johnsoncodehk changed the title Return the result of runTsc refactor(tsc): return the result of runTsc Jul 18, 2025
@johnsoncodehk johnsoncodehk merged commit e1095ed into vuejs:master Jul 18, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants