[typescript] publish type declarations file
hyrious opened this issue · comments
hyrious commented
Although your package.json has "typings": "dist/types/index.d.ts",
, there is no such file.
Add an extra build step tsc -p src -d --emitDeclarationOnly --outDir=dist/types
before release.
As a workaround, I put it in global script and add such global.d.ts
:
export {};
declare global {
var fre: typeof import("fre/src");
}
伊撒尔 commented
Thanks!
伊撒尔 commented
竟然不是pr
hyrious commented
竟然不是pr
😭 快来一个
这就来