Skip to content

feat(tsc): add vue-tsc/typescript entry for programmatic usage #5528

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

Closed
wants to merge 3 commits into from

Conversation

escaton
Copy link
Contributor

@escaton escaton commented Jul 18, 2025

Moving on with #5517

Add vue-tsc/typescript entry for programmatic usage.
This change will make it possible to seamlessly use vue-tsc with

Not sure about file naming, but this is the least changes needed to make it work without breaking anything.

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@5528

vue-component-type-helpers

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

@vue/language-core

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

@vue/language-plugin-pug

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

@vue/language-server

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

@vue/language-service

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

vue-tsc

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

@vue/typescript-plugin

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

commit: f7340ec

@escaton escaton marked this pull request as draft July 18, 2025 12:48
@escaton escaton marked this pull request as ready for review July 18, 2025 12:58
@escaton
Copy link
Contributor Author

escaton commented Jul 18, 2025

Not sure why the auto-fix job fails to commit something on a detached HEAD

@johnsoncodehk
Copy link
Member

Thanks for the PR, but this is outside the intended use case of vue-tsc.

The package name of vue-tsc implies that it is only used as a CLI tool, adding this entry is likely to mislead people into thinking this is the recommended usage for vue-tsc.

@escaton
Copy link
Contributor Author

escaton commented Jul 20, 2025

Hi @johnsoncodehk thanks for the comment, I see your point, to some degree it makes sense.
But on the other hand for the sake of ergonomics I think it is better for that single line still be a npm package, rather then a utility file in every project.
For now I created @esctn/vue-tsc-api
Let me know if you are interested to move it in this repo.

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