@storm-software/workspace-tools 1.37.0 → 1.37.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.37.0",
3
+ "version": "1.37.1",
4
4
  "private": false,
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "keywords": [
@@ -116941,10 +116941,10 @@ function modernBrowserConfig({
116941
116941
  dtsTsConfig
116942
116942
  }) {
116943
116943
  let outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist", "modern");
116944
- return {
116944
+ const options = {
116945
116945
  name: "modern",
116946
116946
  entry,
116947
- format: ["cjs", "esm"],
116947
+ format: ["cjs", "esm", "iife"],
116948
116948
  target: [
116949
116949
  "chrome91",
116950
116950
  "firefox90",
@@ -116982,13 +116982,6 @@ function modernBrowserConfig({
116982
116982
  }
116983
116983
  }
116984
116984
  },
116985
- /*minify: debug ? false : "terser",
116986
- terserOptions: {
116987
- compress: true,
116988
- ecma: 2020,
116989
- keep_classnames: true,
116990
- keep_fnames: true
116991
- },*/
116992
116985
  apiReport: false,
116993
116986
  docModel: false,
116994
116987
  tsdocMetadata: false,
@@ -116998,6 +116991,16 @@ function modernBrowserConfig({
116998
116991
  plugins,
116999
116992
  outExtension
117000
116993
  };
116994
+ if (!debug) {
116995
+ options.minify = "terser";
116996
+ options.terserOptions = {
116997
+ compress: true,
116998
+ ecma: 2020,
116999
+ keep_classnames: true,
117000
+ keep_fnames: true
117001
+ };
117002
+ }
117003
+ return options;
117001
117004
  }
117002
117005
  function legacyBrowserConfig({
117003
117006
  entry,
@@ -117023,10 +117026,10 @@ function legacyBrowserConfig({
117023
117026
  dtsTsConfig
117024
117027
  }) {
117025
117028
  let outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist", "legacy");
117026
- return {
117029
+ const options = {
117027
117030
  name: "legacy",
117028
117031
  entry,
117029
- format: ["cjs", "esm"],
117032
+ format: ["cjs", "esm", "iife"],
117030
117033
  target: ["es2022"],
117031
117034
  tsconfig,
117032
117035
  splitting,
@@ -117056,13 +117059,6 @@ function legacyBrowserConfig({
117056
117059
  }
117057
117060
  }
117058
117061
  },
117059
- /*minify: debug ? false : "terser",
117060
- terserOptions: {
117061
- compress: true,
117062
- ecma: 2020,
117063
- keep_classnames: true,
117064
- keep_fnames: true
117065
- },*/
117066
117062
  apiReport,
117067
117063
  docModel,
117068
117064
  tsdocMetadata,
@@ -117072,6 +117068,16 @@ function legacyBrowserConfig({
117072
117068
  plugins,
117073
117069
  outExtension
117074
117070
  };
117071
+ if (!debug) {
117072
+ options.minify = "terser";
117073
+ options.terserOptions = {
117074
+ compress: true,
117075
+ ecma: 2020,
117076
+ keep_classnames: true,
117077
+ keep_fnames: true
117078
+ };
117079
+ }
117080
+ return options;
117075
117081
  }
117076
117082
 
117077
117083
  // packages/workspace-tools/src/executors/tsup-browser/executor.ts
@@ -116941,10 +116941,10 @@ function modernNeutralConfig({
116941
116941
  dtsTsConfig
116942
116942
  }) {
116943
116943
  let outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist", "modern");
116944
- return {
116944
+ const options = {
116945
116945
  name: "modern",
116946
116946
  entry,
116947
- format: ["cjs", "esm"],
116947
+ format: ["cjs", "esm", "iife"],
116948
116948
  target: ["esnext"],
116949
116949
  tsconfig,
116950
116950
  splitting,
@@ -116983,6 +116983,16 @@ function modernNeutralConfig({
116983
116983
  plugins,
116984
116984
  outExtension
116985
116985
  };
116986
+ if (!debug) {
116987
+ options.minify = "terser";
116988
+ options.terserOptions = {
116989
+ compress: true,
116990
+ ecma: 2020,
116991
+ keep_classnames: true,
116992
+ keep_fnames: true
116993
+ };
116994
+ }
116995
+ return options;
116986
116996
  }
116987
116997
  function legacyNeutralConfig({
116988
116998
  entry,
@@ -117008,10 +117018,10 @@ function legacyNeutralConfig({
117008
117018
  dtsTsConfig
117009
117019
  }) {
117010
117020
  let outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist", "legacy");
117011
- return {
117021
+ const options = {
117012
117022
  name: "legacy",
117013
117023
  entry,
117014
- format: ["cjs", "esm"],
117024
+ format: ["cjs", "esm", "iife"],
117015
117025
  target: ["es2022"],
117016
117026
  tsconfig,
117017
117027
  splitting,
@@ -117050,6 +117060,16 @@ function legacyNeutralConfig({
117050
117060
  plugins,
117051
117061
  outExtension
117052
117062
  };
117063
+ if (!debug) {
117064
+ options.minify = "terser";
117065
+ options.terserOptions = {
117066
+ compress: true,
117067
+ ecma: 2020,
117068
+ keep_classnames: true,
117069
+ keep_fnames: true
117070
+ };
117071
+ }
117072
+ return options;
117053
117073
  }
117054
117074
 
117055
117075
  // packages/workspace-tools/src/executors/tsup-neutral/executor.ts