@storm-software/workspace-tools 1.36.7 → 1.37.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.36.7",
3
+ "version": "1.37.0",
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": [
package/src/base/index.js CHANGED
@@ -47860,6 +47860,7 @@ function defaultConfig({
47860
47860
  tsconfig = "tsconfig.json",
47861
47861
  splitting,
47862
47862
  treeshake,
47863
+ format = ["cjs", "esm"],
47863
47864
  debug = false,
47864
47865
  shims = true,
47865
47866
  external,
@@ -47878,7 +47879,7 @@ function defaultConfig({
47878
47879
  return {
47879
47880
  name: "default",
47880
47881
  entry,
47881
- format: platform !== "node" ? ["cjs", "esm", "iife"] : ["cjs", "esm"],
47882
+ format,
47882
47883
  target: platform !== "node" ? [
47883
47884
  "chrome91",
47884
47885
  "firefox90",
@@ -116252,6 +116252,7 @@ function defaultConfig({
116252
116252
  tsconfig = "tsconfig.json",
116253
116253
  splitting,
116254
116254
  treeshake,
116255
+ format: format2 = ["cjs", "esm"],
116255
116256
  debug = false,
116256
116257
  shims = true,
116257
116258
  external,
@@ -116270,7 +116271,7 @@ function defaultConfig({
116270
116271
  return {
116271
116272
  name: "default",
116272
116273
  entry,
116273
- format: platform !== "node" ? ["cjs", "esm", "iife"] : ["cjs", "esm"],
116274
+ format: format2,
116274
116275
  target: platform !== "node" ? [
116275
116276
  "chrome91",
116276
116277
  "firefox90",
@@ -116840,6 +116841,7 @@ var applyDefaultOptions = (options) => {
116840
116841
  options.splitting ??= true;
116841
116842
  options.treeshake ??= true;
116842
116843
  options.platform ??= "neutral";
116844
+ options.format ??= ["cjs", "esm"];
116843
116845
  options.verbose ??= false;
116844
116846
  options.external ??= [];
116845
116847
  options.additionalEntryPoints ??= [];
@@ -41,4 +41,5 @@ export type TsupExecutorSchema = Omit<
41
41
  getConfig:
42
42
  | Record<string, (params: GetConfigParams) => Options>
43
43
  | ((params: GetConfigParams) => Options);
44
+ format?: string[];
44
45
  };
@@ -91,6 +91,14 @@
91
91
  "description": "Should the build process *tree-shake* to remove unused code?",
92
92
  "default": true
93
93
  },
94
+ "format": {
95
+ "type": "array",
96
+ "description": "The output format for the generated JavaScript files. There are currently three possible values that can be configured: iife, cjs, and esm.",
97
+ "default": ["cjs", "esm"],
98
+ "items": {
99
+ "type": "string"
100
+ }
101
+ },
94
102
  "debug": {
95
103
  "type": "boolean",
96
104
  "description": "Should output be unminified with source mappings.",
@@ -116283,6 +116283,7 @@ function defaultConfig({
116283
116283
  tsconfig = "tsconfig.json",
116284
116284
  splitting,
116285
116285
  treeshake,
116286
+ format: format2 = ["cjs", "esm"],
116286
116287
  debug = false,
116287
116288
  shims = true,
116288
116289
  external,
@@ -116301,7 +116302,7 @@ function defaultConfig({
116301
116302
  return {
116302
116303
  name: "default",
116303
116304
  entry,
116304
- format: platform !== "node" ? ["cjs", "esm", "iife"] : ["cjs", "esm"],
116305
+ format: format2,
116305
116306
  target: platform !== "node" ? [
116306
116307
  "chrome91",
116307
116308
  "firefox90",
@@ -116871,6 +116872,7 @@ var applyDefaultOptions = (options) => {
116871
116872
  options.splitting ??= true;
116872
116873
  options.treeshake ??= true;
116873
116874
  options.platform ??= "neutral";
116875
+ options.format ??= ["cjs", "esm"];
116874
116876
  options.verbose ??= false;
116875
116877
  options.external ??= [];
116876
116878
  options.additionalEntryPoints ??= [];
@@ -116942,7 +116944,7 @@ function modernBrowserConfig({
116942
116944
  return {
116943
116945
  name: "modern",
116944
116946
  entry,
116945
- format: ["cjs", "esm", "iife"],
116947
+ format: ["cjs", "esm"],
116946
116948
  target: [
116947
116949
  "chrome91",
116948
116950
  "firefox90",
@@ -117024,7 +117026,7 @@ function legacyBrowserConfig({
117024
117026
  return {
117025
117027
  name: "legacy",
117026
117028
  entry,
117027
- format: ["cjs", "esm", "iife"],
117029
+ format: ["cjs", "esm"],
117028
117030
  target: ["es2022"],
117029
117031
  tsconfig,
117030
117032
  splitting,
@@ -116283,6 +116283,7 @@ function defaultConfig({
116283
116283
  tsconfig = "tsconfig.json",
116284
116284
  splitting,
116285
116285
  treeshake,
116286
+ format: format2 = ["cjs", "esm"],
116286
116287
  debug = false,
116287
116288
  shims = true,
116288
116289
  external,
@@ -116301,7 +116302,7 @@ function defaultConfig({
116301
116302
  return {
116302
116303
  name: "default",
116303
116304
  entry,
116304
- format: platform !== "node" ? ["cjs", "esm", "iife"] : ["cjs", "esm"],
116305
+ format: format2,
116305
116306
  target: platform !== "node" ? [
116306
116307
  "chrome91",
116307
116308
  "firefox90",
@@ -116871,6 +116872,7 @@ var applyDefaultOptions = (options) => {
116871
116872
  options.splitting ??= true;
116872
116873
  options.treeshake ??= true;
116873
116874
  options.platform ??= "neutral";
116875
+ options.format ??= ["cjs", "esm"];
116874
116876
  options.verbose ??= false;
116875
116877
  options.external ??= [];
116876
116878
  options.additionalEntryPoints ??= [];
@@ -116942,7 +116944,7 @@ function modernNeutralConfig({
116942
116944
  return {
116943
116945
  name: "modern",
116944
116946
  entry,
116945
- format: ["cjs", "esm", "iife"],
116947
+ format: ["cjs", "esm"],
116946
116948
  target: ["esnext"],
116947
116949
  tsconfig,
116948
116950
  splitting,
@@ -117009,7 +117011,7 @@ function legacyNeutralConfig({
117009
117011
  return {
117010
117012
  name: "legacy",
117011
117013
  entry,
117012
- format: ["cjs", "esm", "iife"],
117014
+ format: ["cjs", "esm"],
117013
117015
  target: ["es2022"],
117014
117016
  tsconfig,
117015
117017
  splitting,
@@ -116413,6 +116413,7 @@ function defaultConfig({
116413
116413
  tsconfig = "tsconfig.json",
116414
116414
  splitting,
116415
116415
  treeshake,
116416
+ format: format2 = ["cjs", "esm"],
116416
116417
  debug = false,
116417
116418
  shims = true,
116418
116419
  external,
@@ -116431,7 +116432,7 @@ function defaultConfig({
116431
116432
  return {
116432
116433
  name: "default",
116433
116434
  entry,
116434
- format: platform !== "node" ? ["cjs", "esm", "iife"] : ["cjs", "esm"],
116435
+ format: format2,
116435
116436
  target: platform !== "node" ? [
116436
116437
  "chrome91",
116437
116438
  "firefox90",
@@ -117001,6 +117002,7 @@ var applyDefaultOptions = (options) => {
117001
117002
  options.splitting ??= true;
117002
117003
  options.treeshake ??= true;
117003
117004
  options.platform ??= "neutral";
117005
+ options.format ??= ["cjs", "esm"];
117004
117006
  options.verbose ??= false;
117005
117007
  options.external ??= [];
117006
117008
  options.additionalEntryPoints ??= [];