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
How to use root
correctly?
#59
Comments
Is your Normally you set
And the type entry is the file with the same name as You can set It's helpful that you can provide a reproductive repo. |
Same issue here. I am using Vite in a Node.js script, so here is no The actual output is: dist
├── index.cjs.js
├── index.esm.js
├── index.umd.js
├── src
| ├── Button.d.ts
| └── index.d.ts
└── style.css The Expected output should be: dist
├── index.cjs.js
├── index.esm.js
├── Button.d.ts
├── index.d.ts
├── index.umd.js
└── style.css |
Currently you can use expect(
queryPublicPath(['E:\\project\\src\\lib\\a.d.ts', 'E:\\project\\src\\lib\\b.d.ts'])
).toBe('E:\\project\\src\\lib')
// outputs: 'dist/a.d.ts' and 'dist/b.d.ts' |
Thanks for building this and sharing it!
My directory structure looks like this
My vitejs build options are
If I use the plugin with the default options, vite-plugin-dts creates the files:
That's good. But what I want to achieve is
So I tried this
This runs without any errors:
However, now my
dist
directory does contain any output from the plugin. SettinglogDiagnostics:true
does not cause the plugin to tell me what it is doing or where it is putting the files.So my question is, how do I set the options so that I can get the output structure I need?
Thanks!
The text was updated successfully, but these errors were encountered: