silgi 0.25.6 → 0.25.7

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.25.6";
4
+ const version = "0.25.7";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -55,6 +55,14 @@ const SilgiCLIDefaults = {
55
55
  vfsDir: "{{ silgi.serverDir }}/vfs",
56
56
  typesDir: "{{ silgi.serverDir }}/types"
57
57
  },
58
+ // Codegen
59
+ codegen: {
60
+ env: {
61
+ safeList: [
62
+ ["silgi", "version"]
63
+ ]
64
+ }
65
+ },
58
66
  // Modules
59
67
  _modules: [],
60
68
  modules: [],
@@ -1594,6 +1594,13 @@ function useCLIRuntimeConfig(silgi) {
1594
1594
  const flattenedConfig = flattenObject(safeRuntimeConfig);
1595
1595
  const groupedVars = {};
1596
1596
  Object.entries(flattenedConfig).forEach(([key, { value, originalPath }]) => {
1597
+ const shouldExclude = silgi.options.codegen.env.safeList.some((safePath) => {
1598
+ if (safePath.length !== originalPath.length)
1599
+ return false;
1600
+ return safePath.every((segment, index) => segment.toLowerCase() === originalPath[index].toLowerCase());
1601
+ });
1602
+ if (shouldExclude)
1603
+ return;
1597
1604
  if (originalPath.length > 0) {
1598
1605
  const firstKey = originalPath[0];
1599
1606
  const categoryName = extractCategoryFromCamel(firstKey);
@@ -602,6 +602,11 @@ interface SilgiCLIOptions extends PresetOptions {
602
602
  logLevel: LogLevel;
603
603
  appConfig: AppConfig;
604
604
  appConfigFiles: string[];
605
+ codegen: {
606
+ env: {
607
+ safeList: string[][];
608
+ };
609
+ };
605
610
  storage: StorageMounts$1;
606
611
  devStorage: StorageMounts$1;
607
612
  workspaceDir: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.25.6",
4
+ "version": "0.25.7",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {