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.
@@ -1,4 +1,4 @@
1
- const version = "0.19.16";
1
+ const version = "0.19.17";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -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
  }));
@@ -1,4 +1,4 @@
1
- const version = "0.19.16";
1
+ const version = "0.19.17";
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.16";
1
+ const version = "0.19.17";
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.16",
4
+ "version": "0.19.17",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {