@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
|
@@ -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)) {
|
|
@@ -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(
|
|
@@ -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)) {
|
|
@@ -67781,7 +67781,7 @@ var addProjectTag = (project, variant, value2, options = {
|
|
|
67781
67781
|
var nxVersion = "^18.0.4";
|
|
67782
67782
|
|
|
67783
67783
|
// packages/workspace-tools/src/base/typescript-library-generator.ts
|
|
67784
|
-
async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
67784
|
+
async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
67785
67785
|
const options = await normalizeOptions(tree, { ...schema });
|
|
67786
67786
|
const tasks = [];
|
|
67787
67787
|
tasks.push(
|
|
@@ -67852,15 +67852,15 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67852
67852
|
projectConfig,
|
|
67853
67853
|
ProjectTagConstants.Platform.TAG_ID,
|
|
67854
67854
|
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:
|
|
67855
|
+
{ overwrite: false }
|
|
67856
67856
|
);
|
|
67857
67857
|
createProjectTsConfigJson(tree, options);
|
|
67858
67858
|
(0, import_devkit.addProjectConfiguration)(tree, options.name, projectConfig);
|
|
67859
67859
|
let repository = {
|
|
67860
67860
|
type: "github",
|
|
67861
|
-
url:
|
|
67861
|
+
url: config?.repository || `https://github.com/${config?.organization || "storm-software"}/${config?.namespace || config?.name || "repository"}.git`
|
|
67862
67862
|
};
|
|
67863
|
-
let description = schema.description
|
|
67863
|
+
let description = schema.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
67864
67864
|
if (tree.exists("package.json")) {
|
|
67865
67865
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
67866
67866
|
if (packageJson?.repository) {
|
|
@@ -68067,7 +68067,7 @@ async function normalizeOptions(tree, options) {
|
|
|
68067
68067
|
}
|
|
68068
68068
|
|
|
68069
68069
|
// packages/workspace-tools/src/generators/browser-library/generator.ts
|
|
68070
|
-
async function browserLibraryGeneratorFn(tree, schema) {
|
|
68070
|
+
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
68071
68071
|
const filesDir = (0, import_devkit2.joinPathFragments)(__dirname, "./files");
|
|
68072
68072
|
const tsLibraryGeneratorOptions = {
|
|
68073
68073
|
...schema,
|
|
@@ -68121,7 +68121,7 @@ async function browserLibraryGeneratorFn(tree, schema) {
|
|
|
68121
68121
|
}
|
|
68122
68122
|
}
|
|
68123
68123
|
});
|
|
68124
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions);
|
|
68124
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
|
|
68125
68125
|
await (0, import_devkit2.formatFiles)(tree);
|
|
68126
68126
|
return null;
|
|
68127
68127
|
}
|
|
@@ -4075,7 +4075,7 @@ var init_schema = __esm({
|
|
|
4075
4075
|
worker: z.string().trim().default("Stormie-Bot").describe(
|
|
4076
4076
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
4077
4077
|
),
|
|
4078
|
-
|
|
4078
|
+
envName: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
4079
4079
|
workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
|
|
4080
4080
|
packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
|
|
4081
4081
|
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
@@ -4096,7 +4096,9 @@ var init_schema = __esm({
|
|
|
4096
4096
|
runtimeVersion: z.string().trim().regex(
|
|
4097
4097
|
/^(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-]+)*))?$/
|
|
4098
4098
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
4099
|
-
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
4099
|
+
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
4100
|
+
"The JavaScript/TypeScript package manager used by the repository"
|
|
4101
|
+
),
|
|
4100
4102
|
timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
4101
4103
|
locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
4102
4104
|
logLevel: z.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)) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Tree } from "@nx/devkit";
|
|
2
|
+
import { StormConfig } from "@storm-software/config";
|
|
2
3
|
import { NeutralLibraryGeneratorSchema } from "./schema";
|
|
3
|
-
export declare function neutralLibraryGeneratorFn(tree: Tree, schema: NeutralLibraryGeneratorSchema): Promise<null>;
|
|
4
|
+
export declare function neutralLibraryGeneratorFn(tree: Tree, schema: NeutralLibraryGeneratorSchema, config?: StormConfig): Promise<null>;
|
|
4
5
|
declare const _default: (tree: Tree, _options: NeutralLibraryGeneratorSchema) => 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(
|
|
@@ -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)) {
|
|
@@ -67781,7 +67781,7 @@ var addProjectTag = (project, variant, value2, options = {
|
|
|
67781
67781
|
var nxVersion = "^18.0.4";
|
|
67782
67782
|
|
|
67783
67783
|
// packages/workspace-tools/src/base/typescript-library-generator.ts
|
|
67784
|
-
async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
67784
|
+
async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
67785
67785
|
const options = await normalizeOptions(tree, { ...schema });
|
|
67786
67786
|
const tasks = [];
|
|
67787
67787
|
tasks.push(
|
|
@@ -67852,15 +67852,15 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67852
67852
|
projectConfig,
|
|
67853
67853
|
ProjectTagConstants.Platform.TAG_ID,
|
|
67854
67854
|
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:
|
|
67855
|
+
{ overwrite: false }
|
|
67856
67856
|
);
|
|
67857
67857
|
createProjectTsConfigJson(tree, options);
|
|
67858
67858
|
(0, import_devkit.addProjectConfiguration)(tree, options.name, projectConfig);
|
|
67859
67859
|
let repository = {
|
|
67860
67860
|
type: "github",
|
|
67861
|
-
url:
|
|
67861
|
+
url: config?.repository || `https://github.com/${config?.organization || "storm-software"}/${config?.namespace || config?.name || "repository"}.git`
|
|
67862
67862
|
};
|
|
67863
|
-
let description = schema.description
|
|
67863
|
+
let description = schema.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
67864
67864
|
if (tree.exists("package.json")) {
|
|
67865
67865
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
67866
67866
|
if (packageJson?.repository) {
|
|
@@ -68067,7 +68067,7 @@ async function normalizeOptions(tree, options) {
|
|
|
68067
68067
|
}
|
|
68068
68068
|
|
|
68069
68069
|
// packages/workspace-tools/src/generators/neutral-library/generator.ts
|
|
68070
|
-
async function neutralLibraryGeneratorFn(tree, schema) {
|
|
68070
|
+
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
68071
68071
|
const filesDir = (0, import_devkit2.joinPathFragments)(__dirname, "./files");
|
|
68072
68072
|
const tsLibraryGeneratorOptions = {
|
|
68073
68073
|
...schema,
|
|
@@ -68095,7 +68095,7 @@ async function neutralLibraryGeneratorFn(tree, schema) {
|
|
|
68095
68095
|
buildable: options.bundler && options.bundler !== "none",
|
|
68096
68096
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
68097
68097
|
});
|
|
68098
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions);
|
|
68098
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
|
|
68099
68099
|
await (0, import_devkit2.formatFiles)(tree);
|
|
68100
68100
|
return null;
|
|
68101
68101
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Tree } from "@nx/devkit";
|
|
2
|
+
import { StormConfig } from "@storm-software/config";
|
|
2
3
|
import type { NodeLibraryGeneratorSchema } from "./schema";
|
|
3
|
-
export declare function nodeLibraryGeneratorFn(tree: Tree, schema: NodeLibraryGeneratorSchema): Promise<null>;
|
|
4
|
+
export declare function nodeLibraryGeneratorFn(tree: Tree, schema: NodeLibraryGeneratorSchema, config?: StormConfig): Promise<null>;
|
|
4
5
|
declare const _default: (tree: Tree, _options: NodeLibraryGeneratorSchema) => 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(
|
|
@@ -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)) {
|
|
@@ -67782,7 +67782,7 @@ var typesNodeVersion = "20.9.0";
|
|
|
67782
67782
|
var nxVersion = "^18.0.4";
|
|
67783
67783
|
|
|
67784
67784
|
// packages/workspace-tools/src/base/typescript-library-generator.ts
|
|
67785
|
-
async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
67785
|
+
async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
67786
67786
|
const options = await normalizeOptions(tree, { ...schema });
|
|
67787
67787
|
const tasks = [];
|
|
67788
67788
|
tasks.push(
|
|
@@ -67853,15 +67853,15 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67853
67853
|
projectConfig,
|
|
67854
67854
|
ProjectTagConstants.Platform.TAG_ID,
|
|
67855
67855
|
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,
|
|
67856
|
-
{ overwrite:
|
|
67856
|
+
{ overwrite: false }
|
|
67857
67857
|
);
|
|
67858
67858
|
createProjectTsConfigJson(tree, options);
|
|
67859
67859
|
(0, import_devkit.addProjectConfiguration)(tree, options.name, projectConfig);
|
|
67860
67860
|
let repository = {
|
|
67861
67861
|
type: "github",
|
|
67862
|
-
url:
|
|
67862
|
+
url: config?.repository || `https://github.com/${config?.organization || "storm-software"}/${config?.namespace || config?.name || "repository"}.git`
|
|
67863
67863
|
};
|
|
67864
|
-
let description = schema.description
|
|
67864
|
+
let description = schema.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
67865
67865
|
if (tree.exists("package.json")) {
|
|
67866
67866
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
67867
67867
|
if (packageJson?.repository) {
|
|
@@ -68068,7 +68068,7 @@ async function normalizeOptions(tree, options) {
|
|
|
68068
68068
|
}
|
|
68069
68069
|
|
|
68070
68070
|
// packages/workspace-tools/src/generators/node-library/generator.ts
|
|
68071
|
-
async function nodeLibraryGeneratorFn(tree, schema) {
|
|
68071
|
+
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
68072
68072
|
const filesDir = (0, import_devkit2.joinPathFragments)(__dirname, "./files");
|
|
68073
68073
|
const tsLibraryGeneratorOptions = {
|
|
68074
68074
|
...schema,
|
|
@@ -68098,7 +68098,7 @@ async function nodeLibraryGeneratorFn(tree, schema) {
|
|
|
68098
68098
|
buildable: options.bundler && options.bundler !== "none",
|
|
68099
68099
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
68100
68100
|
});
|
|
68101
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions);
|
|
68101
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
|
|
68102
68102
|
await (0, import_devkit2.formatFiles)(tree);
|
|
68103
68103
|
return null;
|
|
68104
68104
|
}
|
|
@@ -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)) {
|
|
@@ -68229,7 +68229,7 @@ var init_schema = __esm({
|
|
|
68229
68229
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
68230
68230
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
68231
68231
|
),
|
|
68232
|
-
|
|
68232
|
+
envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
68233
68233
|
workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
|
|
68234
68234
|
packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
|
|
68235
68235
|
externalPackagePatterns: z3.array(z3.string()).default([]).describe(
|
|
@@ -68250,7 +68250,9 @@ var init_schema = __esm({
|
|
|
68250
68250
|
runtimeVersion: z3.string().trim().regex(
|
|
68251
68251
|
/^(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-]+)*))?$/
|
|
68252
68252
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
68253
|
-
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
68253
|
+
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
68254
|
+
"The JavaScript/TypeScript package manager used by the repository"
|
|
68255
|
+
),
|
|
68254
68256
|
timezone: z3.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
68255
68257
|
locale: z3.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
68256
68258
|
logLevel: z3.enum([
|
|
@@ -68351,19 +68353,17 @@ var init_get_default_config = __esm({
|
|
|
68351
68353
|
}
|
|
68352
68354
|
};
|
|
68353
68355
|
DEFAULT_STORM_CONFIG = {
|
|
68354
|
-
name: "storm",
|
|
68355
68356
|
namespace: "storm-software",
|
|
68356
|
-
license: "Apache
|
|
68357
|
+
license: "Apache-2.0",
|
|
68357
68358
|
homepage: "https://stormsoftware.com",
|
|
68358
|
-
owner: "@storm-software/
|
|
68359
|
+
owner: "@storm-software/admin",
|
|
68359
68360
|
worker: "stormie-bot",
|
|
68360
68361
|
runtimeDirectory: "node_modules/.storm",
|
|
68361
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
68362
68362
|
skipCache: false,
|
|
68363
|
-
packageManager: "
|
|
68363
|
+
packageManager: "pnpm",
|
|
68364
68364
|
timezone: "America/New_York",
|
|
68365
68365
|
locale: "en-US",
|
|
68366
|
-
|
|
68366
|
+
envName: "production",
|
|
68367
68367
|
branch: "main",
|
|
68368
68368
|
organization: "storm-software",
|
|
68369
68369
|
configFile: null,
|
|
@@ -68863,7 +68863,7 @@ var init_get_env = __esm({
|
|
|
68863
68863
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
68864
68864
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
68865
68865
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
68866
|
-
|
|
68866
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
68867
68867
|
// ci:
|
|
68868
68868
|
// process.env[`${prefix}CI`] !== undefined
|
|
68869
68869
|
// ? Boolean(
|
|
@@ -69092,10 +69092,10 @@ var init_set_env = __esm({
|
|
|
69092
69092
|
config.outputDirectory
|
|
69093
69093
|
);
|
|
69094
69094
|
}
|
|
69095
|
-
if (config.
|
|
69096
|
-
process.env[`${prefix}
|
|
69097
|
-
process.env.NODE_ENV = config.
|
|
69098
|
-
process.env.ENVIRONMENT = config.
|
|
69095
|
+
if (config.envName) {
|
|
69096
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
69097
|
+
process.env.NODE_ENV = config.envName;
|
|
69098
|
+
process.env.ENVIRONMENT = config.envName;
|
|
69099
69099
|
}
|
|
69100
69100
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
69101
69101
|
for (const key of Object.keys(config.colors)) {
|