silgi 0.19.17 → 0.19.19
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 +4 -10
- 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
|
@@ -671,16 +671,7 @@ async function silgiGenerateType(silgi) {
|
|
|
671
671
|
moduleDetection: "force",
|
|
672
672
|
/* If NOT transpiling with TypeScript: */
|
|
673
673
|
module: "preserve",
|
|
674
|
-
paths: {
|
|
675
|
-
// ...(silgi.scanModules.reduce((acc: Record<string, string[]>, m) => {
|
|
676
|
-
// if (m.entryPath) {
|
|
677
|
-
// const directory = getDirectory(m.entryPath)
|
|
678
|
-
// acc[`${m.meta.name}/*`] = [`${relativeWithDot(tsconfigDir, directory)}/*`]
|
|
679
|
-
// acc[`${m.meta.name}/types`] = [`${relativeWithDot(tsconfigDir, directory)}/types`]
|
|
680
|
-
// }
|
|
681
|
-
// return acc
|
|
682
|
-
// }, {})),
|
|
683
|
-
},
|
|
674
|
+
paths: {},
|
|
684
675
|
resolveJsonModule: true,
|
|
685
676
|
allowJs: true,
|
|
686
677
|
/* Strictness */
|
|
@@ -726,6 +717,9 @@ async function silgiGenerateType(silgi) {
|
|
|
726
717
|
);
|
|
727
718
|
}
|
|
728
719
|
const references = [];
|
|
720
|
+
if (silgi.options.preset === "npm-package") {
|
|
721
|
+
references.push({ types: relativeWithDot(silgi.options.rootDir, join(silgi.options.build.typesDir, "moduleTypes.d.ts")) });
|
|
722
|
+
}
|
|
729
723
|
await Promise.all([...silgi.options.modules, ...silgi.options._modules].map(async (id) => {
|
|
730
724
|
if (typeof id !== "string") {
|
|
731
725
|
return;
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED