silgi 0.19.16 → 0.19.17
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 +3 -0
- 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
|
@@ -730,6 +730,9 @@ async function silgiGenerateType(silgi) {
|
|
|
730
730
|
if (typeof id !== "string") {
|
|
731
731
|
return;
|
|
732
732
|
}
|
|
733
|
+
if (id === "./src" && silgi.options.preset === "npm-package") {
|
|
734
|
+
id = resolve(silgi.options.rootDir);
|
|
735
|
+
}
|
|
733
736
|
const pkg = await readPackageJSON(id, { url: silgi.options.rootDir }).catch(() => null);
|
|
734
737
|
references.push({ types: pkg?.name || id });
|
|
735
738
|
}));
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED