@coreframe/config 0.1.9 → 0.1.10
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.ts +7 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -98,6 +98,8 @@ type I18nConfig = {
|
|
|
98
98
|
sourceLocale: string;
|
|
99
99
|
};
|
|
100
100
|
type DeployEnvironment = "staging" | "production";
|
|
101
|
+
/** Active topology published by the Coreframe deployment workflow. */
|
|
102
|
+
type DeployMode = "client" | "full";
|
|
101
103
|
type DeployContext = {
|
|
102
104
|
/** Deployment environment being released. */environment: DeployEnvironment; /** Human-readable name assigned to the release. */
|
|
103
105
|
releaseName: string; /** Public URL of the deployed application. */
|
|
@@ -121,13 +123,15 @@ type StagingHostnameConfig = {
|
|
|
121
123
|
type DeployConfig = {
|
|
122
124
|
/** Hook called after all deployment work completes. */afterDeploy?: (context: DeployContext) => Promise<void> | void; /** Hook called immediately after the worker deployment completes. */
|
|
123
125
|
afterWorkerDeploy?: (context: DeployContext) => Promise<void> | void; /** Per-environment deployment overrides. */
|
|
124
|
-
environments?: Partial<Record<DeployEnvironment, DeployEnvironmentConfig>>;
|
|
126
|
+
environments?: Partial<Record<DeployEnvironment, DeployEnvironmentConfig>>; /** Deployed application topology selected by the Coreframe release workflow. */
|
|
127
|
+
mode: DeployMode;
|
|
125
128
|
/**
|
|
126
129
|
* HTTP checks run against the application after deployment.
|
|
127
130
|
*
|
|
128
131
|
* @example
|
|
129
132
|
* defineConfig({
|
|
130
133
|
* deploy: {
|
|
134
|
+
* mode: "full",
|
|
131
135
|
* smokeChecks: [
|
|
132
136
|
* { name: "home", path: "/" },
|
|
133
137
|
* {
|
|
@@ -146,6 +150,7 @@ type DeployConfig = {
|
|
|
146
150
|
* @example
|
|
147
151
|
* defineConfig({
|
|
148
152
|
* deploy: {
|
|
153
|
+
* mode: "full",
|
|
149
154
|
* stagingHostname: {
|
|
150
155
|
* managedLabelPrefix: "review-",
|
|
151
156
|
* parentHostname: "staging.example.com",
|
|
@@ -165,4 +170,4 @@ declare function readProjectConfig({
|
|
|
165
170
|
declare function importProjectModule<T>(path: string, cwd?: string): Promise<T>;
|
|
166
171
|
declare function importProjectDependency<T>(specifier: string, cwd?: string): Promise<T>;
|
|
167
172
|
//#endregion
|
|
168
|
-
export { AssetsConfig, CoreframeConfig, DatabaseConfig, DatabaseDialect, DeployConfig, DeployContext, DeployEnvironment, DeployEnvironmentConfig, DeploySmokeCheck, DevConfig, DevPlatform, FlutterConfig, FlutterDeepLinkConfig, I18nConfig, JsonObject, JsonValue, PreviewConfig, PreviewTunnelConfig, PreviewWorkerConfig, PrimaryWorkerContributions, PrimaryWorkerEnvironment, StagingHostnameConfig, WorkerConfig, WorkerDeployEnvironment, WorkerEnvironmentDeclaration, WorkerEnvironmentKind, WorkerEnvironmentVariableConfig, WranglerConfig, coreframeGeneratedWorkerVariables, coreframeLocalWorkerVariables, coreframeManagedWorkerSecrets, defineConfig, derivePrimaryWorkerConfig, importProjectDependency, importProjectModule, normalizeWorkerEnvironment, primaryWorkerConfigPath, primaryWorkerEnvironments, readProjectConfig, validateWorkerInventoryOwnership, workerBindingNames, wranglerEnvironmentNames };
|
|
173
|
+
export { AssetsConfig, CoreframeConfig, DatabaseConfig, DatabaseDialect, DeployConfig, DeployContext, DeployEnvironment, DeployEnvironmentConfig, DeployMode, DeploySmokeCheck, DevConfig, DevPlatform, FlutterConfig, FlutterDeepLinkConfig, I18nConfig, JsonObject, JsonValue, PreviewConfig, PreviewTunnelConfig, PreviewWorkerConfig, PrimaryWorkerContributions, PrimaryWorkerEnvironment, StagingHostnameConfig, WorkerConfig, WorkerDeployEnvironment, WorkerEnvironmentDeclaration, WorkerEnvironmentKind, WorkerEnvironmentVariableConfig, WranglerConfig, coreframeGeneratedWorkerVariables, coreframeLocalWorkerVariables, coreframeManagedWorkerSecrets, defineConfig, derivePrimaryWorkerConfig, importProjectDependency, importProjectModule, normalizeWorkerEnvironment, primaryWorkerConfigPath, primaryWorkerEnvironments, readProjectConfig, validateWorkerInventoryOwnership, workerBindingNames, wranglerEnvironmentNames };
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coreframe/config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Environment and project configuration utilities for Coreframe apps",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/coreframe-js/coreframe.git",
|
|
8
8
|
"directory": "node/config"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|