@storm-software/workspace-tools 1.202.1 → 1.204.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 +15 -0
- package/declarations.d.ts +18 -2
- package/index.js +115 -101
- package/meta.json +221 -176
- package/package.json +1 -1
- package/src/base/base-executor.js +10 -12
- package/src/base/base-generator.js +10 -12
- package/src/base/index.js +79 -19
- package/src/base/typescript-library-generator.d.ts +2 -1
- package/src/base/typescript-library-generator.js +69 -7
- package/src/executors/cargo-build/executor.js +10 -12
- package/src/executors/cargo-check/executor.js +10 -12
- package/src/executors/cargo-clippy/executor.js +10 -12
- package/src/executors/cargo-doc/executor.js +10 -12
- package/src/executors/cargo-format/executor.js +10 -12
- package/src/executors/clean-package/executor.js +10 -12
- package/src/executors/rolldown/executor.js +10 -12
- package/src/executors/rollup/executor.js +10 -12
- package/src/executors/size-limit/executor.js +10 -12
- package/src/executors/tsup/executor.js +10 -12
- package/src/executors/tsup-browser/executor.js +10 -12
- package/src/executors/tsup-neutral/executor.js +10 -12
- package/src/executors/tsup-node/executor.js +10 -12
- package/src/executors/typia/executor.js +10 -12
- package/src/executors/unbuild/executor.js +10 -12
- package/src/executors/unbuild/schema.json +7 -1
- package/src/generators/browser-library/generator.d.ts +2 -1
- package/src/generators/browser-library/generator.js +81 -21
- package/src/generators/config-schema/generator.js +10 -12
- package/src/generators/neutral-library/generator.d.ts +2 -1
- package/src/generators/neutral-library/generator.js +81 -21
- package/src/generators/node-library/generator.d.ts +2 -1
- package/src/generators/node-library/generator.js +81 -21
- package/src/generators/preset/generator.js +10 -12
- package/src/generators/release-version/generator.js +10 -12
- package/src/plugins/rust/index.js +13 -0
- package/src/plugins/typescript/index.js +13 -0
- package/src/utils/index.js +23 -12
- package/src/utils/project-tags.d.ts +8 -1
- package/src/utils/project-tags.js +13 -0
|
@@ -66405,7 +66405,7 @@ var init_schema = __esm({
|
|
|
66405
66405
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66406
66406
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66407
66407
|
),
|
|
66408
|
-
|
|
66408
|
+
envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
66409
66409
|
workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
|
|
66410
66410
|
packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
|
|
66411
66411
|
externalPackagePatterns: z3.array(z3.string()).default([]).describe(
|
|
@@ -66527,19 +66527,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66527
|
}
|
|
66528
66528
|
};
|
|
66529
66529
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66530
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66531
|
+
license: "Apache-2.0",
|
|
66533
66532
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66533
|
+
owner: "@storm-software/admin",
|
|
66535
66534
|
worker: "stormie-bot",
|
|
66536
66535
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66536
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66537
|
+
packageManager: "pnpm",
|
|
66540
66538
|
timezone: "America/New_York",
|
|
66541
66539
|
locale: "en-US",
|
|
66542
|
-
|
|
66540
|
+
envName: "production",
|
|
66543
66541
|
branch: "main",
|
|
66544
66542
|
organization: "storm-software",
|
|
66545
66543
|
configFile: null,
|
|
@@ -67039,7 +67037,7 @@ var init_get_env = __esm({
|
|
|
67039
67037
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67038
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67039
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67040
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67041
|
// ci:
|
|
67044
67042
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67043
|
// ? Boolean(
|
|
@@ -67268,10 +67266,10 @@ var init_set_env = __esm({
|
|
|
67268
67266
|
config.outputDirectory
|
|
67269
67267
|
);
|
|
67270
67268
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67269
|
+
if (config.envName) {
|
|
67270
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67271
|
+
process.env.NODE_ENV = config.envName;
|
|
67272
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67273
|
}
|
|
67276
67274
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67275
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -68726,7 +68726,7 @@ var init_schema = __esm({
|
|
|
68726
68726
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
68727
68727
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
68728
68728
|
),
|
|
68729
|
-
|
|
68729
|
+
envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
68730
68730
|
workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
|
|
68731
68731
|
packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
|
|
68732
68732
|
externalPackagePatterns: z3.array(z3.string()).default([]).describe(
|
|
@@ -68848,19 +68848,17 @@ var init_get_default_config = __esm({
|
|
|
68848
68848
|
}
|
|
68849
68849
|
};
|
|
68850
68850
|
DEFAULT_STORM_CONFIG = {
|
|
68851
|
-
name: "storm",
|
|
68852
68851
|
namespace: "storm-software",
|
|
68853
|
-
license: "Apache
|
|
68852
|
+
license: "Apache-2.0",
|
|
68854
68853
|
homepage: "https://stormsoftware.com",
|
|
68855
|
-
owner: "@storm-software/
|
|
68854
|
+
owner: "@storm-software/admin",
|
|
68856
68855
|
worker: "stormie-bot",
|
|
68857
68856
|
runtimeDirectory: "node_modules/.storm",
|
|
68858
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
68859
68857
|
skipCache: false,
|
|
68860
|
-
packageManager: "
|
|
68858
|
+
packageManager: "pnpm",
|
|
68861
68859
|
timezone: "America/New_York",
|
|
68862
68860
|
locale: "en-US",
|
|
68863
|
-
|
|
68861
|
+
envName: "production",
|
|
68864
68862
|
branch: "main",
|
|
68865
68863
|
organization: "storm-software",
|
|
68866
68864
|
configFile: null,
|
|
@@ -69360,7 +69358,7 @@ var init_get_env = __esm({
|
|
|
69360
69358
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
69361
69359
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
69362
69360
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
69363
|
-
|
|
69361
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
69364
69362
|
// ci:
|
|
69365
69363
|
// process.env[`${prefix}CI`] !== undefined
|
|
69366
69364
|
// ? Boolean(
|
|
@@ -69589,10 +69587,10 @@ var init_set_env = __esm({
|
|
|
69589
69587
|
config.outputDirectory
|
|
69590
69588
|
);
|
|
69591
69589
|
}
|
|
69592
|
-
if (config.
|
|
69593
|
-
process.env[`${prefix}
|
|
69594
|
-
process.env.NODE_ENV = config.
|
|
69595
|
-
process.env.ENVIRONMENT = config.
|
|
69590
|
+
if (config.envName) {
|
|
69591
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
69592
|
+
process.env.NODE_ENV = config.envName;
|
|
69593
|
+
process.env.ENVIRONMENT = config.envName;
|
|
69596
69594
|
}
|
|
69597
69595
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
69598
69596
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -66405,7 +66405,7 @@ var init_schema = __esm({
|
|
|
66405
66405
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66406
66406
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66407
66407
|
),
|
|
66408
|
-
|
|
66408
|
+
envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
66409
66409
|
workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
|
|
66410
66410
|
packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
|
|
66411
66411
|
externalPackagePatterns: z3.array(z3.string()).default([]).describe(
|
|
@@ -66527,19 +66527,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66527
|
}
|
|
66528
66528
|
};
|
|
66529
66529
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66530
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66531
|
+
license: "Apache-2.0",
|
|
66533
66532
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66533
|
+
owner: "@storm-software/admin",
|
|
66535
66534
|
worker: "stormie-bot",
|
|
66536
66535
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66536
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66537
|
+
packageManager: "pnpm",
|
|
66540
66538
|
timezone: "America/New_York",
|
|
66541
66539
|
locale: "en-US",
|
|
66542
|
-
|
|
66540
|
+
envName: "production",
|
|
66543
66541
|
branch: "main",
|
|
66544
66542
|
organization: "storm-software",
|
|
66545
66543
|
configFile: null,
|
|
@@ -67039,7 +67037,7 @@ var init_get_env = __esm({
|
|
|
67039
67037
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67038
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67039
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67040
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67041
|
// ci:
|
|
67044
67042
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67043
|
// ? Boolean(
|
|
@@ -67268,10 +67266,10 @@ var init_set_env = __esm({
|
|
|
67268
67266
|
config.outputDirectory
|
|
67269
67267
|
);
|
|
67270
67268
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67269
|
+
if (config.envName) {
|
|
67270
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67271
|
+
process.env.NODE_ENV = config.envName;
|
|
67272
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67273
|
}
|
|
67276
67274
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67275
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -93319,7 +93319,7 @@ var init_schema = __esm({
|
|
|
93319
93319
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
93320
93320
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
93321
93321
|
),
|
|
93322
|
-
|
|
93322
|
+
envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
93323
93323
|
workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
|
|
93324
93324
|
packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
|
|
93325
93325
|
externalPackagePatterns: z3.array(z3.string()).default([]).describe(
|
|
@@ -93441,19 +93441,17 @@ var init_get_default_config = __esm({
|
|
|
93441
93441
|
}
|
|
93442
93442
|
};
|
|
93443
93443
|
DEFAULT_STORM_CONFIG = {
|
|
93444
|
-
name: "storm",
|
|
93445
93444
|
namespace: "storm-software",
|
|
93446
|
-
license: "Apache
|
|
93445
|
+
license: "Apache-2.0",
|
|
93447
93446
|
homepage: "https://stormsoftware.com",
|
|
93448
|
-
owner: "@storm-software/
|
|
93447
|
+
owner: "@storm-software/admin",
|
|
93449
93448
|
worker: "stormie-bot",
|
|
93450
93449
|
runtimeDirectory: "node_modules/.storm",
|
|
93451
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
93452
93450
|
skipCache: false,
|
|
93453
|
-
packageManager: "
|
|
93451
|
+
packageManager: "pnpm",
|
|
93454
93452
|
timezone: "America/New_York",
|
|
93455
93453
|
locale: "en-US",
|
|
93456
|
-
|
|
93454
|
+
envName: "production",
|
|
93457
93455
|
branch: "main",
|
|
93458
93456
|
organization: "storm-software",
|
|
93459
93457
|
configFile: null,
|
|
@@ -93953,7 +93951,7 @@ var init_get_env = __esm({
|
|
|
93953
93951
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
93954
93952
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
93955
93953
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
93956
|
-
|
|
93954
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
93957
93955
|
// ci:
|
|
93958
93956
|
// process.env[`${prefix}CI`] !== undefined
|
|
93959
93957
|
// ? Boolean(
|
|
@@ -94182,10 +94180,10 @@ var init_set_env = __esm({
|
|
|
94182
94180
|
config.outputDirectory
|
|
94183
94181
|
);
|
|
94184
94182
|
}
|
|
94185
|
-
if (config.
|
|
94186
|
-
process.env[`${prefix}
|
|
94187
|
-
process.env.NODE_ENV = config.
|
|
94188
|
-
process.env.ENVIRONMENT = config.
|
|
94183
|
+
if (config.envName) {
|
|
94184
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
94185
|
+
process.env.NODE_ENV = config.envName;
|
|
94186
|
+
process.env.ENVIRONMENT = config.envName;
|
|
94189
94187
|
}
|
|
94190
94188
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
94191
94189
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -66893,7 +66893,7 @@ var init_schema = __esm({
|
|
|
66893
66893
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66894
66894
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66895
66895
|
),
|
|
66896
|
-
|
|
66896
|
+
envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
66897
66897
|
workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
|
|
66898
66898
|
packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
|
|
66899
66899
|
externalPackagePatterns: z3.array(z3.string()).default([]).describe(
|
|
@@ -67015,19 +67015,17 @@ var init_get_default_config = __esm({
|
|
|
67015
67015
|
}
|
|
67016
67016
|
};
|
|
67017
67017
|
DEFAULT_STORM_CONFIG = {
|
|
67018
|
-
name: "storm",
|
|
67019
67018
|
namespace: "storm-software",
|
|
67020
|
-
license: "Apache
|
|
67019
|
+
license: "Apache-2.0",
|
|
67021
67020
|
homepage: "https://stormsoftware.com",
|
|
67022
|
-
owner: "@storm-software/
|
|
67021
|
+
owner: "@storm-software/admin",
|
|
67023
67022
|
worker: "stormie-bot",
|
|
67024
67023
|
runtimeDirectory: "node_modules/.storm",
|
|
67025
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
67026
67024
|
skipCache: false,
|
|
67027
|
-
packageManager: "
|
|
67025
|
+
packageManager: "pnpm",
|
|
67028
67026
|
timezone: "America/New_York",
|
|
67029
67027
|
locale: "en-US",
|
|
67030
|
-
|
|
67028
|
+
envName: "production",
|
|
67031
67029
|
branch: "main",
|
|
67032
67030
|
organization: "storm-software",
|
|
67033
67031
|
configFile: null,
|
|
@@ -67527,7 +67525,7 @@ var init_get_env = __esm({
|
|
|
67527
67525
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67528
67526
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67529
67527
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67530
|
-
|
|
67528
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67531
67529
|
// ci:
|
|
67532
67530
|
// process.env[`${prefix}CI`] !== undefined
|
|
67533
67531
|
// ? Boolean(
|
|
@@ -67756,10 +67754,10 @@ var init_set_env = __esm({
|
|
|
67756
67754
|
config.outputDirectory
|
|
67757
67755
|
);
|
|
67758
67756
|
}
|
|
67759
|
-
if (config.
|
|
67760
|
-
process.env[`${prefix}
|
|
67761
|
-
process.env.NODE_ENV = config.
|
|
67762
|
-
process.env.ENVIRONMENT = config.
|
|
67757
|
+
if (config.envName) {
|
|
67758
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67759
|
+
process.env.NODE_ENV = config.envName;
|
|
67760
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67763
67761
|
}
|
|
67764
67762
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67765
67763
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -66405,7 +66405,7 @@ var init_schema = __esm({
|
|
|
66405
66405
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66406
66406
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66407
66407
|
),
|
|
66408
|
-
|
|
66408
|
+
envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
66409
66409
|
workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
|
|
66410
66410
|
packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
|
|
66411
66411
|
externalPackagePatterns: z3.array(z3.string()).default([]).describe(
|
|
@@ -66527,19 +66527,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66527
|
}
|
|
66528
66528
|
};
|
|
66529
66529
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66530
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66531
|
+
license: "Apache-2.0",
|
|
66533
66532
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66533
|
+
owner: "@storm-software/admin",
|
|
66535
66534
|
worker: "stormie-bot",
|
|
66536
66535
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66536
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66537
|
+
packageManager: "pnpm",
|
|
66540
66538
|
timezone: "America/New_York",
|
|
66541
66539
|
locale: "en-US",
|
|
66542
|
-
|
|
66540
|
+
envName: "production",
|
|
66543
66541
|
branch: "main",
|
|
66544
66542
|
organization: "storm-software",
|
|
66545
66543
|
configFile: null,
|
|
@@ -67039,7 +67037,7 @@ var init_get_env = __esm({
|
|
|
67039
67037
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67038
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67039
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67040
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67041
|
// ci:
|
|
67044
67042
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67043
|
// ? Boolean(
|
|
@@ -67268,10 +67266,10 @@ var init_set_env = __esm({
|
|
|
67268
67266
|
config.outputDirectory
|
|
67269
67267
|
);
|
|
67270
67268
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67269
|
+
if (config.envName) {
|
|
67270
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67271
|
+
process.env.NODE_ENV = config.envName;
|
|
67272
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67273
|
}
|
|
67276
67274
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67275
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -66405,7 +66405,7 @@ var init_schema = __esm({
|
|
|
66405
66405
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66406
66406
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66407
66407
|
),
|
|
66408
|
-
|
|
66408
|
+
envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
66409
66409
|
workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
|
|
66410
66410
|
packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
|
|
66411
66411
|
externalPackagePatterns: z3.array(z3.string()).default([]).describe(
|
|
@@ -66527,19 +66527,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66527
|
}
|
|
66528
66528
|
};
|
|
66529
66529
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66530
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66531
|
+
license: "Apache-2.0",
|
|
66533
66532
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66533
|
+
owner: "@storm-software/admin",
|
|
66535
66534
|
worker: "stormie-bot",
|
|
66536
66535
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66536
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66537
|
+
packageManager: "pnpm",
|
|
66540
66538
|
timezone: "America/New_York",
|
|
66541
66539
|
locale: "en-US",
|
|
66542
|
-
|
|
66540
|
+
envName: "production",
|
|
66543
66541
|
branch: "main",
|
|
66544
66542
|
organization: "storm-software",
|
|
66545
66543
|
configFile: null,
|
|
@@ -67039,7 +67037,7 @@ var init_get_env = __esm({
|
|
|
67039
67037
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67038
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67039
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67040
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67041
|
// ci:
|
|
67044
67042
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67043
|
// ? Boolean(
|
|
@@ -67268,10 +67266,10 @@ var init_set_env = __esm({
|
|
|
67268
67266
|
config.outputDirectory
|
|
67269
67267
|
);
|
|
67270
67268
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67269
|
+
if (config.envName) {
|
|
67270
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67271
|
+
process.env.NODE_ENV = config.envName;
|
|
67272
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67273
|
}
|
|
67276
67274
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67275
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -66405,7 +66405,7 @@ var init_schema = __esm({
|
|
|
66405
66405
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66406
66406
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66407
66407
|
),
|
|
66408
|
-
|
|
66408
|
+
envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
66409
66409
|
workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
|
|
66410
66410
|
packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
|
|
66411
66411
|
externalPackagePatterns: z3.array(z3.string()).default([]).describe(
|
|
@@ -66527,19 +66527,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66527
|
}
|
|
66528
66528
|
};
|
|
66529
66529
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66530
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66531
|
+
license: "Apache-2.0",
|
|
66533
66532
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66533
|
+
owner: "@storm-software/admin",
|
|
66535
66534
|
worker: "stormie-bot",
|
|
66536
66535
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66536
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66537
|
+
packageManager: "pnpm",
|
|
66540
66538
|
timezone: "America/New_York",
|
|
66541
66539
|
locale: "en-US",
|
|
66542
|
-
|
|
66540
|
+
envName: "production",
|
|
66543
66541
|
branch: "main",
|
|
66544
66542
|
organization: "storm-software",
|
|
66545
66543
|
configFile: null,
|
|
@@ -67039,7 +67037,7 @@ var init_get_env = __esm({
|
|
|
67039
67037
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67038
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67039
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67040
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67041
|
// ci:
|
|
67044
67042
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67043
|
// ? Boolean(
|
|
@@ -67268,10 +67266,10 @@ var init_set_env = __esm({
|
|
|
67268
67266
|
config.outputDirectory
|
|
67269
67267
|
);
|
|
67270
67268
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67269
|
+
if (config.envName) {
|
|
67270
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67271
|
+
process.env.NODE_ENV = config.envName;
|
|
67272
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67273
|
}
|
|
67276
67274
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67275
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -66405,7 +66405,7 @@ var init_schema = __esm({
|
|
|
66405
66405
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66406
66406
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66407
66407
|
),
|
|
66408
|
-
|
|
66408
|
+
envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
66409
66409
|
workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
|
|
66410
66410
|
packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
|
|
66411
66411
|
externalPackagePatterns: z3.array(z3.string()).default([]).describe(
|
|
@@ -66527,19 +66527,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66527
|
}
|
|
66528
66528
|
};
|
|
66529
66529
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66530
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66531
|
+
license: "Apache-2.0",
|
|
66533
66532
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66533
|
+
owner: "@storm-software/admin",
|
|
66535
66534
|
worker: "stormie-bot",
|
|
66536
66535
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66536
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66537
|
+
packageManager: "pnpm",
|
|
66540
66538
|
timezone: "America/New_York",
|
|
66541
66539
|
locale: "en-US",
|
|
66542
|
-
|
|
66540
|
+
envName: "production",
|
|
66543
66541
|
branch: "main",
|
|
66544
66542
|
organization: "storm-software",
|
|
66545
66543
|
configFile: null,
|
|
@@ -67039,7 +67037,7 @@ var init_get_env = __esm({
|
|
|
67039
67037
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67038
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67039
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67040
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67041
|
// ci:
|
|
67044
67042
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67043
|
// ? Boolean(
|
|
@@ -67268,10 +67266,10 @@ var init_set_env = __esm({
|
|
|
67268
67266
|
config.outputDirectory
|
|
67269
67267
|
);
|
|
67270
67268
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67269
|
+
if (config.envName) {
|
|
67270
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67271
|
+
process.env.NODE_ENV = config.envName;
|
|
67272
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67273
|
}
|
|
67276
67274
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67275
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -92175,7 +92175,7 @@ var init_schema = __esm({
|
|
|
92175
92175
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
92176
92176
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
92177
92177
|
),
|
|
92178
|
-
|
|
92178
|
+
envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
92179
92179
|
workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
|
|
92180
92180
|
packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
|
|
92181
92181
|
externalPackagePatterns: z3.array(z3.string()).default([]).describe(
|
|
@@ -92297,19 +92297,17 @@ var init_get_default_config = __esm({
|
|
|
92297
92297
|
}
|
|
92298
92298
|
};
|
|
92299
92299
|
DEFAULT_STORM_CONFIG = {
|
|
92300
|
-
name: "storm",
|
|
92301
92300
|
namespace: "storm-software",
|
|
92302
|
-
license: "Apache
|
|
92301
|
+
license: "Apache-2.0",
|
|
92303
92302
|
homepage: "https://stormsoftware.com",
|
|
92304
|
-
owner: "@storm-software/
|
|
92303
|
+
owner: "@storm-software/admin",
|
|
92305
92304
|
worker: "stormie-bot",
|
|
92306
92305
|
runtimeDirectory: "node_modules/.storm",
|
|
92307
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
92308
92306
|
skipCache: false,
|
|
92309
|
-
packageManager: "
|
|
92307
|
+
packageManager: "pnpm",
|
|
92310
92308
|
timezone: "America/New_York",
|
|
92311
92309
|
locale: "en-US",
|
|
92312
|
-
|
|
92310
|
+
envName: "production",
|
|
92313
92311
|
branch: "main",
|
|
92314
92312
|
organization: "storm-software",
|
|
92315
92313
|
configFile: null,
|
|
@@ -92809,7 +92807,7 @@ var init_get_env = __esm({
|
|
|
92809
92807
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
92810
92808
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
92811
92809
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
92812
|
-
|
|
92810
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
92813
92811
|
// ci:
|
|
92814
92812
|
// process.env[`${prefix}CI`] !== undefined
|
|
92815
92813
|
// ? Boolean(
|
|
@@ -93038,10 +93036,10 @@ var init_set_env = __esm({
|
|
|
93038
93036
|
config.outputDirectory
|
|
93039
93037
|
);
|
|
93040
93038
|
}
|
|
93041
|
-
if (config.
|
|
93042
|
-
process.env[`${prefix}
|
|
93043
|
-
process.env.NODE_ENV = config.
|
|
93044
|
-
process.env.ENVIRONMENT = config.
|
|
93039
|
+
if (config.envName) {
|
|
93040
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
93041
|
+
process.env.NODE_ENV = config.envName;
|
|
93042
|
+
process.env.ENVIRONMENT = config.envName;
|
|
93045
93043
|
}
|
|
93046
93044
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
93047
93045
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -66405,7 +66405,7 @@ var init_schema = __esm({
|
|
|
66405
66405
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66406
66406
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66407
66407
|
),
|
|
66408
|
-
|
|
66408
|
+
envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
66409
66409
|
workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
|
|
66410
66410
|
packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
|
|
66411
66411
|
externalPackagePatterns: z3.array(z3.string()).default([]).describe(
|
|
@@ -66527,19 +66527,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66527
|
}
|
|
66528
66528
|
};
|
|
66529
66529
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66530
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66531
|
+
license: "Apache-2.0",
|
|
66533
66532
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66533
|
+
owner: "@storm-software/admin",
|
|
66535
66534
|
worker: "stormie-bot",
|
|
66536
66535
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66536
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66537
|
+
packageManager: "pnpm",
|
|
66540
66538
|
timezone: "America/New_York",
|
|
66541
66539
|
locale: "en-US",
|
|
66542
|
-
|
|
66540
|
+
envName: "production",
|
|
66543
66541
|
branch: "main",
|
|
66544
66542
|
organization: "storm-software",
|
|
66545
66543
|
configFile: null,
|
|
@@ -67039,7 +67037,7 @@ var init_get_env = __esm({
|
|
|
67039
67037
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67038
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67039
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67040
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67041
|
// ci:
|
|
67044
67042
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67043
|
// ? Boolean(
|
|
@@ -67268,10 +67266,10 @@ var init_set_env = __esm({
|
|
|
67268
67266
|
config.outputDirectory
|
|
67269
67267
|
);
|
|
67270
67268
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67269
|
+
if (config.envName) {
|
|
67270
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67271
|
+
process.env.NODE_ENV = config.envName;
|
|
67272
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67273
|
}
|
|
67276
67274
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67275
|
for (const key of Object.keys(config.colors)) {
|