You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a really awesome package, I have been using it in my vite project with default options, it works great. But there are some options that confuse me.
options.dts support to use a string as a path of target dts file path, I would love to adding support for auto generate dir if does not exist. And maybe we can use fs-extra ensure the path in context ? or impl a ensureDir function manully
Thanks! I’m glad you like it!
It should be simple to add but what folder to you want to write to that doesn’t exist?
if implemented, I would prefer to reuse any existing dep
But when I run the build script, it seems there are some errors: ENOENT: no such file or directory. It seems necessary to manually create the parent directory.
So I'm considering if it's possible to implement ensuring the folder exists in this plugin.
Maybe use native node fs module is a better way? like: await fs.mkdir(dirname(dts), { recursive: true })
This is a really awesome package, I have been using it in my vite project with default options, it works great. But there are some options that confuse me.
options.dts
support to use a string as a path of target dts file path, I would love to adding support for auto generate dir if does not exist. And maybe we can usefs-extra
ensure the path incontext
? or impl aensureDir
function manully(I have created a demo for this
If needed, I would be happy to provide a PR for this issue.
Thank you for your consideration.
The text was updated successfully, but these errors were encountered: