silgi 0.29.16 → 0.29.18
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/cli/index.mjs +1 -1
- package/dist/cli/silgi.mjs +9 -7
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/cli/silgi.mjs
CHANGED
|
@@ -33,6 +33,7 @@ import { snakeCase } from 'scule';
|
|
|
33
33
|
async function generateApiFul(silgi) {
|
|
34
34
|
const config = silgi.options.apiFul;
|
|
35
35
|
if (!hasSilgiModule("openapi")) {
|
|
36
|
+
consola.info("Silgi OpenAPI module not found, if you want to use it, please install it @silgi/openapi");
|
|
36
37
|
return;
|
|
37
38
|
}
|
|
38
39
|
if (!config.services || hasSilgiModule("openapi")) {
|
|
@@ -1806,13 +1807,14 @@ async function scanExportFile(silgi) {
|
|
|
1806
1807
|
if (type === "schema") {
|
|
1807
1808
|
options.schemas.push(_name);
|
|
1808
1809
|
}
|
|
1809
|
-
options.
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1810
|
+
options.addImportItem({
|
|
1811
|
+
specifier: relativeWithDot(silgi.options.silgi.serverDir, path),
|
|
1812
|
+
imports: [
|
|
1813
|
+
{
|
|
1814
|
+
name: exportName,
|
|
1815
|
+
as: _name
|
|
1816
|
+
}
|
|
1817
|
+
]
|
|
1816
1818
|
});
|
|
1817
1819
|
}
|
|
1818
1820
|
});
|