@storm-software/workspace-tools 1.202.1 → 1.204.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/declarations.d.ts +18 -2
- package/index.js +115 -101
- package/meta.json +221 -176
- package/package.json +1 -1
- package/src/base/base-executor.js +10 -12
- package/src/base/base-generator.js +10 -12
- package/src/base/index.js +79 -19
- package/src/base/typescript-library-generator.d.ts +2 -1
- package/src/base/typescript-library-generator.js +69 -7
- package/src/executors/cargo-build/executor.js +10 -12
- package/src/executors/cargo-check/executor.js +10 -12
- package/src/executors/cargo-clippy/executor.js +10 -12
- package/src/executors/cargo-doc/executor.js +10 -12
- package/src/executors/cargo-format/executor.js +10 -12
- package/src/executors/clean-package/executor.js +10 -12
- package/src/executors/rolldown/executor.js +10 -12
- package/src/executors/rollup/executor.js +10 -12
- package/src/executors/size-limit/executor.js +10 -12
- package/src/executors/tsup/executor.js +10 -12
- package/src/executors/tsup-browser/executor.js +10 -12
- package/src/executors/tsup-neutral/executor.js +10 -12
- package/src/executors/tsup-node/executor.js +10 -12
- package/src/executors/typia/executor.js +10 -12
- package/src/executors/unbuild/executor.js +10 -12
- package/src/executors/unbuild/schema.json +7 -1
- package/src/generators/browser-library/generator.d.ts +2 -1
- package/src/generators/browser-library/generator.js +81 -21
- package/src/generators/config-schema/generator.js +10 -12
- package/src/generators/neutral-library/generator.d.ts +2 -1
- package/src/generators/neutral-library/generator.js +81 -21
- package/src/generators/node-library/generator.d.ts +2 -1
- package/src/generators/node-library/generator.js +81 -21
- package/src/generators/preset/generator.js +10 -12
- package/src/generators/release-version/generator.js +10 -12
- package/src/plugins/rust/index.js +13 -0
- package/src/plugins/typescript/index.js +13 -0
- package/src/utils/index.js +23 -12
- package/src/utils/project-tags.d.ts +8 -1
- package/src/utils/project-tags.js +13 -0
|
@@ -66405,7 +66405,7 @@ var init_schema = __esm({
|
|
|
66405
66405
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66406
66406
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66407
66407
|
),
|
|
66408
|
-
|
|
66408
|
+
envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
66409
66409
|
workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
|
|
66410
66410
|
packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
|
|
66411
66411
|
externalPackagePatterns: z3.array(z3.string()).default([]).describe(
|
|
@@ -66527,19 +66527,17 @@ var init_get_default_config = __esm({
|
|
|
66527
66527
|
}
|
|
66528
66528
|
};
|
|
66529
66529
|
DEFAULT_STORM_CONFIG = {
|
|
66530
|
-
name: "storm",
|
|
66531
66530
|
namespace: "storm-software",
|
|
66532
|
-
license: "Apache
|
|
66531
|
+
license: "Apache-2.0",
|
|
66533
66532
|
homepage: "https://stormsoftware.com",
|
|
66534
|
-
owner: "@storm-software/
|
|
66533
|
+
owner: "@storm-software/admin",
|
|
66535
66534
|
worker: "stormie-bot",
|
|
66536
66535
|
runtimeDirectory: "node_modules/.storm",
|
|
66537
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66538
66536
|
skipCache: false,
|
|
66539
|
-
packageManager: "
|
|
66537
|
+
packageManager: "pnpm",
|
|
66540
66538
|
timezone: "America/New_York",
|
|
66541
66539
|
locale: "en-US",
|
|
66542
|
-
|
|
66540
|
+
envName: "production",
|
|
66543
66541
|
branch: "main",
|
|
66544
66542
|
organization: "storm-software",
|
|
66545
66543
|
configFile: null,
|
|
@@ -67039,7 +67037,7 @@ var init_get_env = __esm({
|
|
|
67039
67037
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
67040
67038
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67041
67039
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67042
|
-
|
|
67040
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67043
67041
|
// ci:
|
|
67044
67042
|
// process.env[`${prefix}CI`] !== undefined
|
|
67045
67043
|
// ? Boolean(
|
|
@@ -67268,10 +67266,10 @@ var init_set_env = __esm({
|
|
|
67268
67266
|
config.outputDirectory
|
|
67269
67267
|
);
|
|
67270
67268
|
}
|
|
67271
|
-
if (config.
|
|
67272
|
-
process.env[`${prefix}
|
|
67273
|
-
process.env.NODE_ENV = config.
|
|
67274
|
-
process.env.ENVIRONMENT = config.
|
|
67269
|
+
if (config.envName) {
|
|
67270
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67271
|
+
process.env.NODE_ENV = config.envName;
|
|
67272
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67275
67273
|
}
|
|
67276
67274
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67277
67275
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -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(
|
|
@@ -68351,19 +68351,17 @@ var init_get_default_config = __esm({
|
|
|
68351
68351
|
}
|
|
68352
68352
|
};
|
|
68353
68353
|
DEFAULT_STORM_CONFIG = {
|
|
68354
|
-
name: "storm",
|
|
68355
68354
|
namespace: "storm-software",
|
|
68356
|
-
license: "Apache
|
|
68355
|
+
license: "Apache-2.0",
|
|
68357
68356
|
homepage: "https://stormsoftware.com",
|
|
68358
|
-
owner: "@storm-software/
|
|
68357
|
+
owner: "@storm-software/admin",
|
|
68359
68358
|
worker: "stormie-bot",
|
|
68360
68359
|
runtimeDirectory: "node_modules/.storm",
|
|
68361
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
68362
68360
|
skipCache: false,
|
|
68363
|
-
packageManager: "
|
|
68361
|
+
packageManager: "pnpm",
|
|
68364
68362
|
timezone: "America/New_York",
|
|
68365
68363
|
locale: "en-US",
|
|
68366
|
-
|
|
68364
|
+
envName: "production",
|
|
68367
68365
|
branch: "main",
|
|
68368
68366
|
organization: "storm-software",
|
|
68369
68367
|
configFile: null,
|
|
@@ -68863,7 +68861,7 @@ var init_get_env = __esm({
|
|
|
68863
68861
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
68864
68862
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
68865
68863
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
68866
|
-
|
|
68864
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
68867
68865
|
// ci:
|
|
68868
68866
|
// process.env[`${prefix}CI`] !== undefined
|
|
68869
68867
|
// ? Boolean(
|
|
@@ -69092,10 +69090,10 @@ var init_set_env = __esm({
|
|
|
69092
69090
|
config.outputDirectory
|
|
69093
69091
|
);
|
|
69094
69092
|
}
|
|
69095
|
-
if (config.
|
|
69096
|
-
process.env[`${prefix}
|
|
69097
|
-
process.env.NODE_ENV = config.
|
|
69098
|
-
process.env.ENVIRONMENT = config.
|
|
69093
|
+
if (config.envName) {
|
|
69094
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
69095
|
+
process.env.NODE_ENV = config.envName;
|
|
69096
|
+
process.env.ENVIRONMENT = config.envName;
|
|
69099
69097
|
}
|
|
69100
69098
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
69101
69099
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -101,6 +101,13 @@ var ProjectTagConstants = {
|
|
|
101
101
|
Provider: {
|
|
102
102
|
TAG_ID: "provider"
|
|
103
103
|
},
|
|
104
|
+
Platform: {
|
|
105
|
+
TAG_ID: "platform",
|
|
106
|
+
NODE: "node",
|
|
107
|
+
BROWSER: "browser",
|
|
108
|
+
NEUTRAL: "neutral",
|
|
109
|
+
WORKER: "worker"
|
|
110
|
+
},
|
|
104
111
|
Registry: {
|
|
105
112
|
TAG_ID: "registry",
|
|
106
113
|
CARGO: "cargo",
|
|
@@ -144,6 +151,12 @@ var setDefaultProjectTags = (project) => {
|
|
|
144
151
|
project.targets && Object.keys(project.targets).includes("clean-package") ? ProjectTagConstants.DistStyle.CLEAN : ProjectTagConstants.DistStyle.NORMAL,
|
|
145
152
|
{ overwrite: true }
|
|
146
153
|
);
|
|
154
|
+
addProjectTag(
|
|
155
|
+
project,
|
|
156
|
+
ProjectTagConstants.Platform.TAG_ID,
|
|
157
|
+
project.targets?.build?.options.platform === "node" ? ProjectTagConstants.Platform.NODE : project.targets?.build?.options.platform === "worker" ? ProjectTagConstants.Platform.WORKER : project.targets?.build?.options.platform === "browser" ? ProjectTagConstants.Platform.BROWSER : ProjectTagConstants.Platform.NEUTRAL,
|
|
158
|
+
{ overwrite: false }
|
|
159
|
+
);
|
|
147
160
|
};
|
|
148
161
|
|
|
149
162
|
// packages/workspace-tools/src/plugins/rust/cargo-toml.ts
|
|
@@ -51,6 +51,13 @@ var ProjectTagConstants = {
|
|
|
51
51
|
Provider: {
|
|
52
52
|
TAG_ID: "provider"
|
|
53
53
|
},
|
|
54
|
+
Platform: {
|
|
55
|
+
TAG_ID: "platform",
|
|
56
|
+
NODE: "node",
|
|
57
|
+
BROWSER: "browser",
|
|
58
|
+
NEUTRAL: "neutral",
|
|
59
|
+
WORKER: "worker"
|
|
60
|
+
},
|
|
54
61
|
Registry: {
|
|
55
62
|
TAG_ID: "registry",
|
|
56
63
|
CARGO: "cargo",
|
|
@@ -107,6 +114,12 @@ var setDefaultProjectTags = (project) => {
|
|
|
107
114
|
project.targets && Object.keys(project.targets).includes("clean-package") ? ProjectTagConstants.DistStyle.CLEAN : ProjectTagConstants.DistStyle.NORMAL,
|
|
108
115
|
{ overwrite: true }
|
|
109
116
|
);
|
|
117
|
+
addProjectTag(
|
|
118
|
+
project,
|
|
119
|
+
ProjectTagConstants.Platform.TAG_ID,
|
|
120
|
+
project.targets?.build?.options.platform === "node" ? ProjectTagConstants.Platform.NODE : project.targets?.build?.options.platform === "worker" ? ProjectTagConstants.Platform.WORKER : project.targets?.build?.options.platform === "browser" ? ProjectTagConstants.Platform.BROWSER : ProjectTagConstants.Platform.NEUTRAL,
|
|
121
|
+
{ overwrite: false }
|
|
122
|
+
);
|
|
110
123
|
};
|
|
111
124
|
|
|
112
125
|
// packages/workspace-tools/src/plugins/typescript/project-config.ts
|
package/src/utils/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)) {
|
|
@@ -91244,6 +91242,13 @@ var ProjectTagConstants = {
|
|
|
91244
91242
|
Provider: {
|
|
91245
91243
|
TAG_ID: "provider"
|
|
91246
91244
|
},
|
|
91245
|
+
Platform: {
|
|
91246
|
+
TAG_ID: "platform",
|
|
91247
|
+
NODE: "node",
|
|
91248
|
+
BROWSER: "browser",
|
|
91249
|
+
NEUTRAL: "neutral",
|
|
91250
|
+
WORKER: "worker"
|
|
91251
|
+
},
|
|
91247
91252
|
Registry: {
|
|
91248
91253
|
TAG_ID: "registry",
|
|
91249
91254
|
CARGO: "cargo",
|
|
@@ -91300,6 +91305,12 @@ var setDefaultProjectTags = (project) => {
|
|
|
91300
91305
|
project.targets && Object.keys(project.targets).includes("clean-package") ? ProjectTagConstants.DistStyle.CLEAN : ProjectTagConstants.DistStyle.NORMAL,
|
|
91301
91306
|
{ overwrite: true }
|
|
91302
91307
|
);
|
|
91308
|
+
addProjectTag(
|
|
91309
|
+
project,
|
|
91310
|
+
ProjectTagConstants.Platform.TAG_ID,
|
|
91311
|
+
project.targets?.build?.options.platform === "node" ? ProjectTagConstants.Platform.NODE : project.targets?.build?.options.platform === "worker" ? ProjectTagConstants.Platform.WORKER : project.targets?.build?.options.platform === "browser" ? ProjectTagConstants.Platform.BROWSER : ProjectTagConstants.Platform.NEUTRAL,
|
|
91312
|
+
{ overwrite: false }
|
|
91313
|
+
);
|
|
91303
91314
|
};
|
|
91304
91315
|
|
|
91305
91316
|
// node_modules/.pnpm/@ltd+j-toml@1.38.0/node_modules/@ltd/j-toml/index.mjs
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProjectConfiguration } from "@nx/devkit";
|
|
2
|
-
import { ProjectTagDistStyleValue, ProjectTagLanguageValue, ProjectTagRegistryValue, ProjectTagTypeValue, ProjectTagVariant } from "../../declarations.d";
|
|
2
|
+
import { ProjectTagDistStyleValue, ProjectTagLanguageValue, ProjectTagPlatformValue, ProjectTagRegistryValue, ProjectTagTypeValue, ProjectTagVariant } from "../../declarations.d";
|
|
3
3
|
export declare const ProjectTagConstants: {
|
|
4
4
|
readonly Language: {
|
|
5
5
|
readonly TAG_ID: ProjectTagVariant;
|
|
@@ -19,6 +19,13 @@ export declare const ProjectTagConstants: {
|
|
|
19
19
|
readonly Provider: {
|
|
20
20
|
readonly TAG_ID: ProjectTagVariant;
|
|
21
21
|
};
|
|
22
|
+
readonly Platform: {
|
|
23
|
+
readonly TAG_ID: ProjectTagVariant;
|
|
24
|
+
readonly NODE: ProjectTagPlatformValue;
|
|
25
|
+
readonly BROWSER: ProjectTagPlatformValue;
|
|
26
|
+
readonly NEUTRAL: ProjectTagPlatformValue;
|
|
27
|
+
readonly WORKER: ProjectTagPlatformValue;
|
|
28
|
+
};
|
|
22
29
|
readonly Registry: {
|
|
23
30
|
readonly TAG_ID: ProjectTagVariant;
|
|
24
31
|
readonly CARGO: ProjectTagRegistryValue;
|
|
@@ -47,6 +47,13 @@ var ProjectTagConstants = {
|
|
|
47
47
|
Provider: {
|
|
48
48
|
TAG_ID: "provider"
|
|
49
49
|
},
|
|
50
|
+
Platform: {
|
|
51
|
+
TAG_ID: "platform",
|
|
52
|
+
NODE: "node",
|
|
53
|
+
BROWSER: "browser",
|
|
54
|
+
NEUTRAL: "neutral",
|
|
55
|
+
WORKER: "worker"
|
|
56
|
+
},
|
|
50
57
|
Registry: {
|
|
51
58
|
TAG_ID: "registry",
|
|
52
59
|
CARGO: "cargo",
|
|
@@ -103,6 +110,12 @@ var setDefaultProjectTags = (project) => {
|
|
|
103
110
|
project.targets && Object.keys(project.targets).includes("clean-package") ? ProjectTagConstants.DistStyle.CLEAN : ProjectTagConstants.DistStyle.NORMAL,
|
|
104
111
|
{ overwrite: true }
|
|
105
112
|
);
|
|
113
|
+
addProjectTag(
|
|
114
|
+
project,
|
|
115
|
+
ProjectTagConstants.Platform.TAG_ID,
|
|
116
|
+
project.targets?.build?.options.platform === "node" ? ProjectTagConstants.Platform.NODE : project.targets?.build?.options.platform === "worker" ? ProjectTagConstants.Platform.WORKER : project.targets?.build?.options.platform === "browser" ? ProjectTagConstants.Platform.BROWSER : ProjectTagConstants.Platform.NEUTRAL,
|
|
117
|
+
{ overwrite: false }
|
|
118
|
+
);
|
|
106
119
|
};
|
|
107
120
|
// Annotate the CommonJS export names for ESM import in node:
|
|
108
121
|
0 && (module.exports = {
|