@storm-software/config-tools 1.39.0 → 1.39.2
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 +19 -0
- package/README.md +6 -4
- package/index.cjs +17 -5
- package/index.js +17 -5
- package/meta.cjs.json +1 -1
- package/meta.esm.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## 1.39.2 (2024-04-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **config-tools:** Clean up the README markdown ([676d23d3](https://github.com/storm-software/storm-ops/commit/676d23d3))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
13
|
+
## 1.39.1 (2024-04-15)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 🩹 Fixes
|
|
17
|
+
|
|
18
|
+
- **deps:** pin dependencies ([36d5dd8e](https://github.com/storm-software/storm-ops/commit/36d5dd8e))
|
|
19
|
+
|
|
1
20
|
## 1.39.0 (2024-04-13)
|
|
2
21
|
|
|
3
22
|
|
package/README.md
CHANGED
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages include CLI utility applications, tools, and various libraries used to create modern, scalable web applications.
|
|
17
17
|
<br />
|
|
18
18
|
|
|
19
|
-
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3
|
|
19
|
+
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3>
|
|
20
|
+
|
|
21
|
+
<br />
|
|
20
22
|
|
|
21
23
|
[](https://prettier.io/)
|
|
22
24
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
@@ -26,7 +28,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
26
28
|
|
|
27
29
|
<br />
|
|
28
30
|
|
|
29
|
-
|
|
30
31
|
<!-- markdownlint-restore -->
|
|
31
32
|
<!-- prettier-ignore-end -->
|
|
32
33
|
|
|
@@ -40,7 +41,8 @@ Below is a list of the available configuration values that can be set through en
|
|
|
40
41
|
|
|
41
42
|
| Name | Description | Default |
|
|
42
43
|
| ----------------------- | -------------------------------------------------------------------------------------- | --------------------------- |
|
|
43
|
-
|
|
|
44
|
+
| STORM_COLOR_LIGHT | The workspace's light background theme color | `#f4f4f5` |
|
|
45
|
+
| STORM_COLOR_DARK | The workspace's dark background theme color | `#1d232a` |
|
|
44
46
|
| STORM_COLOR_ERROR | The workspace's error theme color | `#990000` |
|
|
45
47
|
| STORM_COLOR_FATAL | The workspace's fatal theme color | `#7d1a1a` |
|
|
46
48
|
| STORM_COLOR_INFO | The workspace's info theme color | `#0ea5e9` |
|
|
@@ -54,7 +56,7 @@ Below is a list of the available configuration values that can be set through en
|
|
|
54
56
|
| STORM_LOG_LEVEL | The current maximum level of messages to write to the logs | "info" |
|
|
55
57
|
| STORM_ORGANIZATION | The organization of the workspace | "storm-software" |
|
|
56
58
|
| STORM_REPOSITORY | The repo URL of the workspace (i.e. GitHub URL) |
|
|
57
|
-
| STORM_RUNTIME_DIRECTORY | The default directory of the storm runtime for storage/generation | "
|
|
59
|
+
| STORM_RUNTIME_DIRECTORY | The default directory of the storm runtime for storage/generation | "./.storm" |
|
|
58
60
|
| STORM_RUNTIME_VERSION | The global version of the Storm runtime | "1.0.0" |
|
|
59
61
|
| STORM_TIMEZONE | The default timezone of the workspace | "America/New_York" |
|
|
60
62
|
| STORM_BOT | The worker of the package (this is the bot that will be used to perform various tasks) | "stormie-bot" |
|
package/index.cjs
CHANGED
|
@@ -68026,7 +68026,13 @@ var getConfigFileByName = async (fileName, filePath) => {
|
|
|
68026
68026
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
68027
68027
|
return loadConfig({
|
|
68028
68028
|
cwd: workspacePath,
|
|
68029
|
-
|
|
68029
|
+
packageJson: true,
|
|
68030
|
+
name: fileName,
|
|
68031
|
+
envName: fileName?.toUpperCase(),
|
|
68032
|
+
jitiOptions: {
|
|
68033
|
+
debug: true,
|
|
68034
|
+
cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
|
|
68035
|
+
}
|
|
68030
68036
|
});
|
|
68031
68037
|
};
|
|
68032
68038
|
var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
@@ -68035,7 +68041,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
68035
68041
|
cwd: workspacePath,
|
|
68036
68042
|
name: "storm"
|
|
68037
68043
|
});
|
|
68038
|
-
if (additionalFileNames) {
|
|
68044
|
+
if (additionalFileNames && additionalFileNames.length > 0) {
|
|
68039
68045
|
const results = await Promise.all(
|
|
68040
68046
|
additionalFileNames.map(
|
|
68041
68047
|
(fileName) => loadConfig({
|
|
@@ -71799,7 +71805,10 @@ var z4 = /* @__PURE__ */ Object.freeze({
|
|
|
71799
71805
|
var ColorConfigSchema = z4.object({
|
|
71800
71806
|
dark: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The dark background color of the workspace"),
|
|
71801
71807
|
light: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace"),
|
|
71802
|
-
primary: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
71808
|
+
primary: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary color of the workspace"),
|
|
71809
|
+
secondary: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The secondary color of the workspace"),
|
|
71810
|
+
tertiary: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ec5990").describe("The tertiary color of the workspace"),
|
|
71811
|
+
accent: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#6366f1").describe("The accent color of the workspace"),
|
|
71803
71812
|
success: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace"),
|
|
71804
71813
|
info: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The informational color of the workspace"),
|
|
71805
71814
|
warning: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace"),
|
|
@@ -71866,9 +71875,12 @@ var StormConfigSchema = z4.object({
|
|
|
71866
71875
|
|
|
71867
71876
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
71868
71877
|
var DEFAULT_COLOR_CONFIG = {
|
|
71869
|
-
primary: "#1fb2a6",
|
|
71870
71878
|
dark: "#1d232a",
|
|
71871
71879
|
light: "#f4f4f5",
|
|
71880
|
+
primary: "#1fb2a6",
|
|
71881
|
+
secondary: "#0ea5e9",
|
|
71882
|
+
tertiary: "#ec5990",
|
|
71883
|
+
accent: "#6366f1",
|
|
71872
71884
|
success: "#087f5b",
|
|
71873
71885
|
info: "#0ea5e9",
|
|
71874
71886
|
warning: "#fcc419",
|
|
@@ -72571,7 +72583,7 @@ var loadStormConfig = async (workspaceRoot) => {
|
|
|
72571
72583
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
72572
72584
|
if (!configFile) {
|
|
72573
72585
|
writeWarning(
|
|
72574
|
-
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.
|
|
72586
|
+
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n",
|
|
72575
72587
|
{ logLevel: "all" }
|
|
72576
72588
|
);
|
|
72577
72589
|
}
|
package/index.js
CHANGED
|
@@ -67985,7 +67985,13 @@ var getConfigFileByName = async (fileName, filePath) => {
|
|
|
67985
67985
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
67986
67986
|
return loadConfig({
|
|
67987
67987
|
cwd: workspacePath,
|
|
67988
|
-
|
|
67988
|
+
packageJson: true,
|
|
67989
|
+
name: fileName,
|
|
67990
|
+
envName: fileName?.toUpperCase(),
|
|
67991
|
+
jitiOptions: {
|
|
67992
|
+
debug: true,
|
|
67993
|
+
cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
|
|
67994
|
+
}
|
|
67989
67995
|
});
|
|
67990
67996
|
};
|
|
67991
67997
|
var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
@@ -67994,7 +68000,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
67994
68000
|
cwd: workspacePath,
|
|
67995
68001
|
name: "storm"
|
|
67996
68002
|
});
|
|
67997
|
-
if (additionalFileNames) {
|
|
68003
|
+
if (additionalFileNames && additionalFileNames.length > 0) {
|
|
67998
68004
|
const results = await Promise.all(
|
|
67999
68005
|
additionalFileNames.map(
|
|
68000
68006
|
(fileName) => loadConfig({
|
|
@@ -71758,7 +71764,10 @@ var z4 = /* @__PURE__ */ Object.freeze({
|
|
|
71758
71764
|
var ColorConfigSchema = z4.object({
|
|
71759
71765
|
dark: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The dark background color of the workspace"),
|
|
71760
71766
|
light: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace"),
|
|
71761
|
-
primary: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
71767
|
+
primary: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary color of the workspace"),
|
|
71768
|
+
secondary: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The secondary color of the workspace"),
|
|
71769
|
+
tertiary: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ec5990").describe("The tertiary color of the workspace"),
|
|
71770
|
+
accent: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#6366f1").describe("The accent color of the workspace"),
|
|
71762
71771
|
success: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace"),
|
|
71763
71772
|
info: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The informational color of the workspace"),
|
|
71764
71773
|
warning: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace"),
|
|
@@ -71825,9 +71834,12 @@ var StormConfigSchema = z4.object({
|
|
|
71825
71834
|
|
|
71826
71835
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
71827
71836
|
var DEFAULT_COLOR_CONFIG = {
|
|
71828
|
-
primary: "#1fb2a6",
|
|
71829
71837
|
dark: "#1d232a",
|
|
71830
71838
|
light: "#f4f4f5",
|
|
71839
|
+
primary: "#1fb2a6",
|
|
71840
|
+
secondary: "#0ea5e9",
|
|
71841
|
+
tertiary: "#ec5990",
|
|
71842
|
+
accent: "#6366f1",
|
|
71831
71843
|
success: "#087f5b",
|
|
71832
71844
|
info: "#0ea5e9",
|
|
71833
71845
|
warning: "#fcc419",
|
|
@@ -72530,7 +72542,7 @@ var loadStormConfig = async (workspaceRoot) => {
|
|
|
72530
72542
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
72531
72543
|
if (!configFile) {
|
|
72532
72544
|
writeWarning(
|
|
72533
|
-
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.
|
|
72545
|
+
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n",
|
|
72534
72546
|
{ logLevel: "all" }
|
|
72535
72547
|
);
|
|
72536
72548
|
}
|