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.
package/dist/cli/index.mjs
CHANGED
package/dist/cli/types.mjs
CHANGED
|
@@ -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);
|
package/dist/types/index.d.mts
CHANGED
|
@@ -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;
|