@storm-software/linting-tools 1.119.18 → 1.119.20
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/README.md +1 -1
- package/bin/lint.cjs +29 -11
- package/bin/lint.js +29 -11
- package/dist/index.cjs +29 -11
- package/dist/index.d.cts +41 -7
- package/dist/index.d.ts +41 -7
- package/dist/index.js +29 -11
- package/package.json +1 -1
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.cjs
CHANGED
|
@@ -343748,7 +343748,11 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
343748
343748
|
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
343749
343749
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
343750
343750
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
343751
|
-
var
|
|
343751
|
+
var errorConfigSchema = z.object({
|
|
343752
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
|
|
343753
|
+
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
343754
|
+
}).describe("The workspace's error config used during the error process");
|
|
343755
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
343752
343756
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
343753
343757
|
extends: ExtendsSchema.optional(),
|
|
343754
343758
|
name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
@@ -343766,6 +343770,7 @@ var StormConfigSchema = z.object({
|
|
|
343766
343770
|
bot: WorkspaceBotConfigSchema,
|
|
343767
343771
|
release: WorkspaceReleaseConfigSchema,
|
|
343768
343772
|
account: WorkspaceAccountConfigSchema,
|
|
343773
|
+
error: errorConfigSchema,
|
|
343769
343774
|
mode: z.enum([
|
|
343770
343775
|
"development",
|
|
343771
343776
|
"staging",
|
|
@@ -344109,7 +344114,10 @@ var getDefaultConfig = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, asy
|
|
|
344109
344114
|
license,
|
|
344110
344115
|
homepage,
|
|
344111
344116
|
docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
|
|
344112
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license
|
|
344117
|
+
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
344118
|
+
error: {
|
|
344119
|
+
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
344120
|
+
}
|
|
344113
344121
|
};
|
|
344114
344122
|
}, "getDefaultConfig");
|
|
344115
344123
|
|
|
@@ -344470,6 +344478,10 @@ var getConfigEnv = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, () => {
|
|
|
344470
344478
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
344471
344479
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
344472
344480
|
},
|
|
344481
|
+
error: {
|
|
344482
|
+
codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
|
|
344483
|
+
url: process.env[`${prefix}ERROR_URL`] || void 0
|
|
344484
|
+
},
|
|
344473
344485
|
account: {
|
|
344474
344486
|
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
344475
344487
|
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
@@ -344644,6 +344656,10 @@ var setConfigEnv = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, (config
|
|
|
344644
344656
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
344645
344657
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
344646
344658
|
}
|
|
344659
|
+
if (config.error) {
|
|
344660
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
|
|
344661
|
+
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
344662
|
+
}
|
|
344647
344663
|
if (config.release) {
|
|
344648
344664
|
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
344649
344665
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
@@ -344774,7 +344790,7 @@ var setConfigEnv = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, (config
|
|
|
344774
344790
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
|
|
344775
344791
|
}
|
|
344776
344792
|
if (config.registry.container) {
|
|
344777
|
-
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.
|
|
344793
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
|
|
344778
344794
|
}
|
|
344779
344795
|
}
|
|
344780
344796
|
if (config.logLevel) {
|
|
@@ -344894,7 +344910,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(v
|
|
|
344894
344910
|
// ../config-tools/src/create-storm-config.ts
|
|
344895
344911
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
344896
344912
|
var _static_cache = void 0;
|
|
344897
|
-
var
|
|
344913
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, async (extensionName, schema2, workspaceRoot, skipLogs = false) => {
|
|
344898
344914
|
let result;
|
|
344899
344915
|
if (!_optionalChain([_static_cache, 'optionalAccess', _558 => _558.data]) || !_optionalChain([_static_cache, 'optionalAccess', _559 => _559.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
344900
344916
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -344909,7 +344925,7 @@ var createStormConfig = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, as
|
|
|
344909
344925
|
logLevel: "all"
|
|
344910
344926
|
});
|
|
344911
344927
|
}
|
|
344912
|
-
result = await
|
|
344928
|
+
result = await stormWorkspaceConfigSchema.parseAsync(_chunkEF2QNWS4cjs.defu.call(void 0, configEnv, configFile, defaultConfig));
|
|
344913
344929
|
result.workspaceRoot ??= _workspaceRoot;
|
|
344914
344930
|
} else {
|
|
344915
344931
|
result = _static_cache.data;
|
|
@@ -344925,7 +344941,7 @@ var createStormConfig = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, as
|
|
|
344925
344941
|
data: result
|
|
344926
344942
|
};
|
|
344927
344943
|
return result;
|
|
344928
|
-
}, "
|
|
344944
|
+
}, "createStormWorkspaceConfig");
|
|
344929
344945
|
var createConfigExtension = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, (extensionName, schema2) => {
|
|
344930
344946
|
const extension_cache_key = {
|
|
344931
344947
|
extensionName
|
|
@@ -344940,20 +344956,20 @@ var createConfigExtension = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0
|
|
|
344940
344956
|
_extension_cache.set(extension_cache_key, extension);
|
|
344941
344957
|
return extension;
|
|
344942
344958
|
}, "createConfigExtension");
|
|
344943
|
-
var
|
|
344944
|
-
const config = await
|
|
344959
|
+
var loadStormWorkspaceConfig = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
|
|
344960
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
344945
344961
|
setConfigEnv(config);
|
|
344946
344962
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
344947
344963
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
344948
344964
|
${formatLogMessage(config)}`, config);
|
|
344949
344965
|
}
|
|
344950
344966
|
return config;
|
|
344951
|
-
}, "
|
|
344967
|
+
}, "loadStormWorkspaceConfig");
|
|
344952
344968
|
|
|
344953
344969
|
// ../config-tools/src/get-config.ts
|
|
344954
344970
|
_chunk2HPUSEOWcjs.init_cjs_shims.call(void 0, );
|
|
344955
344971
|
var getConfig = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, (workspaceRoot, skipLogs = false) => {
|
|
344956
|
-
return
|
|
344972
|
+
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
344957
344973
|
}, "getConfig");
|
|
344958
344974
|
|
|
344959
344975
|
// src/cli/index.ts
|
|
@@ -416250,7 +416266,9 @@ function createProgram(config) {
|
|
|
416250
416266
|
const root = findWorkspaceRootSafe();
|
|
416251
416267
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
416252
416268
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
416253
|
-
|
|
416269
|
+
if (root) {
|
|
416270
|
+
process.chdir(root);
|
|
416271
|
+
}
|
|
416254
416272
|
const program2 = new Command("storm-lint");
|
|
416255
416273
|
program2.version("1.0.0", "-v --version", "display CLI version");
|
|
416256
416274
|
program2.description("\u26A1 Lint the Storm Workspace").showHelpAfterError().showSuggestionAfterError();
|
package/bin/lint.js
CHANGED
|
@@ -343746,7 +343746,11 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
343746
343746
|
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
343747
343747
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
343748
343748
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
343749
|
-
var
|
|
343749
|
+
var errorConfigSchema = z.object({
|
|
343750
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
|
|
343751
|
+
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
343752
|
+
}).describe("The workspace's error config used during the error process");
|
|
343753
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
343750
343754
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
343751
343755
|
extends: ExtendsSchema.optional(),
|
|
343752
343756
|
name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
@@ -343764,6 +343768,7 @@ var StormConfigSchema = z.object({
|
|
|
343764
343768
|
bot: WorkspaceBotConfigSchema,
|
|
343765
343769
|
release: WorkspaceReleaseConfigSchema,
|
|
343766
343770
|
account: WorkspaceAccountConfigSchema,
|
|
343771
|
+
error: errorConfigSchema,
|
|
343767
343772
|
mode: z.enum([
|
|
343768
343773
|
"development",
|
|
343769
343774
|
"staging",
|
|
@@ -344107,7 +344112,10 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
|
|
|
344107
344112
|
license,
|
|
344108
344113
|
homepage,
|
|
344109
344114
|
docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
|
|
344110
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license
|
|
344115
|
+
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
344116
|
+
error: {
|
|
344117
|
+
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
344118
|
+
}
|
|
344111
344119
|
};
|
|
344112
344120
|
}, "getDefaultConfig");
|
|
344113
344121
|
|
|
@@ -344468,6 +344476,10 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
344468
344476
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
344469
344477
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
344470
344478
|
},
|
|
344479
|
+
error: {
|
|
344480
|
+
codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
|
|
344481
|
+
url: process.env[`${prefix}ERROR_URL`] || void 0
|
|
344482
|
+
},
|
|
344471
344483
|
account: {
|
|
344472
344484
|
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
344473
344485
|
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
@@ -344642,6 +344654,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
344642
344654
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
344643
344655
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
344644
344656
|
}
|
|
344657
|
+
if (config.error) {
|
|
344658
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
|
|
344659
|
+
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
344660
|
+
}
|
|
344645
344661
|
if (config.release) {
|
|
344646
344662
|
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
344647
344663
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
@@ -344772,7 +344788,7 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
344772
344788
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
|
|
344773
344789
|
}
|
|
344774
344790
|
if (config.registry.container) {
|
|
344775
|
-
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.
|
|
344791
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
|
|
344776
344792
|
}
|
|
344777
344793
|
}
|
|
344778
344794
|
if (config.logLevel) {
|
|
@@ -344892,7 +344908,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
|
344892
344908
|
// ../config-tools/src/create-storm-config.ts
|
|
344893
344909
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
344894
344910
|
var _static_cache = void 0;
|
|
344895
|
-
var
|
|
344911
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema2, workspaceRoot, skipLogs = false) => {
|
|
344896
344912
|
let result;
|
|
344897
344913
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
344898
344914
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -344907,7 +344923,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema2, wo
|
|
|
344907
344923
|
logLevel: "all"
|
|
344908
344924
|
});
|
|
344909
344925
|
}
|
|
344910
|
-
result = await
|
|
344926
|
+
result = await stormWorkspaceConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
|
|
344911
344927
|
result.workspaceRoot ??= _workspaceRoot;
|
|
344912
344928
|
} else {
|
|
344913
344929
|
result = _static_cache.data;
|
|
@@ -344923,7 +344939,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema2, wo
|
|
|
344923
344939
|
data: result
|
|
344924
344940
|
};
|
|
344925
344941
|
return result;
|
|
344926
|
-
}, "
|
|
344942
|
+
}, "createStormWorkspaceConfig");
|
|
344927
344943
|
var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema2) => {
|
|
344928
344944
|
const extension_cache_key = {
|
|
344929
344945
|
extensionName
|
|
@@ -344938,20 +344954,20 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema2) => {
|
|
|
344938
344954
|
_extension_cache.set(extension_cache_key, extension);
|
|
344939
344955
|
return extension;
|
|
344940
344956
|
}, "createConfigExtension");
|
|
344941
|
-
var
|
|
344942
|
-
const config = await
|
|
344957
|
+
var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
344958
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
344943
344959
|
setConfigEnv(config);
|
|
344944
344960
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
344945
344961
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
344946
344962
|
${formatLogMessage(config)}`, config);
|
|
344947
344963
|
}
|
|
344948
344964
|
return config;
|
|
344949
|
-
}, "
|
|
344965
|
+
}, "loadStormWorkspaceConfig");
|
|
344950
344966
|
|
|
344951
344967
|
// ../config-tools/src/get-config.ts
|
|
344952
344968
|
init_esm_shims();
|
|
344953
344969
|
var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
|
|
344954
|
-
return
|
|
344970
|
+
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
344955
344971
|
}, "getConfig");
|
|
344956
344972
|
|
|
344957
344973
|
// src/cli/index.ts
|
|
@@ -416238,7 +416254,9 @@ function createProgram(config) {
|
|
|
416238
416254
|
const root = findWorkspaceRootSafe();
|
|
416239
416255
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
416240
416256
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
416241
|
-
|
|
416257
|
+
if (root) {
|
|
416258
|
+
process.chdir(root);
|
|
416259
|
+
}
|
|
416242
416260
|
const program2 = new Command("storm-lint");
|
|
416243
416261
|
program2.version("1.0.0", "-v --version", "display CLI version");
|
|
416244
416262
|
program2.description("\u26A1 Lint the Storm Workspace").showHelpAfterError().showSuggestionAfterError();
|
package/dist/index.cjs
CHANGED
|
@@ -343750,7 +343750,11 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
343750
343750
|
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
343751
343751
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
343752
343752
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
343753
|
-
var
|
|
343753
|
+
var errorConfigSchema = z.object({
|
|
343754
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
|
|
343755
|
+
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
343756
|
+
}).describe("The workspace's error config used during the error process");
|
|
343757
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
343754
343758
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
343755
343759
|
extends: ExtendsSchema.optional(),
|
|
343756
343760
|
name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
@@ -343768,6 +343772,7 @@ var StormConfigSchema = z.object({
|
|
|
343768
343772
|
bot: WorkspaceBotConfigSchema,
|
|
343769
343773
|
release: WorkspaceReleaseConfigSchema,
|
|
343770
343774
|
account: WorkspaceAccountConfigSchema,
|
|
343775
|
+
error: errorConfigSchema,
|
|
343771
343776
|
mode: z.enum([
|
|
343772
343777
|
"development",
|
|
343773
343778
|
"staging",
|
|
@@ -344111,7 +344116,10 @@ var getDefaultConfig = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, asy
|
|
|
344111
344116
|
license,
|
|
344112
344117
|
homepage,
|
|
344113
344118
|
docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
|
|
344114
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license
|
|
344119
|
+
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
344120
|
+
error: {
|
|
344121
|
+
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
344122
|
+
}
|
|
344115
344123
|
};
|
|
344116
344124
|
}, "getDefaultConfig");
|
|
344117
344125
|
|
|
@@ -344437,6 +344445,10 @@ var getConfigEnv = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, () => {
|
|
|
344437
344445
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
344438
344446
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
344439
344447
|
},
|
|
344448
|
+
error: {
|
|
344449
|
+
codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
|
|
344450
|
+
url: process.env[`${prefix}ERROR_URL`] || void 0
|
|
344451
|
+
},
|
|
344440
344452
|
account: {
|
|
344441
344453
|
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
344442
344454
|
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
@@ -344611,6 +344623,10 @@ var setConfigEnv = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, (config
|
|
|
344611
344623
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
344612
344624
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
344613
344625
|
}
|
|
344626
|
+
if (config.error) {
|
|
344627
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
|
|
344628
|
+
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
344629
|
+
}
|
|
344614
344630
|
if (config.release) {
|
|
344615
344631
|
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
344616
344632
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
@@ -344741,7 +344757,7 @@ var setConfigEnv = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, (config
|
|
|
344741
344757
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
|
|
344742
344758
|
}
|
|
344743
344759
|
if (config.registry.container) {
|
|
344744
|
-
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.
|
|
344760
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
|
|
344745
344761
|
}
|
|
344746
344762
|
}
|
|
344747
344763
|
if (config.logLevel) {
|
|
@@ -344861,7 +344877,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(v
|
|
|
344861
344877
|
// ../config-tools/src/create-storm-config.ts
|
|
344862
344878
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
344863
344879
|
var _static_cache = void 0;
|
|
344864
|
-
var
|
|
344880
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, async (extensionName, schema2, workspaceRoot, skipLogs = false) => {
|
|
344865
344881
|
let result;
|
|
344866
344882
|
if (!_optionalChain([_static_cache, 'optionalAccess', _558 => _558.data]) || !_optionalChain([_static_cache, 'optionalAccess', _559 => _559.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
344867
344883
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -344876,7 +344892,7 @@ var createStormConfig = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, as
|
|
|
344876
344892
|
logLevel: "all"
|
|
344877
344893
|
});
|
|
344878
344894
|
}
|
|
344879
|
-
result = await
|
|
344895
|
+
result = await stormWorkspaceConfigSchema.parseAsync(_chunkEF2QNWS4cjs.defu.call(void 0, configEnv, configFile, defaultConfig));
|
|
344880
344896
|
result.workspaceRoot ??= _workspaceRoot;
|
|
344881
344897
|
} else {
|
|
344882
344898
|
result = _static_cache.data;
|
|
@@ -344892,7 +344908,7 @@ var createStormConfig = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, as
|
|
|
344892
344908
|
data: result
|
|
344893
344909
|
};
|
|
344894
344910
|
return result;
|
|
344895
|
-
}, "
|
|
344911
|
+
}, "createStormWorkspaceConfig");
|
|
344896
344912
|
var createConfigExtension = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, (extensionName, schema2) => {
|
|
344897
344913
|
const extension_cache_key = {
|
|
344898
344914
|
extensionName
|
|
@@ -344907,20 +344923,20 @@ var createConfigExtension = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0
|
|
|
344907
344923
|
_extension_cache.set(extension_cache_key, extension);
|
|
344908
344924
|
return extension;
|
|
344909
344925
|
}, "createConfigExtension");
|
|
344910
|
-
var
|
|
344911
|
-
const config = await
|
|
344926
|
+
var loadStormWorkspaceConfig = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
|
|
344927
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
344912
344928
|
setConfigEnv(config);
|
|
344913
344929
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
344914
344930
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
344915
344931
|
${formatLogMessage(config)}`, config);
|
|
344916
344932
|
}
|
|
344917
344933
|
return config;
|
|
344918
|
-
}, "
|
|
344934
|
+
}, "loadStormWorkspaceConfig");
|
|
344919
344935
|
|
|
344920
344936
|
// ../config-tools/src/get-config.ts
|
|
344921
344937
|
_chunk2HPUSEOWcjs.init_cjs_shims.call(void 0, );
|
|
344922
344938
|
var getConfig = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, (workspaceRoot, skipLogs = false) => {
|
|
344923
|
-
return
|
|
344939
|
+
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
344924
344940
|
}, "getConfig");
|
|
344925
344941
|
|
|
344926
344942
|
// ../../node_modules/.pnpm/check-dependency-version-consistency@4.1.0/node_modules/check-dependency-version-consistency/dist/lib/index.js
|
|
@@ -416214,7 +416230,9 @@ function createProgram(config) {
|
|
|
416214
416230
|
const root = findWorkspaceRootSafe();
|
|
416215
416231
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
416216
416232
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
416217
|
-
|
|
416233
|
+
if (root) {
|
|
416234
|
+
process.chdir(root);
|
|
416235
|
+
}
|
|
416218
416236
|
const program2 = new Command("storm-lint");
|
|
416219
416237
|
program2.version("1.0.0", "-v --version", "display CLI version");
|
|
416220
416238
|
program2.description("\u26A1 Lint the Storm Workspace").showHelpAfterError().showSuggestionAfterError();
|
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import { Command } from 'commander';
|
|
|
4
4
|
/**
|
|
5
5
|
* Storm Workspace config values used during various dev-ops processes. It represents the config of the entire monorepo.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
8
8
|
$schema: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodString>>>>;
|
|
9
9
|
extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
10
10
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -64,6 +64,16 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
64
64
|
slack?: string | undefined;
|
|
65
65
|
medium?: string | undefined;
|
|
66
66
|
}>;
|
|
67
|
+
error: z.ZodObject<{
|
|
68
|
+
codesFile: z.ZodDefault<z.ZodString>;
|
|
69
|
+
url: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
codesFile: string;
|
|
72
|
+
url?: string | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
codesFile?: string | undefined;
|
|
75
|
+
url?: string | undefined;
|
|
76
|
+
}>;
|
|
67
77
|
mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
68
78
|
workspaceRoot: z.ZodDefault<z.ZodString>;
|
|
69
79
|
externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -857,6 +867,10 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
857
867
|
slack: string;
|
|
858
868
|
medium: string;
|
|
859
869
|
};
|
|
870
|
+
error: {
|
|
871
|
+
codesFile: string;
|
|
872
|
+
url?: string | undefined;
|
|
873
|
+
};
|
|
860
874
|
mode: "development" | "staging" | "production";
|
|
861
875
|
workspaceRoot: string;
|
|
862
876
|
externalPackagePatterns: string[];
|
|
@@ -872,7 +886,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
872
886
|
packageManager: "npm" | "yarn" | "pnpm" | "bun";
|
|
873
887
|
timezone: string;
|
|
874
888
|
locale: string;
|
|
875
|
-
logLevel: "success" | "info" | "fatal" | "
|
|
889
|
+
logLevel: "success" | "info" | "fatal" | "error" | "silent" | "warn" | "debug" | "trace" | "all";
|
|
876
890
|
registry: {
|
|
877
891
|
github?: string | undefined;
|
|
878
892
|
npm?: string | undefined;
|
|
@@ -1054,6 +1068,10 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1054
1068
|
slack?: string | undefined;
|
|
1055
1069
|
medium?: string | undefined;
|
|
1056
1070
|
};
|
|
1071
|
+
error: {
|
|
1072
|
+
codesFile?: string | undefined;
|
|
1073
|
+
url?: string | undefined;
|
|
1074
|
+
};
|
|
1057
1075
|
directories: {
|
|
1058
1076
|
cache?: string | undefined;
|
|
1059
1077
|
data?: string | undefined;
|
|
@@ -1230,7 +1248,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1230
1248
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
1231
1249
|
timezone?: string | undefined;
|
|
1232
1250
|
locale?: string | undefined;
|
|
1233
|
-
logLevel?: "success" | "info" | "fatal" | "
|
|
1251
|
+
logLevel?: "success" | "info" | "fatal" | "error" | "silent" | "warn" | "debug" | "trace" | "all" | undefined;
|
|
1234
1252
|
skipConfigLogging?: boolean | undefined;
|
|
1235
1253
|
registry?: {
|
|
1236
1254
|
github?: string | undefined;
|
|
@@ -1243,13 +1261,29 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1243
1261
|
extensions?: Record<string, any> | undefined;
|
|
1244
1262
|
}>;
|
|
1245
1263
|
|
|
1246
|
-
type
|
|
1247
|
-
|
|
1248
|
-
|
|
1264
|
+
type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
|
|
1265
|
+
/**
|
|
1266
|
+
* The Storm workspace's configuration object
|
|
1267
|
+
*
|
|
1268
|
+
* @remarks
|
|
1269
|
+
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
1270
|
+
*
|
|
1271
|
+
* @deprecated
|
|
1272
|
+
* This type is deprecated and will be removed in the next major version. Use `StormWorkspaceConfig` instead.
|
|
1273
|
+
*/
|
|
1274
|
+
type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
|
|
1275
|
+
extensions: (TStormWorkspaceConfig["extensions"] & {
|
|
1249
1276
|
[extensionName in TExtensionName]: TExtensionConfig;
|
|
1250
1277
|
}) | NonNullable<Record<string, any>>;
|
|
1251
1278
|
};
|
|
1279
|
+
/**
|
|
1280
|
+
* The Storm workspace's configuration object
|
|
1281
|
+
*
|
|
1282
|
+
* @remarks
|
|
1283
|
+
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
1284
|
+
*/
|
|
1285
|
+
type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
|
|
1252
1286
|
|
|
1253
|
-
declare function createProgram(config:
|
|
1287
|
+
declare function createProgram(config: StormWorkspaceConfig): Command;
|
|
1254
1288
|
|
|
1255
1289
|
export { createProgram };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Command } from 'commander';
|
|
|
4
4
|
/**
|
|
5
5
|
* Storm Workspace config values used during various dev-ops processes. It represents the config of the entire monorepo.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
8
8
|
$schema: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodString>>>>;
|
|
9
9
|
extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
10
10
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -64,6 +64,16 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
64
64
|
slack?: string | undefined;
|
|
65
65
|
medium?: string | undefined;
|
|
66
66
|
}>;
|
|
67
|
+
error: z.ZodObject<{
|
|
68
|
+
codesFile: z.ZodDefault<z.ZodString>;
|
|
69
|
+
url: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
codesFile: string;
|
|
72
|
+
url?: string | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
codesFile?: string | undefined;
|
|
75
|
+
url?: string | undefined;
|
|
76
|
+
}>;
|
|
67
77
|
mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
68
78
|
workspaceRoot: z.ZodDefault<z.ZodString>;
|
|
69
79
|
externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -857,6 +867,10 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
857
867
|
slack: string;
|
|
858
868
|
medium: string;
|
|
859
869
|
};
|
|
870
|
+
error: {
|
|
871
|
+
codesFile: string;
|
|
872
|
+
url?: string | undefined;
|
|
873
|
+
};
|
|
860
874
|
mode: "development" | "staging" | "production";
|
|
861
875
|
workspaceRoot: string;
|
|
862
876
|
externalPackagePatterns: string[];
|
|
@@ -872,7 +886,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
872
886
|
packageManager: "npm" | "yarn" | "pnpm" | "bun";
|
|
873
887
|
timezone: string;
|
|
874
888
|
locale: string;
|
|
875
|
-
logLevel: "success" | "info" | "fatal" | "
|
|
889
|
+
logLevel: "success" | "info" | "fatal" | "error" | "silent" | "warn" | "debug" | "trace" | "all";
|
|
876
890
|
registry: {
|
|
877
891
|
github?: string | undefined;
|
|
878
892
|
npm?: string | undefined;
|
|
@@ -1054,6 +1068,10 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1054
1068
|
slack?: string | undefined;
|
|
1055
1069
|
medium?: string | undefined;
|
|
1056
1070
|
};
|
|
1071
|
+
error: {
|
|
1072
|
+
codesFile?: string | undefined;
|
|
1073
|
+
url?: string | undefined;
|
|
1074
|
+
};
|
|
1057
1075
|
directories: {
|
|
1058
1076
|
cache?: string | undefined;
|
|
1059
1077
|
data?: string | undefined;
|
|
@@ -1230,7 +1248,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1230
1248
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
1231
1249
|
timezone?: string | undefined;
|
|
1232
1250
|
locale?: string | undefined;
|
|
1233
|
-
logLevel?: "success" | "info" | "fatal" | "
|
|
1251
|
+
logLevel?: "success" | "info" | "fatal" | "error" | "silent" | "warn" | "debug" | "trace" | "all" | undefined;
|
|
1234
1252
|
skipConfigLogging?: boolean | undefined;
|
|
1235
1253
|
registry?: {
|
|
1236
1254
|
github?: string | undefined;
|
|
@@ -1243,13 +1261,29 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1243
1261
|
extensions?: Record<string, any> | undefined;
|
|
1244
1262
|
}>;
|
|
1245
1263
|
|
|
1246
|
-
type
|
|
1247
|
-
|
|
1248
|
-
|
|
1264
|
+
type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
|
|
1265
|
+
/**
|
|
1266
|
+
* The Storm workspace's configuration object
|
|
1267
|
+
*
|
|
1268
|
+
* @remarks
|
|
1269
|
+
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
1270
|
+
*
|
|
1271
|
+
* @deprecated
|
|
1272
|
+
* This type is deprecated and will be removed in the next major version. Use `StormWorkspaceConfig` instead.
|
|
1273
|
+
*/
|
|
1274
|
+
type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
|
|
1275
|
+
extensions: (TStormWorkspaceConfig["extensions"] & {
|
|
1249
1276
|
[extensionName in TExtensionName]: TExtensionConfig;
|
|
1250
1277
|
}) | NonNullable<Record<string, any>>;
|
|
1251
1278
|
};
|
|
1279
|
+
/**
|
|
1280
|
+
* The Storm workspace's configuration object
|
|
1281
|
+
*
|
|
1282
|
+
* @remarks
|
|
1283
|
+
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
1284
|
+
*/
|
|
1285
|
+
type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
|
|
1252
1286
|
|
|
1253
|
-
declare function createProgram(config:
|
|
1287
|
+
declare function createProgram(config: StormWorkspaceConfig): Command;
|
|
1254
1288
|
|
|
1255
1289
|
export { createProgram };
|
package/dist/index.js
CHANGED
|
@@ -343748,7 +343748,11 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
343748
343748
|
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
343749
343749
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
343750
343750
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
343751
|
-
var
|
|
343751
|
+
var errorConfigSchema = z.object({
|
|
343752
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
|
|
343753
|
+
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
343754
|
+
}).describe("The workspace's error config used during the error process");
|
|
343755
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
343752
343756
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
343753
343757
|
extends: ExtendsSchema.optional(),
|
|
343754
343758
|
name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
@@ -343766,6 +343770,7 @@ var StormConfigSchema = z.object({
|
|
|
343766
343770
|
bot: WorkspaceBotConfigSchema,
|
|
343767
343771
|
release: WorkspaceReleaseConfigSchema,
|
|
343768
343772
|
account: WorkspaceAccountConfigSchema,
|
|
343773
|
+
error: errorConfigSchema,
|
|
343769
343774
|
mode: z.enum([
|
|
343770
343775
|
"development",
|
|
343771
343776
|
"staging",
|
|
@@ -344109,7 +344114,10 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
|
|
|
344109
344114
|
license,
|
|
344110
344115
|
homepage,
|
|
344111
344116
|
docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
|
|
344112
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license
|
|
344117
|
+
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
344118
|
+
error: {
|
|
344119
|
+
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
344120
|
+
}
|
|
344113
344121
|
};
|
|
344114
344122
|
}, "getDefaultConfig");
|
|
344115
344123
|
|
|
@@ -344435,6 +344443,10 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
344435
344443
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
344436
344444
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
344437
344445
|
},
|
|
344446
|
+
error: {
|
|
344447
|
+
codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
|
|
344448
|
+
url: process.env[`${prefix}ERROR_URL`] || void 0
|
|
344449
|
+
},
|
|
344438
344450
|
account: {
|
|
344439
344451
|
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
344440
344452
|
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
@@ -344609,6 +344621,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
344609
344621
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
344610
344622
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
344611
344623
|
}
|
|
344624
|
+
if (config.error) {
|
|
344625
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
|
|
344626
|
+
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
344627
|
+
}
|
|
344612
344628
|
if (config.release) {
|
|
344613
344629
|
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
344614
344630
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
@@ -344739,7 +344755,7 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
344739
344755
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
|
|
344740
344756
|
}
|
|
344741
344757
|
if (config.registry.container) {
|
|
344742
|
-
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.
|
|
344758
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
|
|
344743
344759
|
}
|
|
344744
344760
|
}
|
|
344745
344761
|
if (config.logLevel) {
|
|
@@ -344859,7 +344875,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
|
344859
344875
|
// ../config-tools/src/create-storm-config.ts
|
|
344860
344876
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
344861
344877
|
var _static_cache = void 0;
|
|
344862
|
-
var
|
|
344878
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema2, workspaceRoot, skipLogs = false) => {
|
|
344863
344879
|
let result;
|
|
344864
344880
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
344865
344881
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -344874,7 +344890,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema2, wo
|
|
|
344874
344890
|
logLevel: "all"
|
|
344875
344891
|
});
|
|
344876
344892
|
}
|
|
344877
|
-
result = await
|
|
344893
|
+
result = await stormWorkspaceConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
|
|
344878
344894
|
result.workspaceRoot ??= _workspaceRoot;
|
|
344879
344895
|
} else {
|
|
344880
344896
|
result = _static_cache.data;
|
|
@@ -344890,7 +344906,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema2, wo
|
|
|
344890
344906
|
data: result
|
|
344891
344907
|
};
|
|
344892
344908
|
return result;
|
|
344893
|
-
}, "
|
|
344909
|
+
}, "createStormWorkspaceConfig");
|
|
344894
344910
|
var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema2) => {
|
|
344895
344911
|
const extension_cache_key = {
|
|
344896
344912
|
extensionName
|
|
@@ -344905,20 +344921,20 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema2) => {
|
|
|
344905
344921
|
_extension_cache.set(extension_cache_key, extension);
|
|
344906
344922
|
return extension;
|
|
344907
344923
|
}, "createConfigExtension");
|
|
344908
|
-
var
|
|
344909
|
-
const config = await
|
|
344924
|
+
var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
344925
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
344910
344926
|
setConfigEnv(config);
|
|
344911
344927
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
344912
344928
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
344913
344929
|
${formatLogMessage(config)}`, config);
|
|
344914
344930
|
}
|
|
344915
344931
|
return config;
|
|
344916
|
-
}, "
|
|
344932
|
+
}, "loadStormWorkspaceConfig");
|
|
344917
344933
|
|
|
344918
344934
|
// ../config-tools/src/get-config.ts
|
|
344919
344935
|
init_esm_shims();
|
|
344920
344936
|
var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
|
|
344921
|
-
return
|
|
344937
|
+
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
344922
344938
|
}, "getConfig");
|
|
344923
344939
|
|
|
344924
344940
|
// ../../node_modules/.pnpm/check-dependency-version-consistency@4.1.0/node_modules/check-dependency-version-consistency/dist/lib/index.js
|
|
@@ -416202,7 +416218,9 @@ function createProgram(config) {
|
|
|
416202
416218
|
const root = findWorkspaceRootSafe();
|
|
416203
416219
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
416204
416220
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
416205
|
-
|
|
416221
|
+
if (root) {
|
|
416222
|
+
process.chdir(root);
|
|
416223
|
+
}
|
|
416206
416224
|
const program2 = new Command("storm-lint");
|
|
416207
416225
|
program2.version("1.0.0", "-v --version", "display CLI version");
|
|
416208
416226
|
program2.description("\u26A1 Lint the Storm Workspace").showHelpAfterError().showSuggestionAfterError();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.119.
|
|
3
|
+
"version": "1.119.20",
|
|
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": {
|