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.
@@ -1,4 +1,4 @@
1
- const version = "0.19.17";
1
+ const version = "0.19.19";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -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;
@@ -1,4 +1,4 @@
1
- const version = "0.19.17";
1
+ const version = "0.19.19";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -1,4 +1,4 @@
1
- const version = "0.19.17";
1
+ const version = "0.19.19";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.19.17",
4
+ "version": "0.19.19",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {