how to generate d.ts with vue-tsc in tsconfig.app.json #19504
Unanswered
SnowmanlooksCool
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used
create vite
to create a default Vite + Vue + TypeScript template. I noticed that there are threetsconfig
files in the template. I wanted to generate.d.ts
declaration files for the project's components and TypeScript files using thevue-tsc
tool. I added the following configuration to thetsconfig
file:Then, I added the following script to package.json:"tsc": "vue-tsc"
When I run
npm run tsc
, no files are generated. However, if I move the same tsconfig configuration totsconfig.json
, it works. Alternatively, if I specifyvue-tsc -p tsconfig.app.json
, it also works. What should I do, or what am I doing wrong?Beta Was this translation helpful? Give feedback.
All reactions