@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.
Files changed (37) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/index.js +25 -19
  3. package/meta.json +178 -158
  4. package/package.json +1 -1
  5. package/src/base/base-executor.js +13 -13
  6. package/src/base/base-generator.js +13 -13
  7. package/src/base/index.js +17 -17
  8. package/src/base/typescript-library-generator.d.ts +2 -1
  9. package/src/base/typescript-library-generator.js +4 -4
  10. package/src/executors/cargo-build/executor.js +13 -13
  11. package/src/executors/cargo-check/executor.js +13 -13
  12. package/src/executors/cargo-clippy/executor.js +13 -13
  13. package/src/executors/cargo-doc/executor.js +13 -13
  14. package/src/executors/cargo-format/executor.js +13 -13
  15. package/src/executors/clean-package/executor.js +13 -13
  16. package/src/executors/rolldown/executor.js +13 -13
  17. package/src/executors/rollup/executor.js +13 -13
  18. package/src/executors/size-limit/executor.js +13 -13
  19. package/src/executors/tsup/executor.js +13 -13
  20. package/src/executors/tsup-browser/executor.js +13 -13
  21. package/src/executors/tsup-neutral/executor.js +13 -13
  22. package/src/executors/tsup-node/executor.js +13 -13
  23. package/src/executors/typia/executor.js +13 -13
  24. package/src/executors/unbuild/executor.js +13 -13
  25. package/src/generators/browser-library/generator.d.ts +2 -1
  26. package/src/generators/browser-library/generator.js +19 -19
  27. package/src/generators/config-schema/generator.js +13 -13
  28. package/src/generators/neutral-library/generator.d.ts +2 -1
  29. package/src/generators/neutral-library/generator.js +19 -19
  30. package/src/generators/node-library/generator.d.ts +2 -1
  31. package/src/generators/node-library/generator.js +19 -19
  32. package/src/generators/preset/generator.js +13 -13
  33. package/src/generators/release-version/generator.js +13 -13
  34. package/src/plugins/rust/index.js +6 -0
  35. package/src/plugins/typescript/index.js +6 -0
  36. package/src/utils/index.js +19 -13
  37. package/src/utils/project-tags.js +6 -0
@@ -151,6 +151,12 @@ var setDefaultProjectTags = (project) => {
151
151
  project.targets && Object.keys(project.targets).includes("clean-package") ? ProjectTagConstants.DistStyle.CLEAN : ProjectTagConstants.DistStyle.NORMAL,
152
152
  { overwrite: true }
153
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
+ );
154
160
  };
155
161
 
156
162
  // packages/workspace-tools/src/plugins/rust/cargo-toml.ts
@@ -114,6 +114,12 @@ var setDefaultProjectTags = (project) => {
114
114
  project.targets && Object.keys(project.targets).includes("clean-package") ? ProjectTagConstants.DistStyle.CLEAN : ProjectTagConstants.DistStyle.NORMAL,
115
115
  { overwrite: true }
116
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
+ );
117
123
  };
118
124
 
119
125
  // packages/workspace-tools/src/plugins/typescript/project-config.ts
@@ -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
- env: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
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("pnpm").describe("The package manager used by the repository"),
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 2.0",
66533
+ license: "Apache-2.0",
66533
66534
  homepage: "https://stormsoftware.com",
66534
- owner: "@storm-software/development",
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: "npm",
66539
+ packageManager: "pnpm",
66540
66540
  timezone: "America/New_York",
66541
66541
  locale: "en-US",
66542
- env: "production",
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
- env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
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.env) {
67272
- process.env[`${prefix}ENV`] = config.env;
67273
- process.env.NODE_ENV = config.env;
67274
- process.env.ENVIRONMENT = config.env;
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)) {
@@ -91307,6 +91307,12 @@ var setDefaultProjectTags = (project) => {
91307
91307
  project.targets && Object.keys(project.targets).includes("clean-package") ? ProjectTagConstants.DistStyle.CLEAN : ProjectTagConstants.DistStyle.NORMAL,
91308
91308
  { overwrite: true }
91309
91309
  );
91310
+ addProjectTag(
91311
+ project,
91312
+ ProjectTagConstants.Platform.TAG_ID,
91313
+ 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,
91314
+ { overwrite: false }
91315
+ );
91310
91316
  };
91311
91317
 
91312
91318
  // node_modules/.pnpm/@ltd+j-toml@1.38.0/node_modules/@ltd/j-toml/index.mjs
@@ -110,6 +110,12 @@ var setDefaultProjectTags = (project) => {
110
110
  project.targets && Object.keys(project.targets).includes("clean-package") ? ProjectTagConstants.DistStyle.CLEAN : ProjectTagConstants.DistStyle.NORMAL,
111
111
  { overwrite: true }
112
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
+ );
113
119
  };
114
120
  // Annotate the CommonJS export names for ESM import in node:
115
121
  0 && (module.exports = {