@storm-software/workspace-tools 1.203.0 → 1.205.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 +14 -0
- package/index.js +25 -19
- package/meta.json +178 -158
- package/package.json +1 -1
- package/src/base/base-executor.js +13 -13
- package/src/base/base-generator.js +13 -13
- package/src/base/index.js +17 -17
- 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 +13 -13
- package/src/executors/cargo-check/executor.js +13 -13
- package/src/executors/cargo-clippy/executor.js +13 -13
- package/src/executors/cargo-doc/executor.js +13 -13
- package/src/executors/cargo-format/executor.js +13 -13
- package/src/executors/clean-package/executor.js +13 -13
- package/src/executors/rolldown/executor.js +13 -13
- package/src/executors/rollup/executor.js +13 -13
- package/src/executors/size-limit/executor.js +13 -13
- package/src/executors/tsup/executor.js +13 -13
- package/src/executors/tsup-browser/executor.js +13 -13
- package/src/executors/tsup-neutral/executor.js +13 -13
- package/src/executors/tsup-node/executor.js +13 -13
- package/src/executors/typia/executor.js +13 -13
- package/src/executors/unbuild/executor.js +13 -13
- package/src/generators/browser-library/generator.d.ts +2 -1
- package/src/generators/browser-library/generator.js +19 -19
- package/src/generators/config-schema/generator.js +13 -13
- package/src/generators/neutral-library/generator.d.ts +2 -1
- package/src/generators/neutral-library/generator.js +19 -19
- package/src/generators/node-library/generator.d.ts +2 -1
- package/src/generators/node-library/generator.js +19 -19
- package/src/generators/preset/generator.js +13 -13
- package/src/generators/release-version/generator.js +13 -13
- package/src/plugins/rust/index.js +6 -0
- package/src/plugins/typescript/index.js +6 -0
- package/src/utils/index.js +19 -13
- 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.205.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(
|
|
@@ -66426,7 +66426,9 @@ var init_schema = __esm({
|
|
|
66426
66426
|
runtimeVersion: z3.string().trim().regex(
|
|
66427
66427
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
66428
66428
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
66429
|
-
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
66429
|
+
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
66430
|
+
"The JavaScript/TypeScript package manager used by the repository"
|
|
66431
|
+
),
|
|
66430
66432
|
timezone: z3.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
66431
66433
|
locale: z3.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
66432
66434
|
logLevel: z3.enum([
|
|
@@ -66527,19 +66529,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66529
|
}
|
|
66528
66530
|
};
|
|
66529
66531
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66532
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66533
|
+
license: "Apache-2.0",
|
|
66533
66534
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66535
|
+
owner: "@storm-software/admin",
|
|
66535
66536
|
worker: "stormie-bot",
|
|
66536
66537
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66538
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66539
|
+
packageManager: "pnpm",
|
|
66540
66540
|
timezone: "America/New_York",
|
|
66541
66541
|
locale: "en-US",
|
|
66542
|
-
|
|
66542
|
+
envName: "production",
|
|
66543
66543
|
branch: "main",
|
|
66544
66544
|
organization: "storm-software",
|
|
66545
66545
|
configFile: null,
|
|
@@ -67039,7 +67039,7 @@ var init_get_env = __esm({
|
|
|
67039
67039
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67040
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67041
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67042
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67043
|
// ci:
|
|
67044
67044
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67045
|
// ? Boolean(
|
|
@@ -67268,10 +67268,10 @@ var init_set_env = __esm({
|
|
|
67268
67268
|
config.outputDirectory
|
|
67269
67269
|
);
|
|
67270
67270
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67271
|
+
if (config.envName) {
|
|
67272
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67273
|
+
process.env.NODE_ENV = config.envName;
|
|
67274
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67275
|
}
|
|
67276
67276
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67277
|
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(
|
|
@@ -66426,7 +66426,9 @@ var init_schema = __esm({
|
|
|
66426
66426
|
runtimeVersion: z3.string().trim().regex(
|
|
66427
66427
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
66428
66428
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
66429
|
-
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
66429
|
+
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
66430
|
+
"The JavaScript/TypeScript package manager used by the repository"
|
|
66431
|
+
),
|
|
66430
66432
|
timezone: z3.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
66431
66433
|
locale: z3.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
66432
66434
|
logLevel: z3.enum([
|
|
@@ -66527,19 +66529,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66529
|
}
|
|
66528
66530
|
};
|
|
66529
66531
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66532
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66533
|
+
license: "Apache-2.0",
|
|
66533
66534
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66535
|
+
owner: "@storm-software/admin",
|
|
66535
66536
|
worker: "stormie-bot",
|
|
66536
66537
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66538
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66539
|
+
packageManager: "pnpm",
|
|
66540
66540
|
timezone: "America/New_York",
|
|
66541
66541
|
locale: "en-US",
|
|
66542
|
-
|
|
66542
|
+
envName: "production",
|
|
66543
66543
|
branch: "main",
|
|
66544
66544
|
organization: "storm-software",
|
|
66545
66545
|
configFile: null,
|
|
@@ -67039,7 +67039,7 @@ var init_get_env = __esm({
|
|
|
67039
67039
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67040
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67041
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67042
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67043
|
// ci:
|
|
67044
67044
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67045
|
// ? Boolean(
|
|
@@ -67268,10 +67268,10 @@ var init_set_env = __esm({
|
|
|
67268
67268
|
config.outputDirectory
|
|
67269
67269
|
);
|
|
67270
67270
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67271
|
+
if (config.envName) {
|
|
67272
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67273
|
+
process.env.NODE_ENV = config.envName;
|
|
67274
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67275
|
}
|
|
67276
67276
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67277
|
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(
|
|
@@ -66426,7 +66426,9 @@ var init_schema = __esm({
|
|
|
66426
66426
|
runtimeVersion: z3.string().trim().regex(
|
|
66427
66427
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
66428
66428
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
66429
|
-
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
66429
|
+
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
66430
|
+
"The JavaScript/TypeScript package manager used by the repository"
|
|
66431
|
+
),
|
|
66430
66432
|
timezone: z3.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
66431
66433
|
locale: z3.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
66432
66434
|
logLevel: z3.enum([
|
|
@@ -66527,19 +66529,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66529
|
}
|
|
66528
66530
|
};
|
|
66529
66531
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66532
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66533
|
+
license: "Apache-2.0",
|
|
66533
66534
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66535
|
+
owner: "@storm-software/admin",
|
|
66535
66536
|
worker: "stormie-bot",
|
|
66536
66537
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66538
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66539
|
+
packageManager: "pnpm",
|
|
66540
66540
|
timezone: "America/New_York",
|
|
66541
66541
|
locale: "en-US",
|
|
66542
|
-
|
|
66542
|
+
envName: "production",
|
|
66543
66543
|
branch: "main",
|
|
66544
66544
|
organization: "storm-software",
|
|
66545
66545
|
configFile: null,
|
|
@@ -67039,7 +67039,7 @@ var init_get_env = __esm({
|
|
|
67039
67039
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67040
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67041
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67042
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67043
|
// ci:
|
|
67044
67044
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67045
|
// ? Boolean(
|
|
@@ -67268,10 +67268,10 @@ var init_set_env = __esm({
|
|
|
67268
67268
|
config.outputDirectory
|
|
67269
67269
|
);
|
|
67270
67270
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67271
|
+
if (config.envName) {
|
|
67272
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67273
|
+
process.env.NODE_ENV = config.envName;
|
|
67274
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67275
|
}
|
|
67276
67276
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67277
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -67975,7 +67975,7 @@ var addProjectTag = (project, variant, value2, options = {
|
|
|
67975
67975
|
var nxVersion = "^18.0.4";
|
|
67976
67976
|
|
|
67977
67977
|
// packages/workspace-tools/src/base/typescript-library-generator.ts
|
|
67978
|
-
async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
67978
|
+
async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
67979
67979
|
const options = await normalizeOptions(tree, { ...schema });
|
|
67980
67980
|
const tasks = [];
|
|
67981
67981
|
tasks.push(
|
|
@@ -68046,15 +68046,15 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
68046
68046
|
projectConfig,
|
|
68047
68047
|
ProjectTagConstants.Platform.TAG_ID,
|
|
68048
68048
|
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:
|
|
68049
|
+
{ overwrite: false }
|
|
68050
68050
|
);
|
|
68051
68051
|
createProjectTsConfigJson(tree, options);
|
|
68052
68052
|
(0, import_devkit.addProjectConfiguration)(tree, options.name, projectConfig);
|
|
68053
68053
|
let repository = {
|
|
68054
68054
|
type: "github",
|
|
68055
|
-
url:
|
|
68055
|
+
url: config?.repository || `https://github.com/${config?.organization || "storm-software"}/${config?.namespace || config?.name || "repository"}.git`
|
|
68056
68056
|
};
|
|
68057
|
-
let description = schema.description
|
|
68057
|
+
let description = schema.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
68058
68058
|
if (tree.exists("package.json")) {
|
|
68059
68059
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
68060
68060
|
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(
|
|
@@ -66426,7 +66426,9 @@ var init_schema = __esm({
|
|
|
66426
66426
|
runtimeVersion: z3.string().trim().regex(
|
|
66427
66427
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
66428
66428
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
66429
|
-
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
66429
|
+
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
66430
|
+
"The JavaScript/TypeScript package manager used by the repository"
|
|
66431
|
+
),
|
|
66430
66432
|
timezone: z3.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
66431
66433
|
locale: z3.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
66432
66434
|
logLevel: z3.enum([
|
|
@@ -66527,19 +66529,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66529
|
}
|
|
66528
66530
|
};
|
|
66529
66531
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66532
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66533
|
+
license: "Apache-2.0",
|
|
66533
66534
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66535
|
+
owner: "@storm-software/admin",
|
|
66535
66536
|
worker: "stormie-bot",
|
|
66536
66537
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66538
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66539
|
+
packageManager: "pnpm",
|
|
66540
66540
|
timezone: "America/New_York",
|
|
66541
66541
|
locale: "en-US",
|
|
66542
|
-
|
|
66542
|
+
envName: "production",
|
|
66543
66543
|
branch: "main",
|
|
66544
66544
|
organization: "storm-software",
|
|
66545
66545
|
configFile: null,
|
|
@@ -67039,7 +67039,7 @@ var init_get_env = __esm({
|
|
|
67039
67039
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67040
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67041
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67042
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67043
|
// ci:
|
|
67044
67044
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67045
|
// ? Boolean(
|
|
@@ -67268,10 +67268,10 @@ var init_set_env = __esm({
|
|
|
67268
67268
|
config.outputDirectory
|
|
67269
67269
|
);
|
|
67270
67270
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67271
|
+
if (config.envName) {
|
|
67272
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67273
|
+
process.env.NODE_ENV = config.envName;
|
|
67274
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67275
|
}
|
|
67276
67276
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67277
|
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(
|
|
@@ -66426,7 +66426,9 @@ var init_schema = __esm({
|
|
|
66426
66426
|
runtimeVersion: z3.string().trim().regex(
|
|
66427
66427
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
66428
66428
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
66429
|
-
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
66429
|
+
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
66430
|
+
"The JavaScript/TypeScript package manager used by the repository"
|
|
66431
|
+
),
|
|
66430
66432
|
timezone: z3.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
66431
66433
|
locale: z3.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
66432
66434
|
logLevel: z3.enum([
|
|
@@ -66527,19 +66529,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66529
|
}
|
|
66528
66530
|
};
|
|
66529
66531
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66532
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66533
|
+
license: "Apache-2.0",
|
|
66533
66534
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66535
|
+
owner: "@storm-software/admin",
|
|
66535
66536
|
worker: "stormie-bot",
|
|
66536
66537
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66538
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66539
|
+
packageManager: "pnpm",
|
|
66540
66540
|
timezone: "America/New_York",
|
|
66541
66541
|
locale: "en-US",
|
|
66542
|
-
|
|
66542
|
+
envName: "production",
|
|
66543
66543
|
branch: "main",
|
|
66544
66544
|
organization: "storm-software",
|
|
66545
66545
|
configFile: null,
|
|
@@ -67039,7 +67039,7 @@ var init_get_env = __esm({
|
|
|
67039
67039
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67040
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67041
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67042
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67043
|
// ci:
|
|
67044
67044
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67045
|
// ? Boolean(
|
|
@@ -67268,10 +67268,10 @@ var init_set_env = __esm({
|
|
|
67268
67268
|
config.outputDirectory
|
|
67269
67269
|
);
|
|
67270
67270
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67271
|
+
if (config.envName) {
|
|
67272
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67273
|
+
process.env.NODE_ENV = config.envName;
|
|
67274
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67275
|
}
|
|
67276
67276
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67277
|
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(
|
|
@@ -66426,7 +66426,9 @@ var init_schema = __esm({
|
|
|
66426
66426
|
runtimeVersion: z3.string().trim().regex(
|
|
66427
66427
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
66428
66428
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
66429
|
-
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
66429
|
+
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
66430
|
+
"The JavaScript/TypeScript package manager used by the repository"
|
|
66431
|
+
),
|
|
66430
66432
|
timezone: z3.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
66431
66433
|
locale: z3.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
66432
66434
|
logLevel: z3.enum([
|
|
@@ -66527,19 +66529,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66529
|
}
|
|
66528
66530
|
};
|
|
66529
66531
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66532
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66533
|
+
license: "Apache-2.0",
|
|
66533
66534
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66535
|
+
owner: "@storm-software/admin",
|
|
66535
66536
|
worker: "stormie-bot",
|
|
66536
66537
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66538
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66539
|
+
packageManager: "pnpm",
|
|
66540
66540
|
timezone: "America/New_York",
|
|
66541
66541
|
locale: "en-US",
|
|
66542
|
-
|
|
66542
|
+
envName: "production",
|
|
66543
66543
|
branch: "main",
|
|
66544
66544
|
organization: "storm-software",
|
|
66545
66545
|
configFile: null,
|
|
@@ -67039,7 +67039,7 @@ var init_get_env = __esm({
|
|
|
67039
67039
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67040
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67041
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67042
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67043
|
// ci:
|
|
67044
67044
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67045
|
// ? Boolean(
|
|
@@ -67268,10 +67268,10 @@ var init_set_env = __esm({
|
|
|
67268
67268
|
config.outputDirectory
|
|
67269
67269
|
);
|
|
67270
67270
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67271
|
+
if (config.envName) {
|
|
67272
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67273
|
+
process.env.NODE_ENV = config.envName;
|
|
67274
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67275
|
}
|
|
67276
67276
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67277
|
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(
|
|
@@ -66426,7 +66426,9 @@ var init_schema = __esm({
|
|
|
66426
66426
|
runtimeVersion: z3.string().trim().regex(
|
|
66427
66427
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
66428
66428
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
66429
|
-
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
66429
|
+
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
66430
|
+
"The JavaScript/TypeScript package manager used by the repository"
|
|
66431
|
+
),
|
|
66430
66432
|
timezone: z3.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
66431
66433
|
locale: z3.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
66432
66434
|
logLevel: z3.enum([
|
|
@@ -66527,19 +66529,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66529
|
}
|
|
66528
66530
|
};
|
|
66529
66531
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66532
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66533
|
+
license: "Apache-2.0",
|
|
66533
66534
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66535
|
+
owner: "@storm-software/admin",
|
|
66535
66536
|
worker: "stormie-bot",
|
|
66536
66537
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66538
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66539
|
+
packageManager: "pnpm",
|
|
66540
66540
|
timezone: "America/New_York",
|
|
66541
66541
|
locale: "en-US",
|
|
66542
|
-
|
|
66542
|
+
envName: "production",
|
|
66543
66543
|
branch: "main",
|
|
66544
66544
|
organization: "storm-software",
|
|
66545
66545
|
configFile: null,
|
|
@@ -67039,7 +67039,7 @@ var init_get_env = __esm({
|
|
|
67039
67039
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67040
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67041
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67042
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67043
|
// ci:
|
|
67044
67044
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67045
|
// ? Boolean(
|
|
@@ -67268,10 +67268,10 @@ var init_set_env = __esm({
|
|
|
67268
67268
|
config.outputDirectory
|
|
67269
67269
|
);
|
|
67270
67270
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67271
|
+
if (config.envName) {
|
|
67272
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67273
|
+
process.env.NODE_ENV = config.envName;
|
|
67274
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67275
|
}
|
|
67276
67276
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67277
|
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(
|
|
@@ -66426,7 +66426,9 @@ var init_schema = __esm({
|
|
|
66426
66426
|
runtimeVersion: z3.string().trim().regex(
|
|
66427
66427
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
66428
66428
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
66429
|
-
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
66429
|
+
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
66430
|
+
"The JavaScript/TypeScript package manager used by the repository"
|
|
66431
|
+
),
|
|
66430
66432
|
timezone: z3.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
66431
66433
|
locale: z3.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
66432
66434
|
logLevel: z3.enum([
|
|
@@ -66527,19 +66529,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66529
|
}
|
|
66528
66530
|
};
|
|
66529
66531
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66532
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66533
|
+
license: "Apache-2.0",
|
|
66533
66534
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66535
|
+
owner: "@storm-software/admin",
|
|
66535
66536
|
worker: "stormie-bot",
|
|
66536
66537
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66538
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66539
|
+
packageManager: "pnpm",
|
|
66540
66540
|
timezone: "America/New_York",
|
|
66541
66541
|
locale: "en-US",
|
|
66542
|
-
|
|
66542
|
+
envName: "production",
|
|
66543
66543
|
branch: "main",
|
|
66544
66544
|
organization: "storm-software",
|
|
66545
66545
|
configFile: null,
|
|
@@ -67039,7 +67039,7 @@ var init_get_env = __esm({
|
|
|
67039
67039
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67040
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67041
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67042
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67043
|
// ci:
|
|
67044
67044
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67045
|
// ? Boolean(
|
|
@@ -67268,10 +67268,10 @@ var init_set_env = __esm({
|
|
|
67268
67268
|
config.outputDirectory
|
|
67269
67269
|
);
|
|
67270
67270
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67271
|
+
if (config.envName) {
|
|
67272
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67273
|
+
process.env.NODE_ENV = config.envName;
|
|
67274
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67275
|
}
|
|
67276
67276
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67277
|
for (const key of Object.keys(config.colors)) {
|