Skip to content
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

feature: 增加json文件的dts导出 #6

Open
Preyou opened this issue Mar 23, 2024 · 1 comment
Open

feature: 增加json文件的dts导出 #6

Preyou opened this issue Mar 23, 2024 · 1 comment

Comments

@Preyou
Copy link

Preyou commented Mar 23, 2024

能否参考这个https://www.npmjs.com/package/unplugin-json-dts的实现,在转换json时,同时生成一份dts文件呢?

Can you refer to the implementation of https://www.npmjs.com/package/unplugin-json-dts and generate a dts file at the same time when converting json?

thanks

@sneakylenny
Copy link
Owner

I'm not sure how it should be implemented. To me it seems like this should be implemented in the project, not in this package.

Also, looking at this line in unplugin-json-dts:

https://github.com/flixcor/unplugin-json-dts/blob/334395e13c38118fdac419bd0f59fd2eda7adf69/src/index.ts#L4

This regex won't allow it to work on json5 or jsonc files as it is written explicitly to look for json files only.

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

No branches or pull requests

2 participants