@storm-software/linting-tools 1.68.0 → 1.70.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 +14 -0
- package/README.md +1 -1
- package/bin/lint.js +16 -12
- package/package.json +1 -1
- package/src/cli/index.js +16 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 1.70.0 (2024-08-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
- **build-tools:** Update the unbuild configuration to get exports from `package.json` files ([bb2fc78f](https://github.com/storm-software/storm-ops/commit/bb2fc78f))
|
|
7
|
+
|
|
8
|
+
## 1.69.0 (2024-08-02)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
- **terraform-tools:** Initial check-in of project code ([c4ef4810](https://github.com/storm-software/storm-ops/commit/c4ef4810))
|
|
14
|
+
|
|
1
15
|
## 1.68.0 (2024-08-02)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/bin/lint.js
CHANGED
|
@@ -358817,9 +358817,6 @@ var StormConfigSchema = z2.object({
|
|
|
358817
358817
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
358818
358818
|
),
|
|
358819
358819
|
env: z2.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
|
|
358820
|
-
ci: z2.boolean().default(true).describe(
|
|
358821
|
-
"An indicator specifying if the current environment is a CI environment"
|
|
358822
|
-
),
|
|
358823
358820
|
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
358824
358821
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
358825
358822
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
@@ -358919,7 +358916,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
358919
358916
|
env: "production",
|
|
358920
358917
|
branch: "main",
|
|
358921
358918
|
organization: "storm-software",
|
|
358922
|
-
ci: true,
|
|
358923
358919
|
configFile: null,
|
|
358924
358920
|
runtimeVersion: "1.0.0",
|
|
358925
358921
|
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
@@ -359325,9 +359321,14 @@ var getConfigEnv = () => {
|
|
|
359325
359321
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
359326
359322
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
359327
359323
|
env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
359328
|
-
ci:
|
|
359329
|
-
|
|
359330
|
-
|
|
359324
|
+
// ci:
|
|
359325
|
+
// process.env[`${prefix}CI`] !== undefined
|
|
359326
|
+
// ? Boolean(
|
|
359327
|
+
// process.env[`${prefix}CI`] ??
|
|
359328
|
+
// process.env.CI ??
|
|
359329
|
+
// process.env.CONTINUOUS_INTEGRATION
|
|
359330
|
+
// )
|
|
359331
|
+
// : undefined,
|
|
359331
359332
|
repository: process.env[`${prefix}REPOSITORY`],
|
|
359332
359333
|
branch: process.env[`${prefix}BRANCH`],
|
|
359333
359334
|
preid: process.env[`${prefix}PRE_ID`],
|
|
@@ -359520,11 +359521,6 @@ var setConfigEnv = (config) => {
|
|
|
359520
359521
|
process.env.NODE_ENV = config.env;
|
|
359521
359522
|
process.env.ENVIRONMENT = config.env;
|
|
359522
359523
|
}
|
|
359523
|
-
if (config.ci) {
|
|
359524
|
-
process.env[`${prefix}CI`] = String(config.ci);
|
|
359525
|
-
process.env.CI = String(config.ci);
|
|
359526
|
-
process.env.CONTINUOUS_INTEGRATION = String(config.ci);
|
|
359527
|
-
}
|
|
359528
359524
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
359529
359525
|
for (const key of Object.keys(config.colors)) {
|
|
359530
359526
|
setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
@@ -359674,8 +359670,16 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
359674
359670
|
};
|
|
359675
359671
|
|
|
359676
359672
|
// packages/config-tools/src/create-storm-config.ts
|
|
359673
|
+
var _static_cache = void 0;
|
|
359677
359674
|
var loadStormConfig = async (workspaceRoot) => {
|
|
359678
359675
|
let config = {};
|
|
359676
|
+
if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
|
|
359677
|
+
writeInfo(
|
|
359678
|
+
`Configuration cache hit - ${_static_cache.timestamp}`,
|
|
359679
|
+
_static_cache.data
|
|
359680
|
+
);
|
|
359681
|
+
return _static_cache.data;
|
|
359682
|
+
}
|
|
359679
359683
|
let _workspaceRoot = workspaceRoot;
|
|
359680
359684
|
if (!_workspaceRoot) {
|
|
359681
359685
|
_workspaceRoot = findWorkspaceRoot();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.70.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
|
|
6
6
|
"repository": {
|
package/src/cli/index.js
CHANGED
|
@@ -357007,9 +357007,6 @@ var StormConfigSchema = z2.object({
|
|
|
357007
357007
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
357008
357008
|
),
|
|
357009
357009
|
env: z2.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
|
|
357010
|
-
ci: z2.boolean().default(true).describe(
|
|
357011
|
-
"An indicator specifying if the current environment is a CI environment"
|
|
357012
|
-
),
|
|
357013
357010
|
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
357014
357011
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
357015
357012
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
@@ -357109,7 +357106,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
357109
357106
|
env: "production",
|
|
357110
357107
|
branch: "main",
|
|
357111
357108
|
organization: "storm-software",
|
|
357112
|
-
ci: true,
|
|
357113
357109
|
configFile: null,
|
|
357114
357110
|
runtimeVersion: "1.0.0",
|
|
357115
357111
|
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
@@ -357472,9 +357468,14 @@ var getConfigEnv = () => {
|
|
|
357472
357468
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
357473
357469
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
357474
357470
|
env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
357475
|
-
ci:
|
|
357476
|
-
|
|
357477
|
-
|
|
357471
|
+
// ci:
|
|
357472
|
+
// process.env[`${prefix}CI`] !== undefined
|
|
357473
|
+
// ? Boolean(
|
|
357474
|
+
// process.env[`${prefix}CI`] ??
|
|
357475
|
+
// process.env.CI ??
|
|
357476
|
+
// process.env.CONTINUOUS_INTEGRATION
|
|
357477
|
+
// )
|
|
357478
|
+
// : undefined,
|
|
357478
357479
|
repository: process.env[`${prefix}REPOSITORY`],
|
|
357479
357480
|
branch: process.env[`${prefix}BRANCH`],
|
|
357480
357481
|
preid: process.env[`${prefix}PRE_ID`],
|
|
@@ -357667,11 +357668,6 @@ var setConfigEnv = (config) => {
|
|
|
357667
357668
|
process.env.NODE_ENV = config.env;
|
|
357668
357669
|
process.env.ENVIRONMENT = config.env;
|
|
357669
357670
|
}
|
|
357670
|
-
if (config.ci) {
|
|
357671
|
-
process.env[`${prefix}CI`] = String(config.ci);
|
|
357672
|
-
process.env.CI = String(config.ci);
|
|
357673
|
-
process.env.CONTINUOUS_INTEGRATION = String(config.ci);
|
|
357674
|
-
}
|
|
357675
357671
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
357676
357672
|
for (const key of Object.keys(config.colors)) {
|
|
357677
357673
|
setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
@@ -357821,8 +357817,16 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
357821
357817
|
};
|
|
357822
357818
|
|
|
357823
357819
|
// packages/config-tools/src/create-storm-config.ts
|
|
357820
|
+
var _static_cache = void 0;
|
|
357824
357821
|
var loadStormConfig = async (workspaceRoot) => {
|
|
357825
357822
|
let config = {};
|
|
357823
|
+
if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
|
|
357824
|
+
writeInfo(
|
|
357825
|
+
`Configuration cache hit - ${_static_cache.timestamp}`,
|
|
357826
|
+
_static_cache.data
|
|
357827
|
+
);
|
|
357828
|
+
return _static_cache.data;
|
|
357829
|
+
}
|
|
357826
357830
|
let _workspaceRoot = workspaceRoot;
|
|
357827
357831
|
if (!_workspaceRoot) {
|
|
357828
357832
|
_workspaceRoot = findWorkspaceRoot();
|