silgi 0.28.1 → 0.28.4
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 +3 -2
- package/dist/types/index.d.mts +0 -1
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/cli/silgi.mjs
CHANGED
|
@@ -2348,13 +2348,14 @@ async function createSilgiCLI(config = {}, opts = {}) {
|
|
|
2348
2348
|
async updateConfig(_config) {
|
|
2349
2349
|
},
|
|
2350
2350
|
routeRules: void 0,
|
|
2351
|
-
adapter:
|
|
2351
|
+
adapter: {}
|
|
2352
2352
|
};
|
|
2353
2353
|
if (silgi.options.database && Object.keys(silgi.options.database)?.length > 0) {
|
|
2354
2354
|
for (const [key, value] of Object.entries(silgi.options.database)) {
|
|
2355
|
+
const { tables, ...options2 } = value;
|
|
2355
2356
|
silgi.adapter[key] = createAdapter(
|
|
2356
2357
|
value.tables,
|
|
2357
|
-
|
|
2358
|
+
options2
|
|
2358
2359
|
);
|
|
2359
2360
|
}
|
|
2360
2361
|
}
|
package/dist/types/index.d.mts
CHANGED
|
@@ -814,7 +814,6 @@ interface SilgiCLIOptions extends PresetOptions {
|
|
|
814
814
|
installPackages: Record<'dependencies' | 'devDependencies', Record<string, string>>;
|
|
815
815
|
apiFul: ApifulConfig;
|
|
816
816
|
database: Record<string, {
|
|
817
|
-
adapter: Adapter<any, TablesSchema, any>;
|
|
818
817
|
tables: (options: AdapterOptions) => TablesSchema;
|
|
819
818
|
} & AdapterOptions>;
|
|
820
819
|
}
|