@storm-software/workspace-tools 1.62.10 → 1.62.11

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## 1.62.11 (2024-02-27)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Resolved issue with formatting of package name in banner ([0b9165bc](https://github.com/storm-software/storm-ops/commit/0b9165bc))
7
+
8
+ - **workspace-tools:** Clean up the URLs displayed in the file banner ([8c596823](https://github.com/storm-software/storm-ops/commit/8c596823))
9
+
10
+
11
+ ### ❤️ Thank You
12
+
13
+ - Patrick Sullivan
14
+
1
15
  ## 1.62.10 (2024-02-27)
2
16
 
3
17
 
package/index.js CHANGED
@@ -391542,9 +391542,9 @@ var require_normalize_options = __commonJS({
391542
391542
  }
391543
391543
  });
391544
391544
 
391545
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-EPAEWGCP.js
391545
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-EPAEWGCP.js
391546
391546
  var require_chunk_EPAEWGCP = __commonJS({
391547
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports2) {
391547
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports2) {
391548
391548
  "use strict";
391549
391549
  Object.defineProperty(exports2, "__esModule", { value: true });
391550
391550
  var version = "8.0.0";
@@ -393191,9 +393191,9 @@ var require_resolve_from = __commonJS({
393191
393191
  }
393192
393192
  });
393193
393193
 
393194
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-GQ77QZBO.js
393194
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-GQ77QZBO.js
393195
393195
  var require_chunk_GQ77QZBO = __commonJS({
393196
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports2) {
393196
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports2) {
393197
393197
  "use strict";
393198
393198
  Object.defineProperty(exports2, "__esModule", { value: true });
393199
393199
  function _interopRequireDefault(obj) {
@@ -393471,9 +393471,9 @@ var require_chunk_GQ77QZBO = __commonJS({
393471
393471
  }
393472
393472
  });
393473
393473
 
393474
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-UIX4URMV.js
393474
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-UIX4URMV.js
393475
393475
  var require_chunk_UIX4URMV = __commonJS({
393476
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports2) {
393476
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports2) {
393477
393477
  "use strict";
393478
393478
  Object.defineProperty(exports2, "__esModule", { value: true });
393479
393479
  function _interopRequireWildcard(obj) {
@@ -396813,9 +396813,9 @@ var require_dist3 = __commonJS({
396813
396813
  }
396814
396814
  });
396815
396815
 
396816
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-7G76EW2R.js
396816
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-7G76EW2R.js
396817
396817
  var require_chunk_7G76EW2R = __commonJS({
396818
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports2) {
396818
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports2) {
396819
396819
  "use strict";
396820
396820
  Object.defineProperty(exports2, "__esModule", { value: true });
396821
396821
  function _interopRequireDefault(obj) {
@@ -443885,7 +443885,7 @@ ${outro}`;
443885
443885
  await promises.mkdir(node_path.dirname(fileName), { recursive: true });
443886
443886
  return promises.writeFile(fileName, outputFile.type === "asset" ? outputFile.source : outputFile.code);
443887
443887
  }
443888
- function defineConfig2(options8) {
443888
+ function defineConfig(options8) {
443889
443889
  return options8;
443890
443890
  }
443891
443891
  exports2.blue = blue;
@@ -443894,7 +443894,7 @@ ${outro}`;
443894
443894
  exports2.createFilter = createFilter;
443895
443895
  exports2.cyan = cyan$1;
443896
443896
  exports2.cyan$1 = cyan;
443897
- exports2.defineConfig = defineConfig2;
443897
+ exports2.defineConfig = defineConfig;
443898
443898
  exports2.ensureArray = ensureArray$1;
443899
443899
  exports2.getAugmentedNamespace = getAugmentedNamespace;
443900
443900
  exports2.getNewArray = getNewArray;
@@ -447898,9 +447898,9 @@ var require_rollup2 = __commonJS({
447898
447898
  }
447899
447899
  });
447900
447900
 
447901
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/index.js
447901
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/index.js
447902
447902
  var require_dist6 = __commonJS({
447903
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/index.js"(exports2) {
447903
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/index.js"(exports2) {
447904
447904
  "use strict";
447905
447905
  Object.defineProperty(exports2, "__esModule", { value: true });
447906
447906
  function _interopRequireDefault(obj) {
@@ -450463,7 +450463,7 @@ var require_dist6 = __commonJS({
450463
450463
  }
450464
450464
  };
450465
450465
  };
450466
- var defineConfig2 = (options8) => options8;
450466
+ var defineConfig = (options8) => options8;
450467
450467
  var isTaskkillCmdProcessNotFoundError = (err) => {
450468
450468
  return process.platform === "win32" && "cmd" in err && "code" in err && typeof err.cmd === "string" && err.cmd.startsWith("taskkill") && err.code === 128;
450469
450469
  };
@@ -450768,7 +450768,7 @@ var require_dist6 = __commonJS({
450768
450768
  );
450769
450769
  }
450770
450770
  exports2.build = build2;
450771
- exports2.defineConfig = defineConfig2;
450771
+ exports2.defineConfig = defineConfig;
450772
450772
  }
450773
450773
  });
450774
450774
 
@@ -477023,7 +477023,6 @@ var environmentPlugin = (data) => ({
477023
477023
  });
477024
477024
 
477025
477025
  // packages/workspace-tools/src/utils/run-tsup-build.ts
477026
- var import_tsup = __toESM(require_dist6());
477027
477026
  var import_typescript = __toESM(require_typescript());
477028
477027
 
477029
477028
  // packages/workspace-tools/src/utils/file-path-utils.ts
@@ -477046,7 +477045,7 @@ function findFileName(filePath) {
477046
477045
  var applyDefaultOptions = (options8) => {
477047
477046
  options8.entry ??= "{sourceRoot}/index.ts";
477048
477047
  options8.outputPath ??= "dist/{projectRoot}";
477049
- options8.tsConfig ??= "tsconfig.json";
477048
+ options8.tsConfig ??= "{projectRoot}/tsconfig.json";
477050
477049
  options8.generatePackageJson ??= true;
477051
477050
  options8.splitting ??= true;
477052
477051
  options8.treeshake ??= true;
@@ -477077,7 +477076,8 @@ var applyDefaultOptions = (options8) => {
477077
477076
  return options8;
477078
477077
  };
477079
477078
  var runTsupBuild = async (context, config, options8) => {
477080
- const { LogLevel, getLogLevel, writeInfo, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
477079
+ const { writeInfo, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
477080
+ const { build: tsup, defineConfig } = await Promise.resolve().then(() => __toESM(require_dist6()));
477081
477081
  const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
477082
477082
  const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
477083
477083
  ret[key2] = options8.env?.[key2];
@@ -477092,7 +477092,6 @@ var runTsupBuild = async (context, config, options8) => {
477092
477092
  options8.plugins?.push(environmentPlugin(stormEnv));
477093
477093
  const getConfigOptions = {
477094
477094
  ...options8,
477095
- main: context.main,
477096
477095
  entry: {
477097
477096
  [removeExtension(
477098
477097
  context.main?.split(context.main?.includes(import_node_path2.sep) ? import_node_path2.sep : context.main?.includes("/") ? "/" : "\\")?.pop()
@@ -477124,13 +477123,14 @@ var runTsupBuild = async (context, config, options8) => {
477124
477123
  )
477125
477124
  ),
477126
477125
  banner: options8.banner ? {
477127
- js: `${options8.banner}
477126
+ js: `
477128
477127
 
477129
- `,
477130
- css: `/*
477131
477128
  ${options8.banner}
477132
477129
 
477130
+ `,
477131
+ css: `/*
477133
477132
 
477133
+ ${options8.banner}
477134
477134
 
477135
477135
  */`
477136
477136
  } : void 0,
@@ -477139,18 +477139,18 @@ ${options8.banner}
477139
477139
  if (options8.getConfig) {
477140
477140
  writeInfo(config, "\u26A1 Running the Build process");
477141
477141
  const getConfigFns = [options8.getConfig];
477142
- const tsupConfig = (0, import_tsup.defineConfig)(
477142
+ const tsupConfig = defineConfig(
477143
477143
  getConfigFns.map(
477144
477144
  (getConfigFn) => getConfig(workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
477145
477145
  )
477146
477146
  );
477147
477147
  if (_isFunction2(tsupConfig)) {
477148
477148
  const tsupOptions = await Promise.resolve(tsupConfig({}));
477149
- await build(tsupOptions, config);
477149
+ await build(tsup, tsupOptions, config);
477150
477150
  } else {
477151
- await build(tsupConfig, config);
477151
+ await build(tsup, tsupConfig, config);
477152
477152
  }
477153
- } else if (getLogLevel(config?.logLevel ?? "debug") >= LogLevel.WARN) {
477153
+ } else {
477154
477154
  writeWarning(
477155
477155
  config,
477156
477156
  "The Build process did not run because no `getConfig` parameter was provided"
@@ -477185,10 +477185,10 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
477185
477185
  }
477186
477186
  return tsConfig;
477187
477187
  }
477188
- var build = async (options8, config) => {
477188
+ var build = async (tsup, options8, config) => {
477189
477189
  const { writeDebug } = await import("@storm-software/config-tools");
477190
477190
  if (Array.isArray(options8)) {
477191
- await Promise.all(options8.map((buildOptions) => build(buildOptions, config)));
477191
+ await Promise.all(options8.map((buildOptions) => build(tsup, buildOptions, config)));
477192
477192
  } else {
477193
477193
  let tsupOptions = options8;
477194
477194
  if (_isFunction2(tsupOptions)) {
@@ -477202,7 +477202,7 @@ ${!_isFunction2(tsupOptions) ? Object.keys(tsupOptions).map(
477202
477202
  ).join("\n") : "<function>"}
477203
477203
  `
477204
477204
  );
477205
- await (0, import_tsup.build)(tsupOptions);
477205
+ await tsup(tsupOptions);
477206
477206
  }
477207
477207
  };
477208
477208
  var _isPrimitive = (value) => {
@@ -489107,10 +489107,6 @@ async function presetGeneratorFn(tree, options8) {
489107
489107
  "@storm-software/linting-tools": "latest",
489108
489108
  "@storm-software/testing-tools": "latest",
489109
489109
  "@storm-software/workspace-tools": "latest",
489110
- "@swc-node/register": "^1.6.8",
489111
- "@swc/cli": "^0.1.62",
489112
- "@swc/core": "^1.3.96",
489113
- "@swc/helpers": "^0.5.3",
489114
489110
  "@types/jest": "^29.5.8",
489115
489111
  "@types/node": "20.8.10",
489116
489112
  "@types/react": "^18.2.37",