@storm-software/linting-tools 1.119.19 → 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 +18 -2
- package/bin/lint.js +18 -2
- package/dist/index.cjs +18 -2
- package/dist/index.d.cts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +18 -2
- 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,6 +343748,10 @@ 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 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");
|
|
343751
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(),
|
|
@@ -343766,6 +343770,7 @@ var stormWorkspaceConfigSchema = 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) {
|
package/bin/lint.js
CHANGED
|
@@ -343746,6 +343746,10 @@ 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 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");
|
|
343749
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(),
|
|
@@ -343764,6 +343768,7 @@ var stormWorkspaceConfigSchema = 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) {
|
package/dist/index.cjs
CHANGED
|
@@ -343750,6 +343750,10 @@ 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 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");
|
|
343753
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(),
|
|
@@ -343768,6 +343772,7 @@ var stormWorkspaceConfigSchema = 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) {
|
package/dist/index.d.cts
CHANGED
|
@@ -64,6 +64,16 @@ declare const stormWorkspaceConfigSchema: 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 stormWorkspaceConfigSchema: 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 stormWorkspaceConfigSchema: 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 stormWorkspaceConfigSchema: 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 stormWorkspaceConfigSchema: 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;
|
package/dist/index.d.ts
CHANGED
|
@@ -64,6 +64,16 @@ declare const stormWorkspaceConfigSchema: 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 stormWorkspaceConfigSchema: 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 stormWorkspaceConfigSchema: 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 stormWorkspaceConfigSchema: 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 stormWorkspaceConfigSchema: 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;
|
package/dist/index.js
CHANGED
|
@@ -343748,6 +343748,10 @@ 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 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");
|
|
343751
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(),
|
|
@@ -343766,6 +343770,7 @@ var stormWorkspaceConfigSchema = 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) {
|
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": {
|