silgi 0.38.17 → 0.38.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,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.38.17";
4
+ const version = "0.38.19";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -30,7 +30,7 @@ async function silgiGenerateType(silgi) {
30
30
  );
31
31
  const tsconfigDir = dirname(tsConfigPath);
32
32
  const include = /* @__PURE__ */ new Set([
33
- relativeWithDot(tsconfigDir, join(silgi.options.build.typesDir, ".silgi.d.ts")).replace(
33
+ relativeWithDot(tsconfigDir, join(silgi.options.build.typesDir, "silgi.d.ts")).replace(
34
34
  /^(?=[^.])/,
35
35
  "./"
36
36
  ),
@@ -90,19 +90,21 @@ async function silgiGenerateType(silgi) {
90
90
  // '#silgiImports': [
91
91
  // relativeWithDot(tsconfigDir, join(silgi.options.build.typesDir, 'silgi-imports')),
92
92
  // ],
93
- ...silgi.scanModules.reduce((acc, m) => {
94
- if (m.entryPath) {
95
- acc[m.meta.name] = [relativeWithDot(tsconfigDir, m.entryPath)];
96
- }
97
- return acc;
98
- }, {}),
99
- ...silgi.scanModules.reduce((acc, m) => {
100
- if (m.entryPath) {
101
- const directory = getDirectory(m.entryPath);
102
- acc[`${m.meta.name}/*`] = [`${relativeWithDot(tsconfigDir, directory)}/*`];
103
- }
104
- return acc;
105
- }, {})
93
+ // ...(silgi.scanModules.reduce((acc: Record<string, string[]>, m) => {
94
+ // if (m.entryPath) {
95
+ // acc[m.meta.name!] = [relativeWithDot(tsconfigDir, m.entryPath)]
96
+ // }
97
+ // return acc
98
+ // }, {})),
99
+ // ...(silgi.scanModules.reduce((acc, m) => {
100
+ // if (m.entryPath) {
101
+ // const directory = getDirectory(m.entryPath)
102
+ // // eslint-disable-next-line ts/ban-ts-comment
103
+ // // @ts-ignore
104
+ // acc[`${m.meta.name}/*`] = [`${relativeWithDot(tsconfigDir, directory)}/*`]
105
+ // }
106
+ // return acc
107
+ // }, {})),
106
108
  }
107
109
  },
108
110
  include: [...include],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.38.17",
4
+ "version": "0.38.19",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {