@storm-software/workspace-tools 1.22.2 → 1.23.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 +19 -0
- package/README.md +3 -1
- package/index.js +21584 -18216
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +19115 -15932
- package/src/executors/tsup/get-config.js +39 -42
- package/src/executors/tsup/schema.d.ts +2 -0
- package/src/executors/tsup/schema.json +11 -1
- package/src/executors/tsup-neutral/executor.js +21231 -18048
- package/src/executors/tsup-node/executor.js +21231 -18048
- package/src/generators/config-schema/generator.js +46 -46
- package/src/generators/init/init.js +46 -46
- package/src/generators/node-library/generator.js +2679 -772
- package/src/generators/preset/generator.js +46 -46
- package/src/utils/index.js +1 -1
|
@@ -240,9 +240,9 @@ var require_brace_expansion = __commonJS({
|
|
|
240
240
|
}
|
|
241
241
|
});
|
|
242
242
|
|
|
243
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
243
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._3fg5ubwmljbfz3kpqmuymqissu/node_modules/tsup/dist/chunk-EPAEWGCP.js
|
|
244
244
|
var require_chunk_EPAEWGCP = __commonJS({
|
|
245
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
245
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._3fg5ubwmljbfz3kpqmuymqissu/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
|
|
246
246
|
"use strict";
|
|
247
247
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
248
248
|
var version = "8.0.0";
|
|
@@ -5839,9 +5839,9 @@ var require_dir_glob = __commonJS({
|
|
|
5839
5839
|
}
|
|
5840
5840
|
});
|
|
5841
5841
|
|
|
5842
|
-
// node_modules/.pnpm/ignore@5.
|
|
5842
|
+
// node_modules/.pnpm/ignore@5.3.0/node_modules/ignore/index.js
|
|
5843
5843
|
var require_ignore = __commonJS({
|
|
5844
|
-
"node_modules/.pnpm/ignore@5.
|
|
5844
|
+
"node_modules/.pnpm/ignore@5.3.0/node_modules/ignore/index.js"(exports, module2) {
|
|
5845
5845
|
function makeArray(subject) {
|
|
5846
5846
|
return Array.isArray(subject) ? subject : [subject];
|
|
5847
5847
|
}
|
|
@@ -6549,9 +6549,9 @@ var require_resolve_from = __commonJS({
|
|
|
6549
6549
|
}
|
|
6550
6550
|
});
|
|
6551
6551
|
|
|
6552
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
6552
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._3fg5ubwmljbfz3kpqmuymqissu/node_modules/tsup/dist/chunk-GQ77QZBO.js
|
|
6553
6553
|
var require_chunk_GQ77QZBO = __commonJS({
|
|
6554
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
6554
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._3fg5ubwmljbfz3kpqmuymqissu/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
|
|
6555
6555
|
"use strict";
|
|
6556
6556
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6557
6557
|
function _interopRequireDefault(obj) {
|
|
@@ -6829,9 +6829,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
6829
6829
|
}
|
|
6830
6830
|
});
|
|
6831
6831
|
|
|
6832
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
6832
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._3fg5ubwmljbfz3kpqmuymqissu/node_modules/tsup/dist/chunk-UIX4URMV.js
|
|
6833
6833
|
var require_chunk_UIX4URMV = __commonJS({
|
|
6834
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
6834
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._3fg5ubwmljbfz3kpqmuymqissu/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
|
|
6835
6835
|
"use strict";
|
|
6836
6836
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6837
6837
|
function _interopRequireWildcard(obj) {
|
|
@@ -7765,9 +7765,9 @@ var require_dist2 = __commonJS({
|
|
|
7765
7765
|
}
|
|
7766
7766
|
});
|
|
7767
7767
|
|
|
7768
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
7768
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._3fg5ubwmljbfz3kpqmuymqissu/node_modules/tsup/dist/chunk-7G76EW2R.js
|
|
7769
7769
|
var require_chunk_7G76EW2R = __commonJS({
|
|
7770
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
7770
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._3fg5ubwmljbfz3kpqmuymqissu/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
|
|
7771
7771
|
"use strict";
|
|
7772
7772
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7773
7773
|
function _interopRequireDefault(obj) {
|
|
@@ -61573,9 +61573,9 @@ var require_chokidar = __commonJS({
|
|
|
61573
61573
|
}
|
|
61574
61574
|
});
|
|
61575
61575
|
|
|
61576
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
61576
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._3fg5ubwmljbfz3kpqmuymqissu/node_modules/tsup/dist/index.js
|
|
61577
61577
|
var require_dist5 = __commonJS({
|
|
61578
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1.
|
|
61578
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._3fg5ubwmljbfz3kpqmuymqissu/node_modules/tsup/dist/index.js"(exports) {
|
|
61579
61579
|
"use strict";
|
|
61580
61580
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61581
61581
|
function _interopRequireDefault(obj) {
|
|
@@ -70615,6 +70615,8 @@ function modernConfig({
|
|
|
70615
70615
|
projectRoot,
|
|
70616
70616
|
workspaceRoot,
|
|
70617
70617
|
tsconfig = "tsconfig.json",
|
|
70618
|
+
splitting,
|
|
70619
|
+
treeshake,
|
|
70618
70620
|
debug = false,
|
|
70619
70621
|
external,
|
|
70620
70622
|
banner = {},
|
|
@@ -70643,6 +70645,10 @@ function modernConfig({
|
|
|
70643
70645
|
"esnext"
|
|
70644
70646
|
] : ["esnext", "node18"],
|
|
70645
70647
|
tsconfig,
|
|
70648
|
+
splitting,
|
|
70649
|
+
treeshake: treeshake ? {
|
|
70650
|
+
preset: "recommended"
|
|
70651
|
+
} : false,
|
|
70646
70652
|
projectRoot,
|
|
70647
70653
|
workspaceRoot,
|
|
70648
70654
|
outDir: outputPath,
|
|
@@ -70688,6 +70694,8 @@ function legacyConfig({
|
|
|
70688
70694
|
projectRoot,
|
|
70689
70695
|
workspaceRoot,
|
|
70690
70696
|
tsconfig = "tsconfig.json",
|
|
70697
|
+
splitting,
|
|
70698
|
+
treeshake,
|
|
70691
70699
|
debug = false,
|
|
70692
70700
|
external,
|
|
70693
70701
|
banner = {},
|
|
@@ -70705,6 +70713,10 @@ function legacyConfig({
|
|
|
70705
70713
|
format: platform !== "node" ? ["cjs", "esm", "iife"] : ["cjs", "esm"],
|
|
70706
70714
|
target: ["es2022", "node18"],
|
|
70707
70715
|
tsconfig,
|
|
70716
|
+
splitting,
|
|
70717
|
+
treeshake: treeshake ? {
|
|
70718
|
+
preset: "recommended"
|
|
70719
|
+
} : false,
|
|
70708
70720
|
projectRoot,
|
|
70709
70721
|
workspaceRoot,
|
|
70710
70722
|
outDir: outputPath,
|
|
@@ -70750,6 +70762,8 @@ function workerConfig({
|
|
|
70750
70762
|
projectRoot,
|
|
70751
70763
|
workspaceRoot,
|
|
70752
70764
|
tsconfig = "tsconfig.json",
|
|
70765
|
+
splitting,
|
|
70766
|
+
treeshake,
|
|
70753
70767
|
debug = false,
|
|
70754
70768
|
external,
|
|
70755
70769
|
banner = {},
|
|
@@ -70762,6 +70776,7 @@ function workerConfig({
|
|
|
70762
70776
|
plugins,
|
|
70763
70777
|
dtsTsConfig
|
|
70764
70778
|
}) {
|
|
70779
|
+
let outputPath = (0, import_path2.join)(outDir, "dist");
|
|
70765
70780
|
return {
|
|
70766
70781
|
name: "worker",
|
|
70767
70782
|
entry,
|
|
@@ -70769,9 +70784,13 @@ function workerConfig({
|
|
|
70769
70784
|
target: ["chrome95"],
|
|
70770
70785
|
bundle: true,
|
|
70771
70786
|
tsconfig,
|
|
70787
|
+
splitting,
|
|
70788
|
+
treeshake: treeshake ? {
|
|
70789
|
+
preset: "recommended"
|
|
70790
|
+
} : false,
|
|
70772
70791
|
projectRoot,
|
|
70773
70792
|
workspaceRoot,
|
|
70774
|
-
outDir:
|
|
70793
|
+
outDir: outputPath,
|
|
70775
70794
|
silent: !verbose,
|
|
70776
70795
|
metafile: true,
|
|
70777
70796
|
shims: false,
|
|
@@ -70787,7 +70806,7 @@ function workerConfig({
|
|
|
70787
70806
|
...dtsTsConfig,
|
|
70788
70807
|
options: {
|
|
70789
70808
|
...dtsTsConfig.options,
|
|
70790
|
-
outDir:
|
|
70809
|
+
outDir: outputPath
|
|
70791
70810
|
}
|
|
70792
70811
|
}
|
|
70793
70812
|
},
|
|
@@ -70811,20 +70830,8 @@ function workerConfig({
|
|
|
70811
70830
|
function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
70812
70831
|
outputPath,
|
|
70813
70832
|
tsConfig,
|
|
70814
|
-
debug,
|
|
70815
|
-
banner,
|
|
70816
|
-
platform,
|
|
70817
|
-
external,
|
|
70818
|
-
options,
|
|
70819
70833
|
additionalEntryPoints,
|
|
70820
|
-
|
|
70821
|
-
docModel,
|
|
70822
|
-
tsdocMetadata,
|
|
70823
|
-
define: define2,
|
|
70824
|
-
env,
|
|
70825
|
-
verbose,
|
|
70826
|
-
dtsTsConfig,
|
|
70827
|
-
plugins,
|
|
70834
|
+
platform,
|
|
70828
70835
|
...rest
|
|
70829
70836
|
}) {
|
|
70830
70837
|
const entry = globSync(
|
|
@@ -70848,24 +70855,14 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
70848
70855
|
return ret;
|
|
70849
70856
|
}, {});
|
|
70850
70857
|
const params = {
|
|
70858
|
+
...rest,
|
|
70851
70859
|
entry,
|
|
70852
70860
|
outDir: outputPath,
|
|
70853
|
-
projectRoot,
|
|
70854
|
-
workspaceRoot,
|
|
70855
70861
|
tsconfig: tsConfig,
|
|
70856
|
-
|
|
70857
|
-
|
|
70858
|
-
|
|
70859
|
-
|
|
70860
|
-
verbose,
|
|
70861
|
-
apiReport,
|
|
70862
|
-
docModel,
|
|
70863
|
-
tsdocMetadata,
|
|
70864
|
-
define: define2,
|
|
70865
|
-
env,
|
|
70866
|
-
options,
|
|
70867
|
-
plugins,
|
|
70868
|
-
dtsTsConfig
|
|
70862
|
+
workspaceRoot,
|
|
70863
|
+
projectRoot,
|
|
70864
|
+
sourceRoot,
|
|
70865
|
+
platform
|
|
70869
70866
|
};
|
|
70870
70867
|
if (platform === "worker") {
|
|
70871
70868
|
return (0, import_tsup.defineConfig)(workerConfig(params));
|
|
@@ -69,7 +69,17 @@
|
|
|
69
69
|
"includeSrc": {
|
|
70
70
|
"type": "boolean",
|
|
71
71
|
"description": "Should the source files be added to the distribution folder in an `src` directory.",
|
|
72
|
-
"default":
|
|
72
|
+
"default": true
|
|
73
|
+
},
|
|
74
|
+
"splitting": {
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"description": "Should the build process preform *code-splitting*?",
|
|
77
|
+
"default": true
|
|
78
|
+
},
|
|
79
|
+
"treeshake": {
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"description": "Should the build process *tree-shake* to remove unused code?",
|
|
82
|
+
"default": true
|
|
73
83
|
},
|
|
74
84
|
"debug": {
|
|
75
85
|
"type": "boolean",
|