@stacksjs/config 0.72.101 → 0.72.103
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/config.d.ts +13 -1
- package/package.json +4 -4
package/dist/config.d.ts
CHANGED
|
@@ -98,6 +98,18 @@ export declare let services: StacksOptions['services'];
|
|
|
98
98
|
export declare let filesystems: StacksOptions['filesystems'];
|
|
99
99
|
export declare let team: StacksOptions['team'];
|
|
100
100
|
export declare let ui: StacksOptions['ui'];
|
|
101
|
-
|
|
101
|
+
/**
|
|
102
|
+
* What `determineAppEnv` answers.
|
|
103
|
+
*
|
|
104
|
+
* The three canonical values, plus a passthrough for any other configured
|
|
105
|
+
* environment - the function maps local/development, staging and production
|
|
106
|
+
* onto them and returns anything else unchanged.
|
|
107
|
+
*
|
|
108
|
+
* `(string & {})` rather than a bare `string`: a bare one absorbs the literals
|
|
109
|
+
* and the union collapses, so the three canonical values stop being offered as
|
|
110
|
+
* completions and the type says nothing at all.
|
|
111
|
+
*/
|
|
112
|
+
// eslint-disable-next-line ts/ban-types -- `string & {}` keeps literal completions alive
|
|
113
|
+
declare type AppEnv = 'dev' | 'stage' | 'prod' | (string & {});
|
|
102
114
|
export * from './helpers';
|
|
103
115
|
export { defaults, overrides, overridesReady };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/config",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.72.
|
|
5
|
+
"version": "0.72.103",
|
|
6
6
|
"description": "The Stacks config helper methods.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"prepublishOnly": "bun run build"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@stacksjs/events": "0.72.
|
|
58
|
+
"@stacksjs/events": "0.72.103",
|
|
59
59
|
"ts-pantry": "^0.11.35"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@stacksjs/alias": "0.72.
|
|
62
|
+
"@stacksjs/alias": "0.72.103",
|
|
63
63
|
"better-dx": "^0.2.24",
|
|
64
|
-
"@stacksjs/types": "0.72.
|
|
64
|
+
"@stacksjs/types": "0.72.103"
|
|
65
65
|
}
|
|
66
66
|
}
|