@storm-software/config-tools 1.36.2 β 1.38.0
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/CHANGELOG.md +24 -0
- package/declarations.d.ts +1 -1
- package/package.json +3 -2
- package/project.json +1 -6
- package/src/env/get-env.ts +2 -1
- package/src/env/set-env.ts +5 -2
- package/src/utilities/get-default-config.ts +2 -1
- package/tsconfig.json +3 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## 1.38.0 (2024-04-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### π Features
|
|
5
|
+
|
|
6
|
+
- **config-tools:** Added esm support ([fd9dbda5](https://github.com/storm-software/storm-ops/commit/fd9dbda5))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### β€οΈ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
13
|
+
## 1.37.0 (2024-04-13)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### π Features
|
|
17
|
+
|
|
18
|
+
- **config:** Add `light` and `dark` colors to configuration ([654cd1d0](https://github.com/storm-software/storm-ops/commit/654cd1d0))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### β€οΈ Thank You
|
|
22
|
+
|
|
23
|
+
- Patrick Sullivan
|
|
24
|
+
|
|
1
25
|
## 1.36.2 (2024-04-13)
|
|
2
26
|
|
|
3
27
|
|
package/declarations.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export { getConfigFile };
|
|
|
55
55
|
/**
|
|
56
56
|
* Load the config file values for the current Storm workspace into environment variables
|
|
57
57
|
*/
|
|
58
|
-
declare function loadStormConfig(workspaceRoot?: string): Promise<
|
|
58
|
+
declare function loadStormConfig(workspaceRoot?: string): Promise<StormConfig>;
|
|
59
59
|
export { loadStormConfig };
|
|
60
60
|
|
|
61
61
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.38.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "β‘The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
6
6
|
"repository": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"url": "https://github.com/storm-software/storm-ops",
|
|
9
9
|
"directory": "packages/config-tools"
|
|
10
10
|
},
|
|
11
|
-
"main": "./index.
|
|
11
|
+
"main": "./index.cjs",
|
|
12
|
+
"module": "./index.js",
|
|
12
13
|
"types": "declarations.d.ts",
|
|
13
14
|
"dependencies": {
|
|
14
15
|
"c12": "^1.10.0",
|
package/project.json
CHANGED
package/src/env/get-env.ts
CHANGED
|
@@ -82,7 +82,8 @@ export const getConfigEnv = (): DeepPartial<StormConfig> => {
|
|
|
82
82
|
: undefined,
|
|
83
83
|
colors: {
|
|
84
84
|
primary: process.env[`${prefix}COLOR_PRIMARY`],
|
|
85
|
-
|
|
85
|
+
dark: process.env[`${prefix}COLOR_DARK`],
|
|
86
|
+
light: process.env[`${prefix}COLOR_LIGHT`],
|
|
86
87
|
success: process.env[`${prefix}COLOR_SUCCESS`],
|
|
87
88
|
info: process.env[`${prefix}COLOR_INFO`],
|
|
88
89
|
warning: process.env[`${prefix}COLOR_WARNING`],
|
package/src/env/set-env.ts
CHANGED
|
@@ -153,8 +153,11 @@ export const setConfigEnv = (config: StormConfig) => {
|
|
|
153
153
|
if (config.colors.primary) {
|
|
154
154
|
process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary;
|
|
155
155
|
}
|
|
156
|
-
if (config.colors.
|
|
157
|
-
process.env[`${prefix}
|
|
156
|
+
if (config.colors.dark) {
|
|
157
|
+
process.env[`${prefix}COLOR_DARK`] = config.colors.dark;
|
|
158
|
+
}
|
|
159
|
+
if (config.colors.light) {
|
|
160
|
+
process.env[`${prefix}COLOR_LIGHT`] = config.colors.light;
|
|
158
161
|
}
|
|
159
162
|
if (config.colors.success) {
|
|
160
163
|
process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success;
|
|
@@ -12,7 +12,8 @@ import { findWorkspaceRoot } from "./find-workspace-root";
|
|
|
12
12
|
*/
|
|
13
13
|
export const DEFAULT_COLOR_CONFIG: ColorConfig = {
|
|
14
14
|
primary: "#1fb2a6",
|
|
15
|
-
|
|
15
|
+
dark: "#1d232a",
|
|
16
|
+
light: "#f4f4f5",
|
|
16
17
|
success: "#087f5b",
|
|
17
18
|
info: "#0ea5e9",
|
|
18
19
|
warning: "#fcc419",
|
package/tsconfig.json
CHANGED
|
@@ -4,12 +4,6 @@
|
|
|
4
4
|
"outDir": "../../dist/out-tsc",
|
|
5
5
|
"module": "commonjs"
|
|
6
6
|
},
|
|
7
|
-
"include": [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"exclude": [
|
|
11
|
-
"jest.config.ts",
|
|
12
|
-
"src/**/*.spec.ts",
|
|
13
|
-
"src/**/*.test.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
7
|
+
"include": ["**/*"],
|
|
8
|
+
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
|
|
9
|
+
}
|