@storm-software/workspace-tools 1.49.13 → 1.49.14

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,15 @@
1
+ ## 1.49.14 (2024-01-24)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Cleaned up the `dist` folder structure of tsup build ([a21802ea](https://github.com/storm-software/storm-ops/commit/a21802ea))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
1
13
  ## 1.49.13 (2024-01-24)
2
14
 
3
15
 
package/index.js CHANGED
@@ -139434,6 +139434,7 @@ ${externalDependencies.map((dep) => {
139434
139434
  }
139435
139435
  };
139436
139436
  }
139437
+ packageJson.sideEffects ??= false;
139437
139438
  packageJson.funding ??= workspacePackageJson.funding;
139438
139439
  packageJson.types ??= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.d.ts`;
139439
139440
  packageJson.typings ??= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.d.ts`;
@@ -139452,7 +139453,6 @@ ${externalDependencies.map((dep) => {
139452
139453
  }
139453
139454
  packageJson.source ??= `${(0, import_devkit4.joinPathFragments)(distSrc, "index.ts").replaceAll("\\", "/")}`;
139454
139455
  }
139455
- packageJson.sideEffects ??= false;
139456
139456
  packageJson.files ??= ["dist/**/*"];
139457
139457
  if (options.includeSrc === true && !packageJson.files.includes("src")) {
139458
139458
  packageJson.files.push("src/**/*");
@@ -139519,9 +139519,12 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
139519
139519
  {
139520
139520
  ...options,
139521
139521
  outputPath: (0, import_devkit4.joinPathFragments)(
139522
- config.workspaceRoot,
139523
139522
  options.outputPath,
139524
- removeExtension(entryPoint).replace(sourceRoot, "").replace(findFileName(entryPoint), "")
139523
+ "dist",
139524
+ removeExtension(entryPoint.replace(sourceRoot, "")).replace(
139525
+ findFileName(entryPoint),
139526
+ ""
139527
+ )
139525
139528
  )
139526
139529
  }
139527
139530
  )
@@ -139793,9 +139796,7 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
139793
139796
  var applyDefaultOptions3 = (options) => {
139794
139797
  return {
139795
139798
  ...applyDefaultOptions({ plugins: [], ...options, platform: "node" }),
139796
- transports: [
139797
- /*"pino-pretty", "pino-loki"*/
139798
- ]
139799
+ transports: ["pino-pretty", "pino-loki"]
139799
139800
  };
139800
139801
  };
139801
139802
  var executor_default3 = withRunExecutor(
@@ -139811,7 +139812,7 @@ var executor_default3 = withRunExecutor(
139811
139812
 
139812
139813
  // packages/workspace-tools/src/executors/tsup-browser/get-config.ts
139813
139814
  var import_devkit7 = __toESM(require_devkit());
139814
- var modernBrowserConfig = ({
139815
+ var browserConfig = ({
139815
139816
  entry,
139816
139817
  outDir,
139817
139818
  projectRoot,
@@ -139835,7 +139836,7 @@ var modernBrowserConfig = ({
139835
139836
  minify = false,
139836
139837
  getTransform
139837
139838
  }) => {
139838
- const outputPath = (0, import_devkit7.joinPathFragments)(outDir, "dist", "modern");
139839
+ const outputPath = (0, import_devkit7.joinPathFragments)(outDir, "dist");
139839
139840
  const options = {
139840
139841
  name: "modern",
139841
139842
  entry,
@@ -139892,90 +139893,6 @@ var modernBrowserConfig = ({
139892
139893
  }
139893
139894
  return options;
139894
139895
  };
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
139896
 
139980
139897
  // packages/workspace-tools/src/executors/tsup-browser/executor.ts
139981
139898
  var tsupBrowserBuildExecutorFn = (options, context, config) => {
@@ -139993,8 +139910,7 @@ var tsupBrowserBuildExecutorFn = (options, context, config) => {
139993
139910
  ...process.env
139994
139911
  },
139995
139912
  getConfig: {
139996
- "dist/modern": modernBrowserConfig,
139997
- "dist/legacy": legacyBrowserConfig
139913
+ dist: browserConfig
139998
139914
  }
139999
139915
  },
140000
139916
  context,