silgi 0.37.46 → 0.37.48
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/types/index.d.mts +32 -32
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/types/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApifulConfig } from 'apiful/config';
|
|
2
|
-
import { C12InputConfig, ResolvedConfig, ConfigWatcher,
|
|
2
|
+
import { C12InputConfig, ResolvedConfig, ConfigWatcher, WatchConfigOptions } from 'c12';
|
|
3
3
|
import { ChokidarOptions } from 'chokidar';
|
|
4
4
|
import { DateString, CompatibilityDateSpec, CompatibilityDates } from 'compatx';
|
|
5
5
|
import { ConsolaInstance, ConsolaOptions, LogLevel } from 'consola';
|
|
@@ -13,7 +13,7 @@ import * as next from 'next';
|
|
|
13
13
|
import { NextConfig } from 'next';
|
|
14
14
|
import { Stats } from 'node:fs';
|
|
15
15
|
import * as h3 from 'h3';
|
|
16
|
-
import { Session
|
|
16
|
+
import { Session } from 'h3';
|
|
17
17
|
import * as nitropack_types from 'nitropack/types';
|
|
18
18
|
import { ESMImport, ESMCodeGenOptions } from 'knitwork';
|
|
19
19
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
@@ -247,7 +247,7 @@ interface WithPathParams<PathParamsStr extends string> {
|
|
|
247
247
|
* // Result doesn't allow pathParams property
|
|
248
248
|
*/
|
|
249
249
|
type MethodSchemas<PathParamsStr extends string = ''> = {
|
|
250
|
-
[K in HTTPMethod
|
|
250
|
+
[K in HTTPMethod]?: HasPathParams<PathParamsStr> extends true ? BaseMethodSchema & WithPathParams<PathParamsStr> : BaseMethodSchema & {
|
|
251
251
|
pathParams?: never;
|
|
252
252
|
};
|
|
253
253
|
};
|
|
@@ -664,6 +664,7 @@ interface SilgiOptions {
|
|
|
664
664
|
};
|
|
665
665
|
captureError: CaptureError;
|
|
666
666
|
adapters: Record<string, Adapter<Record<string, any>, TablesSchema, InferModelTypes<TablesSchema>>>;
|
|
667
|
+
meta: SilgiMeta;
|
|
667
668
|
[key: string]: any;
|
|
668
669
|
}
|
|
669
670
|
|
|
@@ -702,7 +703,6 @@ interface Silgi {
|
|
|
702
703
|
}
|
|
703
704
|
interface SilgiConfig extends Partial<Omit<Silgi, 'options'>>, Partial<SilgiRuntimeOptions> {
|
|
704
705
|
options: DeepPartial<SilgiOptions>;
|
|
705
|
-
meta: SilgiMeta;
|
|
706
706
|
}
|
|
707
707
|
interface BuildSilgi {
|
|
708
708
|
framework?: {
|
|
@@ -891,6 +891,33 @@ interface GenerateAppOptions {
|
|
|
891
891
|
filter?: (template: ResolvedSilgiTemplate<any>) => boolean;
|
|
892
892
|
}
|
|
893
893
|
|
|
894
|
+
interface DotenvOptions {
|
|
895
|
+
/**
|
|
896
|
+
* The project root directory (either absolute or relative to the current working directory).
|
|
897
|
+
*/
|
|
898
|
+
cwd: string;
|
|
899
|
+
/**
|
|
900
|
+
* What file to look in for environment variables (either absolute or relative
|
|
901
|
+
* to the current working directory). For example, `.env`.
|
|
902
|
+
*/
|
|
903
|
+
fileName?: string;
|
|
904
|
+
/**
|
|
905
|
+
* Whether to interpolate variables within .env.
|
|
906
|
+
*
|
|
907
|
+
* @example
|
|
908
|
+
* ```env
|
|
909
|
+
* BASE_DIR="/test"
|
|
910
|
+
* # resolves to "/test/further"
|
|
911
|
+
* ANOTHER_DIR="${BASE_DIR}/further"
|
|
912
|
+
* ```
|
|
913
|
+
*/
|
|
914
|
+
interpolate?: boolean;
|
|
915
|
+
/**
|
|
916
|
+
* An object describing environment variables (key, value pairs).
|
|
917
|
+
*/
|
|
918
|
+
env?: NodeJS.ProcessEnv;
|
|
919
|
+
}
|
|
920
|
+
|
|
894
921
|
type SilgiPreset = (SilgiCLIConfig & {
|
|
895
922
|
_meta?: SilgiPresetMeta;
|
|
896
923
|
}) | (() => SilgiCLIConfig & {
|
|
@@ -918,7 +945,7 @@ interface SilgiCLIOptions extends PresetOptions {
|
|
|
918
945
|
commandType: CommandType;
|
|
919
946
|
commands: Commands[];
|
|
920
947
|
schemaVendor: Schema | Schema[];
|
|
921
|
-
environments: DotenvOptions
|
|
948
|
+
environments: DotenvOptions[];
|
|
922
949
|
activeEnvironment: 'prod' | 'docker' | 'staging' | 'testing' | '.env' | (string & {});
|
|
923
950
|
envOptions: EnvOptions;
|
|
924
951
|
runtimeConfig: SilgiRuntimeConfig;
|
|
@@ -1158,33 +1185,6 @@ interface LoadConfigOptions {
|
|
|
1158
1185
|
consola?: ConsolaInstance;
|
|
1159
1186
|
}
|
|
1160
1187
|
|
|
1161
|
-
interface DotenvOptions {
|
|
1162
|
-
/**
|
|
1163
|
-
* The project root directory (either absolute or relative to the current working directory).
|
|
1164
|
-
*/
|
|
1165
|
-
cwd: string;
|
|
1166
|
-
/**
|
|
1167
|
-
* What file to look in for environment variables (either absolute or relative
|
|
1168
|
-
* to the current working directory). For example, `.env`.
|
|
1169
|
-
*/
|
|
1170
|
-
fileName?: string;
|
|
1171
|
-
/**
|
|
1172
|
-
* Whether to interpolate variables within .env.
|
|
1173
|
-
*
|
|
1174
|
-
* @example
|
|
1175
|
-
* ```env
|
|
1176
|
-
* BASE_DIR="/test"
|
|
1177
|
-
* # resolves to "/test/further"
|
|
1178
|
-
* ANOTHER_DIR="${BASE_DIR}/further"
|
|
1179
|
-
* ```
|
|
1180
|
-
*/
|
|
1181
|
-
interpolate?: boolean;
|
|
1182
|
-
/**
|
|
1183
|
-
* An object describing environment variables (key, value pairs).
|
|
1184
|
-
*/
|
|
1185
|
-
env?: NodeJS.ProcessEnv;
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
1188
|
interface GraphQLJSON {
|
|
1189
1189
|
queries: any;
|
|
1190
1190
|
mutations: any;
|