We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6112308 commit be0de33Copy full SHA for be0de33
src/build/fan/BuildPod.fan
@@ -453,9 +453,16 @@ abstract class BuildPod : BuildScript
453
454
Env.cur.homeDir.plus(`lib/js/node_modules/${podName}.js`).out.writeChars(c.js).flush.close
455
if (c.esm != null)
456
+ {
457
esmDir.plus(`${podName}.js`).out.writeChars(c.esm).flush.close
- if (c.tsDecl != null)
458
- esmDir.plus(`${podName}.d.ts`).out.writeChars(c.tsDecl).flush.close
+
459
+ // write ts declarations
460
+ t := Type.find("nodeJs::GenTsDecl", false)
461
+ if (t == null) return
462
+ decl := esmDir.plus(`${podName}.d.ts`).out
463
+ t.make([decl, c.pod, ["allTypes":true]])->run
464
+ decl.flush.close
465
+ }
466
}
467
catch (CompilerErr err)
468
{
0 commit comments