silgi 0.29.16 → 0.29.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,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.29.16";
4
+ const version = "0.29.17";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -1806,13 +1806,14 @@ async function scanExportFile(silgi) {
1806
1806
  if (type === "schema") {
1807
1807
  options.schemas.push(_name);
1808
1808
  }
1809
- options.importItems[path] ??= {
1810
- import: [],
1811
- from: relativeWithDot(silgi.options.silgi.serverDir, path)
1812
- };
1813
- options.importItems[path].import.push({
1814
- name: `${exportName} as ${_name}`,
1815
- key: _name
1809
+ options.addImportItem({
1810
+ specifier: relativeWithDot(silgi.options.silgi.serverDir, path),
1811
+ imports: [
1812
+ {
1813
+ name: exportName,
1814
+ as: _name
1815
+ }
1816
+ ]
1816
1817
  });
1817
1818
  }
1818
1819
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.29.16",
4
+ "version": "0.29.17",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {