@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/workspace-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.204.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.",
|
|
6
6
|
"repository": {
|
|
@@ -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)) {
|
package/src/base/index.js
CHANGED
|
@@ -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)) {
|
|
@@ -67975,7 +67973,7 @@ var addProjectTag = (project, variant, value2, options = {
|
|
|
67975
67973
|
var nxVersion = "^18.0.4";
|
|
67976
67974
|
|
|
67977
67975
|
// packages/workspace-tools/src/base/typescript-library-generator.ts
|
|
67978
|
-
async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
67976
|
+
async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
67979
67977
|
const options = await normalizeOptions(tree, { ...schema });
|
|
67980
67978
|
const tasks = [];
|
|
67981
67979
|
tasks.push(
|
|
@@ -68046,15 +68044,15 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
68046
68044
|
projectConfig,
|
|
68047
68045
|
ProjectTagConstants.Platform.TAG_ID,
|
|
68048
68046
|
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,
|
|
68049
|
-
{ overwrite:
|
|
68047
|
+
{ overwrite: false }
|
|
68050
68048
|
);
|
|
68051
68049
|
createProjectTsConfigJson(tree, options);
|
|
68052
68050
|
(0, import_devkit.addProjectConfiguration)(tree, options.name, projectConfig);
|
|
68053
68051
|
let repository = {
|
|
68054
68052
|
type: "github",
|
|
68055
|
-
url:
|
|
68053
|
+
url: config?.repository || `https://github.com/${config?.organization || "storm-software"}/${config?.namespace || config?.name || "repository"}.git`
|
|
68056
68054
|
};
|
|
68057
|
-
let description = schema.description
|
|
68055
|
+
let description = schema.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
68058
68056
|
if (tree.exists("package.json")) {
|
|
68059
68057
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
68060
68058
|
if (packageJson?.repository) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Tree } from "@nx/devkit";
|
|
2
|
+
import { StormConfig } from "@storm-software/config";
|
|
2
3
|
import type { TypeScriptLibraryGeneratorNormalizedSchema, TypeScriptLibraryGeneratorSchema } from "../../declarations.d";
|
|
3
|
-
export declare function typeScriptLibraryGeneratorFn(tree: Tree, schema: TypeScriptLibraryGeneratorSchema): Promise<null>;
|
|
4
|
+
export declare function typeScriptLibraryGeneratorFn(tree: Tree, schema: TypeScriptLibraryGeneratorSchema, config?: StormConfig): Promise<null>;
|
|
4
5
|
export declare function getOutputPath(options: TypeScriptLibraryGeneratorNormalizedSchema): string;
|
|
5
6
|
export declare function createProjectTsConfigJson(tree: Tree, options: TypeScriptLibraryGeneratorNormalizedSchema): void;
|
|
6
7
|
export declare function normalizeOptions(tree: Tree, options: TypeScriptLibraryGeneratorSchema): Promise<TypeScriptLibraryGeneratorNormalizedSchema>;
|
|
@@ -102,7 +102,7 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
102
102
|
var nxVersion = "^18.0.4";
|
|
103
103
|
|
|
104
104
|
// packages/workspace-tools/src/base/typescript-library-generator.ts
|
|
105
|
-
async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
105
|
+
async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
106
106
|
const options = await normalizeOptions(tree, { ...schema });
|
|
107
107
|
const tasks = [];
|
|
108
108
|
tasks.push(
|
|
@@ -173,15 +173,15 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
173
173
|
projectConfig,
|
|
174
174
|
ProjectTagConstants.Platform.TAG_ID,
|
|
175
175
|
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,
|
|
176
|
-
{ overwrite:
|
|
176
|
+
{ overwrite: false }
|
|
177
177
|
);
|
|
178
178
|
createProjectTsConfigJson(tree, options);
|
|
179
179
|
(0, import_devkit.addProjectConfiguration)(tree, options.name, projectConfig);
|
|
180
180
|
let repository = {
|
|
181
181
|
type: "github",
|
|
182
|
-
url:
|
|
182
|
+
url: config?.repository || `https://github.com/${config?.organization || "storm-software"}/${config?.namespace || config?.name || "repository"}.git`
|
|
183
183
|
};
|
|
184
|
-
let description = schema.description
|
|
184
|
+
let description = schema.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
185
185
|
if (tree.exists("package.json")) {
|
|
186
186
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
187
187
|
if (packageJson?.repository) {
|
|
@@ -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)) {
|
|
@@ -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)) {
|