silgi 0.19.15 → 0.19.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/index.mjs +1 -1
- package/dist/cli/types.mjs +7 -4
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/cli/types.mjs
CHANGED
|
@@ -726,10 +726,13 @@ async function silgiGenerateType(silgi) {
|
|
|
726
726
|
);
|
|
727
727
|
}
|
|
728
728
|
const references = [];
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
729
|
+
await Promise.all([...silgi.options.modules, ...silgi.options._modules].map(async (id) => {
|
|
730
|
+
if (typeof id !== "string") {
|
|
731
|
+
return;
|
|
732
|
+
}
|
|
733
|
+
const pkg = await readPackageJSON(id, { url: silgi.options.rootDir }).catch(() => null);
|
|
734
|
+
references.push({ types: pkg?.name || id });
|
|
735
|
+
}));
|
|
733
736
|
const declarations = [];
|
|
734
737
|
await silgi.callHook("prepare:types", { references, declarations, tsConfig });
|
|
735
738
|
tsConfig.include = [...new Set(tsConfig.include.map((p) => isAbsolute(p) ? relativeWithDot(tsconfigDir, p) : p))];
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED