@storm-software/workspace-tools 1.76.2 → 1.77.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 (106) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/declarations.d.ts +38 -0
  3. package/index.js +48455 -60362
  4. package/meta.json +1 -1
  5. package/package.json +1 -1
  6. package/packages/build-tools/src/build/index.d.ts +3 -0
  7. package/packages/build-tools/src/build/rolldown.d.ts +20 -0
  8. package/packages/build-tools/src/build/ts-build.d.ts +20 -0
  9. package/packages/build-tools/src/build/unbuild.d.ts +20 -0
  10. package/packages/build-tools/src/cli/index.d.ts +2 -0
  11. package/packages/build-tools/src/config/browser-config.d.ts +2 -0
  12. package/packages/build-tools/src/config/default-config.d.ts +2 -0
  13. package/packages/build-tools/src/config/get-config.d.ts +2 -0
  14. package/packages/build-tools/src/config/get-rolldown-config.d.ts +6 -0
  15. package/packages/build-tools/src/config/get-unbuild-config.d.ts +6 -0
  16. package/packages/build-tools/src/config/index.d.ts +7 -0
  17. package/packages/build-tools/src/config/neutral-config.d.ts +2 -0
  18. package/packages/build-tools/src/config/node-config.d.ts +3 -0
  19. package/packages/build-tools/src/index.d.ts +6 -0
  20. package/packages/build-tools/src/plugins/analyze-plugin.d.ts +4 -0
  21. package/packages/build-tools/src/plugins/index.d.ts +2 -0
  22. package/packages/build-tools/src/plugins/swc-plugin.d.ts +2 -0
  23. package/packages/build-tools/src/types.d.ts +211 -0
  24. package/packages/build-tools/src/utils/apply-default-options.d.ts +6 -0
  25. package/packages/build-tools/src/utils/generate-package-json.d.ts +3 -0
  26. package/packages/build-tools/src/utils/get-entry-points.d.ts +3 -0
  27. package/packages/build-tools/src/utils/get-file-banner.d.ts +8 -0
  28. package/packages/build-tools/src/utils/get-project-deps.d.ts +5 -0
  29. package/packages/build-tools/src/utils/index.d.ts +7 -0
  30. package/packages/build-tools/src/utils/out-extension.d.ts +6 -0
  31. package/packages/build-tools/src/utils/run-tsup-build.d.ts +3 -0
  32. package/packages/build-tools/src/utils/task-graph.d.ts +6 -0
  33. package/packages/config/src/define-config.d.ts +148 -0
  34. package/packages/config/src/index.d.ts +11 -0
  35. package/packages/config/src/schema.d.ts +1610 -0
  36. package/packages/config/src/types.d.ts +23 -0
  37. package/packages/config-tools/src/config-file/get-config-file.d.ts +16 -0
  38. package/packages/config-tools/src/config-file/index.d.ts +1 -0
  39. package/packages/config-tools/src/create-storm-config.d.ts +26 -0
  40. package/packages/config-tools/src/env/get-env.d.ts +15 -0
  41. package/packages/config-tools/src/env/index.d.ts +2 -0
  42. package/packages/config-tools/src/env/set-env.d.ts +14 -0
  43. package/packages/config-tools/src/index.d.ts +13 -0
  44. package/packages/config-tools/src/types.d.ts +33 -0
  45. package/packages/config-tools/src/utilities/apply-workspace-tokens.d.ts +4 -0
  46. package/packages/config-tools/src/utilities/chalk.d.ts +23 -0
  47. package/packages/config-tools/src/utilities/correct-paths.d.ts +1 -0
  48. package/packages/config-tools/src/utilities/file-path-utils.d.ts +2 -0
  49. package/packages/config-tools/src/utilities/find-up.d.ts +4 -0
  50. package/packages/config-tools/src/utilities/find-workspace-root.d.ts +14 -0
  51. package/packages/config-tools/src/utilities/get-default-config.d.ts +15 -0
  52. package/packages/config-tools/src/utilities/get-log-level.d.ts +15 -0
  53. package/packages/config-tools/src/utilities/index.d.ts +10 -0
  54. package/packages/config-tools/src/utilities/logger.d.ts +74 -0
  55. package/packages/config-tools/src/utilities/process-handler.d.ts +4 -0
  56. package/packages/config-tools/src/utilities/run.d.ts +17 -0
  57. package/packages/workspace-tools/index.d.ts +28 -0
  58. package/packages/workspace-tools/src/base/base-executor.d.ts +6 -0
  59. package/packages/workspace-tools/src/base/base-generator.d.ts +4 -0
  60. package/packages/workspace-tools/src/base/index.d.ts +3 -0
  61. package/packages/workspace-tools/src/base/typescript-library-generator.d.ts +20 -0
  62. package/packages/workspace-tools/src/executors/cargo-publish/executor.d.ts +6 -0
  63. package/packages/workspace-tools/src/executors/npm-publish/executor.d.ts +3 -0
  64. package/packages/workspace-tools/src/executors/rolldown/executor.d.ts +11 -0
  65. package/packages/workspace-tools/src/executors/tsup/executor.d.ts +10 -0
  66. package/packages/workspace-tools/src/executors/tsup-browser/executor.d.ts +9 -0
  67. package/packages/workspace-tools/src/executors/tsup-neutral/executor.d.ts +10 -0
  68. package/packages/workspace-tools/src/executors/tsup-node/executor.d.ts +9 -0
  69. package/packages/workspace-tools/src/executors/typia/executor.d.ts +10 -0
  70. package/packages/workspace-tools/src/executors/unbuild/executor.d.ts +11 -0
  71. package/packages/workspace-tools/src/generators/browser-library/generator.d.ts +5 -0
  72. package/packages/workspace-tools/src/generators/config-schema/generator.d.ts +13 -0
  73. package/packages/workspace-tools/src/generators/init/init.d.ts +4 -0
  74. package/packages/workspace-tools/src/generators/neutral-library/generator.d.ts +5 -0
  75. package/packages/workspace-tools/src/generators/node-library/generator.d.ts +5 -0
  76. package/packages/workspace-tools/src/generators/preset/generator.d.ts +5 -0
  77. package/packages/workspace-tools/src/generators/release-version/generator.d.ts +14 -0
  78. package/packages/workspace-tools/src/plugins/rust/cargo-toml.d.ts +4 -0
  79. package/packages/workspace-tools/src/plugins/rust/index.d.ts +1 -0
  80. package/packages/workspace-tools/src/plugins/typescript/index.d.ts +1 -0
  81. package/packages/workspace-tools/src/plugins/typescript/project-config.d.ts +33 -0
  82. package/packages/workspace-tools/src/utils/apply-workspace-tokens.d.ts +8 -0
  83. package/packages/workspace-tools/src/utils/cargo.d.ts +27 -0
  84. package/packages/workspace-tools/src/utils/create-cli-options.d.ts +1 -0
  85. package/packages/workspace-tools/src/utils/get-project-configurations.d.ts +13 -0
  86. package/packages/workspace-tools/src/utils/index.d.ts +8 -0
  87. package/packages/workspace-tools/src/utils/lock-file.d.ts +23 -0
  88. package/packages/workspace-tools/src/utils/run-tsup-build.d.ts +1 -0
  89. package/packages/workspace-tools/src/utils/toml.d.ts +167 -0
  90. package/packages/workspace-tools/src/utils/typia-transform.d.ts +2 -0
  91. package/packages/workspace-tools/src/utils/versions.d.ts +18 -0
  92. package/src/base/index.js +47869 -59778
  93. package/src/executors/rolldown/executor.js +7 -0
  94. package/src/executors/tsup/executor.js +7 -0
  95. package/src/executors/tsup-browser/executor.js +7 -0
  96. package/src/executors/tsup-neutral/executor.js +7 -0
  97. package/src/executors/tsup-node/executor.js +7 -0
  98. package/src/executors/typia/executor.js +7 -0
  99. package/src/executors/unbuild/executor.js +7 -0
  100. package/src/generators/browser-library/generator.js +47869 -59778
  101. package/src/generators/config-schema/generator.js +7 -0
  102. package/src/generators/neutral-library/generator.js +47869 -59778
  103. package/src/generators/node-library/generator.js +47869 -59778
  104. package/src/generators/preset/generator.js +7 -0
  105. package/src/generators/release-version/generator.js +17 -8
  106. package/src/utils/index.js +7 -0
@@ -66706,6 +66706,7 @@ var init_schema = __esm({
66706
66706
  ]).default("debug").describe(
66707
66707
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
66708
66708
  ),
66709
+ cloudflareAccountId: z2.string().trim().nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
66709
66710
  configFile: z2.string().trim().nullable().default(null).describe(
66710
66711
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
66711
66712
  ),
@@ -68961,6 +68962,7 @@ var init_get_env = __esm({
68961
68962
  branch: process.env[`${prefix}BRANCH`],
68962
68963
  preid: process.env[`${prefix}PRE_ID`],
68963
68964
  externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
68965
+ cloudflareAccountId: process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`],
68964
68966
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
68965
68967
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
68966
68968
  ) ? getLogLevelLabel(
@@ -69175,6 +69177,11 @@ var init_set_env = __esm({
69175
69177
  config.externalPackagePatterns
69176
69178
  );
69177
69179
  }
69180
+ if (config.cloudflareAccountId) {
69181
+ process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] = String(
69182
+ config.cloudflareAccountId
69183
+ );
69184
+ }
69178
69185
  if (config.logLevel) {
69179
69186
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
69180
69187
  process.env.LOG_LEVEL = String(config.logLevel);
@@ -66706,6 +66706,7 @@ var init_schema = __esm({
66706
66706
  ]).default("debug").describe(
66707
66707
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
66708
66708
  ),
66709
+ cloudflareAccountId: z2.string().trim().nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
66709
66710
  configFile: z2.string().trim().nullable().default(null).describe(
66710
66711
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
66711
66712
  ),
@@ -68961,6 +68962,7 @@ var init_get_env = __esm({
68961
68962
  branch: process.env[`${prefix}BRANCH`],
68962
68963
  preid: process.env[`${prefix}PRE_ID`],
68963
68964
  externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
68965
+ cloudflareAccountId: process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`],
68964
68966
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
68965
68967
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
68966
68968
  ) ? getLogLevelLabel(
@@ -69175,6 +69177,11 @@ var init_set_env = __esm({
69175
69177
  config.externalPackagePatterns
69176
69178
  );
69177
69179
  }
69180
+ if (config.cloudflareAccountId) {
69181
+ process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] = String(
69182
+ config.cloudflareAccountId
69183
+ );
69184
+ }
69178
69185
  if (config.logLevel) {
69179
69186
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
69180
69187
  process.env.LOG_LEVEL = String(config.logLevel);
@@ -66706,6 +66706,7 @@ var init_schema = __esm({
66706
66706
  ]).default("debug").describe(
66707
66707
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
66708
66708
  ),
66709
+ cloudflareAccountId: z2.string().trim().nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
66709
66710
  configFile: z2.string().trim().nullable().default(null).describe(
66710
66711
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
66711
66712
  ),
@@ -68961,6 +68962,7 @@ var init_get_env = __esm({
68961
68962
  branch: process.env[`${prefix}BRANCH`],
68962
68963
  preid: process.env[`${prefix}PRE_ID`],
68963
68964
  externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
68965
+ cloudflareAccountId: process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`],
68964
68966
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
68965
68967
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
68966
68968
  ) ? getLogLevelLabel(
@@ -69175,6 +69177,11 @@ var init_set_env = __esm({
69175
69177
  config.externalPackagePatterns
69176
69178
  );
69177
69179
  }
69180
+ if (config.cloudflareAccountId) {
69181
+ process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] = String(
69182
+ config.cloudflareAccountId
69183
+ );
69184
+ }
69178
69185
  if (config.logLevel) {
69179
69186
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
69180
69187
  process.env.LOG_LEVEL = String(config.logLevel);
@@ -66706,6 +66706,7 @@ var init_schema = __esm({
66706
66706
  ]).default("debug").describe(
66707
66707
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
66708
66708
  ),
66709
+ cloudflareAccountId: z2.string().trim().nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
66709
66710
  configFile: z2.string().trim().nullable().default(null).describe(
66710
66711
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
66711
66712
  ),
@@ -68961,6 +68962,7 @@ var init_get_env = __esm({
68961
68962
  branch: process.env[`${prefix}BRANCH`],
68962
68963
  preid: process.env[`${prefix}PRE_ID`],
68963
68964
  externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
68965
+ cloudflareAccountId: process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`],
68964
68966
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
68965
68967
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
68966
68968
  ) ? getLogLevelLabel(
@@ -69175,6 +69177,11 @@ var init_set_env = __esm({
69175
69177
  config.externalPackagePatterns
69176
69178
  );
69177
69179
  }
69180
+ if (config.cloudflareAccountId) {
69181
+ process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] = String(
69182
+ config.cloudflareAccountId
69183
+ );
69184
+ }
69178
69185
  if (config.logLevel) {
69179
69186
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
69180
69187
  process.env.LOG_LEVEL = String(config.logLevel);
@@ -66706,6 +66706,7 @@ var init_schema = __esm({
66706
66706
  ]).default("debug").describe(
66707
66707
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
66708
66708
  ),
66709
+ cloudflareAccountId: z2.string().trim().nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
66709
66710
  configFile: z2.string().trim().nullable().default(null).describe(
66710
66711
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
66711
66712
  ),
@@ -68961,6 +68962,7 @@ var init_get_env = __esm({
68961
68962
  branch: process.env[`${prefix}BRANCH`],
68962
68963
  preid: process.env[`${prefix}PRE_ID`],
68963
68964
  externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
68965
+ cloudflareAccountId: process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`],
68964
68966
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
68965
68967
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
68966
68968
  ) ? getLogLevelLabel(
@@ -69175,6 +69177,11 @@ var init_set_env = __esm({
69175
69177
  config.externalPackagePatterns
69176
69178
  );
69177
69179
  }
69180
+ if (config.cloudflareAccountId) {
69181
+ process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] = String(
69182
+ config.cloudflareAccountId
69183
+ );
69184
+ }
69178
69185
  if (config.logLevel) {
69179
69186
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
69180
69187
  process.env.LOG_LEVEL = String(config.logLevel);
@@ -68819,6 +68819,7 @@ var init_schema = __esm({
68819
68819
  ]).default("debug").describe(
68820
68820
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
68821
68821
  ),
68822
+ cloudflareAccountId: z2.string().trim().nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
68822
68823
  configFile: z2.string().trim().nullable().default(null).describe(
68823
68824
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
68824
68825
  ),
@@ -71074,6 +71075,7 @@ var init_get_env = __esm({
71074
71075
  branch: process.env[`${prefix}BRANCH`],
71075
71076
  preid: process.env[`${prefix}PRE_ID`],
71076
71077
  externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
71078
+ cloudflareAccountId: process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`],
71077
71079
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
71078
71080
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
71079
71081
  ) ? getLogLevelLabel(
@@ -71288,6 +71290,11 @@ var init_set_env = __esm({
71288
71290
  config.externalPackagePatterns
71289
71291
  );
71290
71292
  }
71293
+ if (config.cloudflareAccountId) {
71294
+ process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] = String(
71295
+ config.cloudflareAccountId
71296
+ );
71297
+ }
71291
71298
  if (config.logLevel) {
71292
71299
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
71293
71300
  process.env.LOG_LEVEL = String(config.logLevel);
@@ -66706,6 +66706,7 @@ var init_schema = __esm({
66706
66706
  ]).default("debug").describe(
66707
66707
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
66708
66708
  ),
66709
+ cloudflareAccountId: z2.string().trim().nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
66709
66710
  configFile: z2.string().trim().nullable().default(null).describe(
66710
66711
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
66711
66712
  ),
@@ -68961,6 +68962,7 @@ var init_get_env = __esm({
68961
68962
  branch: process.env[`${prefix}BRANCH`],
68962
68963
  preid: process.env[`${prefix}PRE_ID`],
68963
68964
  externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
68965
+ cloudflareAccountId: process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`],
68964
68966
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
68965
68967
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
68966
68968
  ) ? getLogLevelLabel(
@@ -69175,6 +69177,11 @@ var init_set_env = __esm({
69175
69177
  config.externalPackagePatterns
69176
69178
  );
69177
69179
  }
69180
+ if (config.cloudflareAccountId) {
69181
+ process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] = String(
69182
+ config.cloudflareAccountId
69183
+ );
69184
+ }
69178
69185
  if (config.logLevel) {
69179
69186
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
69180
69187
  process.env.LOG_LEVEL = String(config.logLevel);