@gigadrive/network-config 3.0.1 → 3.1.1
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/index.d.mts +17 -3
- package/dist/index.d.ts +17 -3
- package/dist/index.js +1221 -829
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +192 -109
- package/dist/index.mjs.map +1 -1
- package/dist/v4/schema.json +4 -0
- package/package.json +4 -4
- package/src/v4/schema.json +4 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileSystem, Path } from '@effect/platform';
|
|
2
|
-
import {
|
|
2
|
+
import { Effect, Schema, Layer } from 'effect';
|
|
3
3
|
import * as _effect_platform_Path from '@effect/platform/Path';
|
|
4
4
|
import * as _effect_platform_FileSystem from '@effect/platform/FileSystem';
|
|
5
5
|
|
|
@@ -123,6 +123,8 @@ interface NormalizedConfigEntrypoint {
|
|
|
123
123
|
package?: {
|
|
124
124
|
rootOverwrite?: string;
|
|
125
125
|
filePathMap?: FilePathMap;
|
|
126
|
+
includeFiles?: string[];
|
|
127
|
+
excludeFiles?: string[];
|
|
126
128
|
};
|
|
127
129
|
}
|
|
128
130
|
interface NormalizedConfigRoute {
|
|
@@ -215,6 +217,8 @@ interface FrameworkDefinition {
|
|
|
215
217
|
priority: number;
|
|
216
218
|
/** Generates deployment defaults for this framework */
|
|
217
219
|
getDefaultConfig: (packageManager: PackageManager) => FrameworkDefaultConfig;
|
|
220
|
+
/** Refines defaults with project files after a framework match, e.g. framework CLI config. */
|
|
221
|
+
refineDefaultConfig?: (defaults: FrameworkDefaultConfig, projectFolder: string) => Effect.Effect<FrameworkDefaultConfig, never, FileSystem.FileSystem>;
|
|
218
222
|
}
|
|
219
223
|
interface FrameworkDefaultConfig {
|
|
220
224
|
runtime: Runtime;
|
|
@@ -235,6 +239,12 @@ interface FrameworkDefaultConfig {
|
|
|
235
239
|
environmentVariables: Record<string, string>;
|
|
236
240
|
symlinks?: Record<string, string>;
|
|
237
241
|
excludeFiles?: string[];
|
|
242
|
+
package?: {
|
|
243
|
+
rootOverwrite?: string;
|
|
244
|
+
filePathMap?: Record<string, string>;
|
|
245
|
+
includeFiles?: string[];
|
|
246
|
+
excludeFiles?: string[];
|
|
247
|
+
};
|
|
238
248
|
}
|
|
239
249
|
interface DetectionResult {
|
|
240
250
|
framework: FrameworkDefinition;
|
|
@@ -277,7 +287,7 @@ declare const FRAMEWORK_DEFINITIONS: FrameworkDefinition[];
|
|
|
277
287
|
* @param packageManager - The detected package manager
|
|
278
288
|
* @returns A complete NormalizedConfig with framework defaults
|
|
279
289
|
*/
|
|
280
|
-
declare const generateConfig: (framework: FrameworkDefinition, packageManager: PackageManager) => Effect.Effect<NormalizedConfig, never, never>;
|
|
290
|
+
declare const generateConfig: (framework: FrameworkDefinition, packageManager: PackageManager, refinedDefaults?: FrameworkDefaultConfig | undefined) => Effect.Effect<NormalizedConfig, never, never>;
|
|
281
291
|
|
|
282
292
|
/**
|
|
283
293
|
* Merges framework defaults with a user-provided config.
|
|
@@ -474,7 +484,7 @@ interface ConfigV4 extends Config {
|
|
|
474
484
|
/**
|
|
475
485
|
* Additional environment variables to set during runtime and build.
|
|
476
486
|
*/
|
|
477
|
-
env
|
|
487
|
+
env?: Record<string, string>;
|
|
478
488
|
/**
|
|
479
489
|
* Optionally, specify additional services like databases to deploy.
|
|
480
490
|
*/
|
|
@@ -497,6 +507,10 @@ interface ConfigV4FunctionSettings {
|
|
|
497
507
|
* The runtime to use for the function.
|
|
498
508
|
*/
|
|
499
509
|
runtime?: Runtime;
|
|
510
|
+
/**
|
|
511
|
+
* Enable function response streaming. When omitted, Node and Bun runtimes stream by default.
|
|
512
|
+
*/
|
|
513
|
+
streaming?: boolean;
|
|
500
514
|
/**
|
|
501
515
|
* Use to create symlinks on the final function. This is useful for applications that require use of the file system, since serverless functions are ephemeral and have read-only file systems, except for /tmp.
|
|
502
516
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileSystem, Path } from '@effect/platform';
|
|
2
|
-
import {
|
|
2
|
+
import { Effect, Schema, Layer } from 'effect';
|
|
3
3
|
import * as _effect_platform_Path from '@effect/platform/Path';
|
|
4
4
|
import * as _effect_platform_FileSystem from '@effect/platform/FileSystem';
|
|
5
5
|
|
|
@@ -123,6 +123,8 @@ interface NormalizedConfigEntrypoint {
|
|
|
123
123
|
package?: {
|
|
124
124
|
rootOverwrite?: string;
|
|
125
125
|
filePathMap?: FilePathMap;
|
|
126
|
+
includeFiles?: string[];
|
|
127
|
+
excludeFiles?: string[];
|
|
126
128
|
};
|
|
127
129
|
}
|
|
128
130
|
interface NormalizedConfigRoute {
|
|
@@ -215,6 +217,8 @@ interface FrameworkDefinition {
|
|
|
215
217
|
priority: number;
|
|
216
218
|
/** Generates deployment defaults for this framework */
|
|
217
219
|
getDefaultConfig: (packageManager: PackageManager) => FrameworkDefaultConfig;
|
|
220
|
+
/** Refines defaults with project files after a framework match, e.g. framework CLI config. */
|
|
221
|
+
refineDefaultConfig?: (defaults: FrameworkDefaultConfig, projectFolder: string) => Effect.Effect<FrameworkDefaultConfig, never, FileSystem.FileSystem>;
|
|
218
222
|
}
|
|
219
223
|
interface FrameworkDefaultConfig {
|
|
220
224
|
runtime: Runtime;
|
|
@@ -235,6 +239,12 @@ interface FrameworkDefaultConfig {
|
|
|
235
239
|
environmentVariables: Record<string, string>;
|
|
236
240
|
symlinks?: Record<string, string>;
|
|
237
241
|
excludeFiles?: string[];
|
|
242
|
+
package?: {
|
|
243
|
+
rootOverwrite?: string;
|
|
244
|
+
filePathMap?: Record<string, string>;
|
|
245
|
+
includeFiles?: string[];
|
|
246
|
+
excludeFiles?: string[];
|
|
247
|
+
};
|
|
238
248
|
}
|
|
239
249
|
interface DetectionResult {
|
|
240
250
|
framework: FrameworkDefinition;
|
|
@@ -277,7 +287,7 @@ declare const FRAMEWORK_DEFINITIONS: FrameworkDefinition[];
|
|
|
277
287
|
* @param packageManager - The detected package manager
|
|
278
288
|
* @returns A complete NormalizedConfig with framework defaults
|
|
279
289
|
*/
|
|
280
|
-
declare const generateConfig: (framework: FrameworkDefinition, packageManager: PackageManager) => Effect.Effect<NormalizedConfig, never, never>;
|
|
290
|
+
declare const generateConfig: (framework: FrameworkDefinition, packageManager: PackageManager, refinedDefaults?: FrameworkDefaultConfig | undefined) => Effect.Effect<NormalizedConfig, never, never>;
|
|
281
291
|
|
|
282
292
|
/**
|
|
283
293
|
* Merges framework defaults with a user-provided config.
|
|
@@ -474,7 +484,7 @@ interface ConfigV4 extends Config {
|
|
|
474
484
|
/**
|
|
475
485
|
* Additional environment variables to set during runtime and build.
|
|
476
486
|
*/
|
|
477
|
-
env
|
|
487
|
+
env?: Record<string, string>;
|
|
478
488
|
/**
|
|
479
489
|
* Optionally, specify additional services like databases to deploy.
|
|
480
490
|
*/
|
|
@@ -497,6 +507,10 @@ interface ConfigV4FunctionSettings {
|
|
|
497
507
|
* The runtime to use for the function.
|
|
498
508
|
*/
|
|
499
509
|
runtime?: Runtime;
|
|
510
|
+
/**
|
|
511
|
+
* Enable function response streaming. When omitted, Node and Bun runtimes stream by default.
|
|
512
|
+
*/
|
|
513
|
+
streaming?: boolean;
|
|
500
514
|
/**
|
|
501
515
|
* Use to create symlinks on the final function. This is useful for applications that require use of the file system, since serverless functions are ephemeral and have read-only file systems, except for /tmp.
|
|
502
516
|
*/
|