@storm-software/workspace-tools 1.36.7 → 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/CHANGELOG.md +14 -0
- package/index.js +1491 -1597
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +2 -1
- package/src/executors/tsup/executor.js +3 -1
- package/src/executors/tsup/schema.d.ts +1 -0
- package/src/executors/tsup/schema.json +8 -0
- package/src/executors/tsup-browser/executor.js +25 -17
- package/src/executors/tsup-neutral/executor.js +25 -3
- package/src/executors/tsup-node/executor.js +1470 -1596
package/package.json
CHANGED
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
|
|
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:
|
|
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 ??= [];
|
|
@@ -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:
|
|
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 ??= [];
|
|
@@ -116939,7 +116941,7 @@ function modernBrowserConfig({
|
|
|
116939
116941
|
dtsTsConfig
|
|
116940
116942
|
}) {
|
|
116941
116943
|
let outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist", "modern");
|
|
116942
|
-
|
|
116944
|
+
const options = {
|
|
116943
116945
|
name: "modern",
|
|
116944
116946
|
entry,
|
|
116945
116947
|
format: ["cjs", "esm", "iife"],
|
|
@@ -116980,13 +116982,6 @@ function modernBrowserConfig({
|
|
|
116980
116982
|
}
|
|
116981
116983
|
}
|
|
116982
116984
|
},
|
|
116983
|
-
/*minify: debug ? false : "terser",
|
|
116984
|
-
terserOptions: {
|
|
116985
|
-
compress: true,
|
|
116986
|
-
ecma: 2020,
|
|
116987
|
-
keep_classnames: true,
|
|
116988
|
-
keep_fnames: true
|
|
116989
|
-
},*/
|
|
116990
116985
|
apiReport: false,
|
|
116991
116986
|
docModel: false,
|
|
116992
116987
|
tsdocMetadata: false,
|
|
@@ -116996,6 +116991,16 @@ function modernBrowserConfig({
|
|
|
116996
116991
|
plugins,
|
|
116997
116992
|
outExtension
|
|
116998
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;
|
|
116999
117004
|
}
|
|
117000
117005
|
function legacyBrowserConfig({
|
|
117001
117006
|
entry,
|
|
@@ -117021,7 +117026,7 @@ function legacyBrowserConfig({
|
|
|
117021
117026
|
dtsTsConfig
|
|
117022
117027
|
}) {
|
|
117023
117028
|
let outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist", "legacy");
|
|
117024
|
-
|
|
117029
|
+
const options = {
|
|
117025
117030
|
name: "legacy",
|
|
117026
117031
|
entry,
|
|
117027
117032
|
format: ["cjs", "esm", "iife"],
|
|
@@ -117054,13 +117059,6 @@ function legacyBrowserConfig({
|
|
|
117054
117059
|
}
|
|
117055
117060
|
}
|
|
117056
117061
|
},
|
|
117057
|
-
/*minify: debug ? false : "terser",
|
|
117058
|
-
terserOptions: {
|
|
117059
|
-
compress: true,
|
|
117060
|
-
ecma: 2020,
|
|
117061
|
-
keep_classnames: true,
|
|
117062
|
-
keep_fnames: true
|
|
117063
|
-
},*/
|
|
117064
117062
|
apiReport,
|
|
117065
117063
|
docModel,
|
|
117066
117064
|
tsdocMetadata,
|
|
@@ -117070,6 +117068,16 @@ function legacyBrowserConfig({
|
|
|
117070
117068
|
plugins,
|
|
117071
117069
|
outExtension
|
|
117072
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;
|
|
117073
117081
|
}
|
|
117074
117082
|
|
|
117075
117083
|
// packages/workspace-tools/src/executors/tsup-browser/executor.ts
|
|
@@ -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:
|
|
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 ??= [];
|
|
@@ -116939,7 +116941,7 @@ function modernNeutralConfig({
|
|
|
116939
116941
|
dtsTsConfig
|
|
116940
116942
|
}) {
|
|
116941
116943
|
let outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist", "modern");
|
|
116942
|
-
|
|
116944
|
+
const options = {
|
|
116943
116945
|
name: "modern",
|
|
116944
116946
|
entry,
|
|
116945
116947
|
format: ["cjs", "esm", "iife"],
|
|
@@ -116981,6 +116983,16 @@ function modernNeutralConfig({
|
|
|
116981
116983
|
plugins,
|
|
116982
116984
|
outExtension
|
|
116983
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;
|
|
116984
116996
|
}
|
|
116985
116997
|
function legacyNeutralConfig({
|
|
116986
116998
|
entry,
|
|
@@ -117006,7 +117018,7 @@ function legacyNeutralConfig({
|
|
|
117006
117018
|
dtsTsConfig
|
|
117007
117019
|
}) {
|
|
117008
117020
|
let outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist", "legacy");
|
|
117009
|
-
|
|
117021
|
+
const options = {
|
|
117010
117022
|
name: "legacy",
|
|
117011
117023
|
entry,
|
|
117012
117024
|
format: ["cjs", "esm", "iife"],
|
|
@@ -117048,6 +117060,16 @@ function legacyNeutralConfig({
|
|
|
117048
117060
|
plugins,
|
|
117049
117061
|
outExtension
|
|
117050
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;
|
|
117051
117073
|
}
|
|
117052
117074
|
|
|
117053
117075
|
// packages/workspace-tools/src/executors/tsup-neutral/executor.ts
|