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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.27.7";
4
+ const version = "0.27.9";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -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(" ");
@@ -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 }]) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.27.7",
4
+ "version": "0.27.9",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {