@storm-software/workspace-tools 1.203.0 → 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 +7 -0
- package/index.js +22 -18
- package/meta.json +178 -158
- 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 +14 -16
- package/src/base/typescript-library-generator.d.ts +2 -1
- package/src/base/typescript-library-generator.js +4 -4
- 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/generators/browser-library/generator.d.ts +2 -1
- package/src/generators/browser-library/generator.js +16 -18
- 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 +16 -18
- package/src/generators/node-library/generator.d.ts +2 -1
- package/src/generators/node-library/generator.js +16 -18
- package/src/generators/preset/generator.js +10 -12
- package/src/generators/release-version/generator.js +10 -12
- package/src/plugins/rust/index.js +6 -0
- package/src/plugins/typescript/index.js +6 -0
- package/src/utils/index.js +16 -12
- package/src/utils/project-tags.js +6 -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)) {
|
|
@@ -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)) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Tree } from "@nx/devkit";
|
|
2
|
+
import { StormConfig } from "@storm-software/config";
|
|
2
3
|
import type { BrowserLibraryGeneratorSchema } from "./schema";
|
|
3
|
-
export declare function browserLibraryGeneratorFn(tree: Tree, schema: BrowserLibraryGeneratorSchema): Promise<null>;
|
|
4
|
+
export declare function browserLibraryGeneratorFn(tree: Tree, schema: BrowserLibraryGeneratorSchema, config?: StormConfig): Promise<null>;
|
|
4
5
|
declare const _default: (tree: Tree, _options: BrowserLibraryGeneratorSchema) => Promise<import("@nx/devkit").GeneratorCallback | import("../../../declarations.d").BaseGeneratorResult>;
|
|
5
6
|
export default _default;
|
|
@@ -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)) {
|
|
@@ -67781,7 +67779,7 @@ var addProjectTag = (project, variant, value2, options = {
|
|
|
67781
67779
|
var nxVersion = "^18.0.4";
|
|
67782
67780
|
|
|
67783
67781
|
// packages/workspace-tools/src/base/typescript-library-generator.ts
|
|
67784
|
-
async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
67782
|
+
async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
67785
67783
|
const options = await normalizeOptions(tree, { ...schema });
|
|
67786
67784
|
const tasks = [];
|
|
67787
67785
|
tasks.push(
|
|
@@ -67852,15 +67850,15 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67852
67850
|
projectConfig,
|
|
67853
67851
|
ProjectTagConstants.Platform.TAG_ID,
|
|
67854
67852
|
projectConfig.targets.build.options.platform === "node" ? ProjectTagConstants.Platform.NODE : projectConfig.targets.build.options.platform === "worker" ? ProjectTagConstants.Platform.WORKER : projectConfig.targets.build.options.platform === "browser" ? ProjectTagConstants.Platform.BROWSER : ProjectTagConstants.Platform.NEUTRAL,
|
|
67855
|
-
{ overwrite:
|
|
67853
|
+
{ overwrite: false }
|
|
67856
67854
|
);
|
|
67857
67855
|
createProjectTsConfigJson(tree, options);
|
|
67858
67856
|
(0, import_devkit.addProjectConfiguration)(tree, options.name, projectConfig);
|
|
67859
67857
|
let repository = {
|
|
67860
67858
|
type: "github",
|
|
67861
|
-
url:
|
|
67859
|
+
url: config?.repository || `https://github.com/${config?.organization || "storm-software"}/${config?.namespace || config?.name || "repository"}.git`
|
|
67862
67860
|
};
|
|
67863
|
-
let description = schema.description
|
|
67861
|
+
let description = schema.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
67864
67862
|
if (tree.exists("package.json")) {
|
|
67865
67863
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
67866
67864
|
if (packageJson?.repository) {
|
|
@@ -68067,7 +68065,7 @@ async function normalizeOptions(tree, options) {
|
|
|
68067
68065
|
}
|
|
68068
68066
|
|
|
68069
68067
|
// packages/workspace-tools/src/generators/browser-library/generator.ts
|
|
68070
|
-
async function browserLibraryGeneratorFn(tree, schema) {
|
|
68068
|
+
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
68071
68069
|
const filesDir = (0, import_devkit2.joinPathFragments)(__dirname, "./files");
|
|
68072
68070
|
const tsLibraryGeneratorOptions = {
|
|
68073
68071
|
...schema,
|
|
@@ -68121,7 +68119,7 @@ async function browserLibraryGeneratorFn(tree, schema) {
|
|
|
68121
68119
|
}
|
|
68122
68120
|
}
|
|
68123
68121
|
});
|
|
68124
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions);
|
|
68122
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
|
|
68125
68123
|
await (0, import_devkit2.formatFiles)(tree);
|
|
68126
68124
|
return null;
|
|
68127
68125
|
}
|