electron / forge

:electron: A complete tool for building and publishing Electron applications
https://electronforge.io
MIT License
6.51k stars 520 forks source link

build(plugin-vite): add declare file to npm #3735

Closed smallsung closed 1 month ago

smallsung commented 1 month ago
malept commented 1 month ago

Can you please explain why this is needed?

smallsung commented 1 month ago

Can you please explain why this is needed?

intelli sense for typescript

https://github.com/electron/forge/blob/7574b364901ec429220dbe7076184585a99529a5/packages/template/vite-typescript/tmpl/forge.env.d.ts#L1

https://github.com/electron/forge/blob/7574b364901ec429220dbe7076184585a99529a5/packages/template/vite-typescript/tmpl/main.ts#L20-L24

BlackHole1 commented 1 month ago

PTAL @caoxiemeihao