Skip to content

refactor(typescript): return patched typescript package#279

Merged
johnsoncodehk merged 1 commit intovolarjs:masterfrom
escaton:patch-1
Jul 18, 2025
Merged

refactor(typescript): return patched typescript package#279
johnsoncodehk merged 1 commit intovolarjs:masterfrom
escaton:patch-1

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 vue-tsc 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')
})
...

@escaton
Copy link
Contributor Author

escaton commented Jul 18, 2025

@KazariEX could you please take a look?

@johnsoncodehk johnsoncodehk changed the title Return patched typescript package refactor(typescript): return patched typescript package Jul 18, 2025
@johnsoncodehk johnsoncodehk merged commit d5283e4 into volarjs:master Jul 18, 2025
3 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