@storm-software/workspace-tools 1.49.13 → 1.49.15

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,27 @@
1
+ ## 1.49.15 (2024-01-24)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Resolved issues with output path formatting ([6b73fc1e](https://github.com/storm-software/storm-ops/commit/6b73fc1e))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
13
+ ## 1.49.14 (2024-01-24)
14
+
15
+
16
+ ### 🩹 Fixes
17
+
18
+ - **workspace-tools:** Cleaned up the `dist` folder structure of tsup build ([a21802ea](https://github.com/storm-software/storm-ops/commit/a21802ea))
19
+
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Patrick Sullivan
24
+
1
25
  ## 1.49.13 (2024-01-24)
2
26
 
3
27
 
package/index.js CHANGED
@@ -132821,6 +132821,7 @@ var runTsupBuild = async (context, config, options) => {
132821
132821
  options.plugins.push(environmentPlugin(stormEnv));
132822
132822
  const getConfigOptions = {
132823
132823
  ...options,
132824
+ main: context.entry,
132824
132825
  define: {
132825
132826
  __STORM_CONFIG: JSON.stringify(stormEnv)
132826
132827
  },
@@ -139434,6 +139435,7 @@ ${externalDependencies.map((dep) => {
139434
139435
  }
139435
139436
  };
139436
139437
  }
139438
+ packageJson.sideEffects ??= false;
139437
139439
  packageJson.funding ??= workspacePackageJson.funding;
139438
139440
  packageJson.types ??= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.d.ts`;
139439
139441
  packageJson.typings ??= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.d.ts`;
@@ -139452,7 +139454,6 @@ ${externalDependencies.map((dep) => {
139452
139454
  }
139453
139455
  packageJson.source ??= `${(0, import_devkit4.joinPathFragments)(distSrc, "index.ts").replaceAll("\\", "/")}`;
139454
139456
  }
139455
- packageJson.sideEffects ??= false;
139456
139457
  packageJson.files ??= ["dist/**/*"];
139457
139458
  if (options.includeSrc === true && !packageJson.files.includes("src")) {
139458
139459
  packageJson.files.push("src/**/*");
@@ -139507,8 +139508,15 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
139507
139508
  );
139508
139509
  }
139509
139510
  Promise.all(
139510
- entryPoints.map(
139511
- (entryPoint) => runTsupBuild(
139511
+ entryPoints.map((entryPoint) => {
139512
+ let outputPath = removeExtension(entryPoint).replace(sourceRoot, "");
139513
+ if (outputPath.startsWith(".")) {
139514
+ outputPath = outputPath.substring(1);
139515
+ }
139516
+ if (outputPath.startsWith("/")) {
139517
+ outputPath = outputPath.substring(1);
139518
+ }
139519
+ return runTsupBuild(
139512
139520
  {
139513
139521
  entry: entryPoint,
139514
139522
  projectRoot,
@@ -139519,13 +139527,13 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
139519
139527
  {
139520
139528
  ...options,
139521
139529
  outputPath: (0, import_devkit4.joinPathFragments)(
139522
- config.workspaceRoot,
139523
139530
  options.outputPath,
139524
- removeExtension(entryPoint).replace(sourceRoot, "").replace(findFileName(entryPoint), "")
139531
+ "dist",
139532
+ outputPath.replace(findFileName(entryPoint), "")
139525
139533
  )
139526
139534
  }
139527
- )
139528
- )
139535
+ );
139536
+ })
139529
139537
  );
139530
139538
  writeSuccess(config, "\u26A1 The Build process has completed successfully");
139531
139539
  return {
@@ -139793,9 +139801,7 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
139793
139801
  var applyDefaultOptions3 = (options) => {
139794
139802
  return {
139795
139803
  ...applyDefaultOptions({ plugins: [], ...options, platform: "node" }),
139796
- transports: [
139797
- /*"pino-pretty", "pino-loki"*/
139798
- ]
139804
+ transports: ["pino-pretty", "pino-loki"]
139799
139805
  };
139800
139806
  };
139801
139807
  var executor_default3 = withRunExecutor(
@@ -139811,7 +139817,7 @@ var executor_default3 = withRunExecutor(
139811
139817
 
139812
139818
  // packages/workspace-tools/src/executors/tsup-browser/get-config.ts
139813
139819
  var import_devkit7 = __toESM(require_devkit());
139814
- var modernBrowserConfig = ({
139820
+ var browserConfig = ({
139815
139821
  entry,
139816
139822
  outDir,
139817
139823
  projectRoot,
@@ -139835,7 +139841,7 @@ var modernBrowserConfig = ({
139835
139841
  minify = false,
139836
139842
  getTransform
139837
139843
  }) => {
139838
- const outputPath = (0, import_devkit7.joinPathFragments)(outDir, "dist", "modern");
139844
+ const outputPath = (0, import_devkit7.joinPathFragments)(outDir, "dist");
139839
139845
  const options = {
139840
139846
  name: "modern",
139841
139847
  entry,
@@ -139892,90 +139898,6 @@ var modernBrowserConfig = ({
139892
139898
  }
139893
139899
  return options;
139894
139900
  };
139895
- var legacyBrowserConfig = ({
139896
- entry,
139897
- outDir,
139898
- projectRoot,
139899
- workspaceRoot,
139900
- tsconfig = "tsconfig.json",
139901
- splitting,
139902
- treeshake,
139903
- debug = false,
139904
- external,
139905
- banner = {},
139906
- platform = "browser",
139907
- verbose = false,
139908
- shims = true,
139909
- apiReport = true,
139910
- docModel = true,
139911
- tsdocMetadata = true,
139912
- metafile = true,
139913
- skipNativeModulesPlugin = false,
139914
- define: define2,
139915
- env: env2,
139916
- plugins,
139917
- generatePackageJson,
139918
- dtsTsConfig,
139919
- minify = false,
139920
- getTransform
139921
- }) => {
139922
- const outputPath = (0, import_devkit7.joinPathFragments)(outDir, "dist", "legacy");
139923
- const options = {
139924
- name: "legacy",
139925
- entry,
139926
- format: ["cjs", "esm", "iife"],
139927
- target: ["es2022"],
139928
- tsconfig,
139929
- splitting,
139930
- generatePackageJson,
139931
- treeshake: treeshake ? {
139932
- preset: "recommended"
139933
- } : false,
139934
- projectRoot,
139935
- workspaceRoot,
139936
- outDir: outputPath,
139937
- silent: !verbose,
139938
- metafile,
139939
- shims,
139940
- external,
139941
- platform,
139942
- banner,
139943
- define: define2,
139944
- env: env2,
139945
- dts: false,
139946
- minify,
139947
- experimentalDts: {
139948
- entry,
139949
- compilerOptions: {
139950
- ...dtsTsConfig,
139951
- options: {
139952
- ...dtsTsConfig.options,
139953
- outDir: outputPath
139954
- }
139955
- }
139956
- },
139957
- apiReport,
139958
- docModel,
139959
- tsdocMetadata,
139960
- sourcemap: debug,
139961
- clean: false,
139962
- skipNativeModulesPlugin,
139963
- tsconfigDecoratorMetadata: true,
139964
- plugins,
139965
- outExtension,
139966
- getTransform
139967
- };
139968
- if (!debug || minify) {
139969
- options.minify = "terser";
139970
- options.terserOptions = {
139971
- compress: true,
139972
- ecma: 2020,
139973
- keep_classnames: true,
139974
- keep_fnames: true
139975
- };
139976
- }
139977
- return options;
139978
- };
139979
139901
 
139980
139902
  // packages/workspace-tools/src/executors/tsup-browser/executor.ts
139981
139903
  var tsupBrowserBuildExecutorFn = (options, context, config) => {
@@ -139993,8 +139915,7 @@ var tsupBrowserBuildExecutorFn = (options, context, config) => {
139993
139915
  ...process.env
139994
139916
  },
139995
139917
  getConfig: {
139996
- "dist/modern": modernBrowserConfig,
139997
- "dist/legacy": legacyBrowserConfig
139918
+ dist: browserConfig
139998
139919
  }
139999
139920
  },
140000
139921
  context,