silgi 0.27.7 → 0.27.9
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/install.mjs +1 -1
- package/dist/cli/silgi.mjs +3 -1
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/cli/install.mjs
CHANGED
|
@@ -75,7 +75,7 @@ const command = defineCommand({
|
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
77
|
const cleanPackageName = (name, version) => {
|
|
78
|
-
const cleanVersion = version.replace(/^[>=]+\s*/, "");
|
|
78
|
+
const cleanVersion = version.replace(/^[>=]+\s*/, "^");
|
|
79
79
|
return `${name}@${cleanVersion}`;
|
|
80
80
|
};
|
|
81
81
|
const deps = Object.entries(cliJson.dependencies || {}).map(([name, version]) => cleanPackageName(name, version)).join(" ");
|
package/dist/cli/silgi.mjs
CHANGED
|
@@ -33,6 +33,9 @@ import { snakeCase } from 'scule';
|
|
|
33
33
|
|
|
34
34
|
async function generateApiFul(silgi) {
|
|
35
35
|
const config = silgi.options.apiFul;
|
|
36
|
+
if (!hasSilgiModule("openapi")) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
36
39
|
if (!config.services || hasSilgiModule("openapi")) {
|
|
37
40
|
config.services ??= {};
|
|
38
41
|
config.services = {
|
|
@@ -2224,7 +2227,6 @@ function useCLIRuntimeConfig(silgi) {
|
|
|
2224
2227
|
write: true,
|
|
2225
2228
|
where: ".silgi",
|
|
2226
2229
|
getContents() {
|
|
2227
|
-
console.log("Generating env.example");
|
|
2228
2230
|
const flattenedConfig = flattenObject(safeRuntimeConfig);
|
|
2229
2231
|
const groupedVars = {};
|
|
2230
2232
|
Object.entries(flattenedConfig).forEach(([key, { value, originalPath }]) => {
|