@storm-software/workspace-tools 1.36.2 → 1.36.4
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 +29 -23
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +16 -10
- package/src/executors/tsup-browser/executor.js +24 -18
- package/src/executors/tsup-neutral/executor.js +24 -18
- package/src/executors/tsup-node/executor.js +21 -15
package/package.json
CHANGED
|
@@ -117019,7 +117019,7 @@ ${externalDependencies.map((dep) => {
|
|
|
117019
117019
|
console.log(JSON.stringify(options.getConfig));
|
|
117020
117020
|
const distPaths = !options?.getConfig || _isFunction(options.getConfig) ? [""] : Object.keys(options.getConfig).map((key) => `${key}/`);
|
|
117021
117021
|
packageJson.type = "module";
|
|
117022
|
-
if (distPaths.length >
|
|
117022
|
+
if (distPaths.length > 0) {
|
|
117023
117023
|
packageJson.exports ??= {
|
|
117024
117024
|
".": {
|
|
117025
117025
|
import: {
|
|
@@ -117200,16 +117200,22 @@ ${options.banner}
|
|
|
117200
117200
|
outputPath: options.outputPath,
|
|
117201
117201
|
entry
|
|
117202
117202
|
};
|
|
117203
|
-
|
|
117204
|
-
|
|
117205
|
-
|
|
117206
|
-
(
|
|
117207
|
-
|
|
117208
|
-
|
|
117209
|
-
|
|
117210
|
-
|
|
117203
|
+
if (options.getConfig) {
|
|
117204
|
+
const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
|
|
117205
|
+
const config = (0, import_tsup.defineConfig)(
|
|
117206
|
+
getConfigFns.map(
|
|
117207
|
+
(getConfigFn) => getConfig(context.root, projectRoot, getConfigFn, getConfigOptions)
|
|
117208
|
+
)
|
|
117209
|
+
);
|
|
117210
|
+
if (_isFunction(config)) {
|
|
117211
|
+
await build(await Promise.resolve(config({})));
|
|
117212
|
+
} else {
|
|
117213
|
+
await build(config);
|
|
117214
|
+
}
|
|
117211
117215
|
} else {
|
|
117212
|
-
|
|
117216
|
+
console.log(
|
|
117217
|
+
"The Build process did not run because no `getConfig` parameter was provided"
|
|
117218
|
+
);
|
|
117213
117219
|
}
|
|
117214
117220
|
console.log("\u26A1 The Build process has completed successfully");
|
|
117215
117221
|
return {
|
|
@@ -106218,7 +106218,7 @@ var require_dist6 = __commonJS({
|
|
|
106218
106218
|
var executor_exports = {};
|
|
106219
106219
|
__export(executor_exports, {
|
|
106220
106220
|
default: () => executor_default2,
|
|
106221
|
-
|
|
106221
|
+
tsupBrowserBuildExecutorFn: () => tsupBrowserBuildExecutorFn
|
|
106222
106222
|
});
|
|
106223
106223
|
module.exports = __toCommonJS(executor_exports);
|
|
106224
106224
|
|
|
@@ -117050,7 +117050,7 @@ ${externalDependencies.map((dep) => {
|
|
|
117050
117050
|
console.log(JSON.stringify(options.getConfig));
|
|
117051
117051
|
const distPaths = !options?.getConfig || _isFunction(options.getConfig) ? [""] : Object.keys(options.getConfig).map((key) => `${key}/`);
|
|
117052
117052
|
packageJson.type = "module";
|
|
117053
|
-
if (distPaths.length >
|
|
117053
|
+
if (distPaths.length > 0) {
|
|
117054
117054
|
packageJson.exports ??= {
|
|
117055
117055
|
".": {
|
|
117056
117056
|
import: {
|
|
@@ -117231,16 +117231,22 @@ ${options.banner}
|
|
|
117231
117231
|
outputPath: options.outputPath,
|
|
117232
117232
|
entry
|
|
117233
117233
|
};
|
|
117234
|
-
|
|
117235
|
-
|
|
117236
|
-
|
|
117237
|
-
(
|
|
117238
|
-
|
|
117239
|
-
|
|
117240
|
-
|
|
117241
|
-
|
|
117234
|
+
if (options.getConfig) {
|
|
117235
|
+
const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
|
|
117236
|
+
const config = (0, import_tsup.defineConfig)(
|
|
117237
|
+
getConfigFns.map(
|
|
117238
|
+
(getConfigFn) => getConfig(context.root, projectRoot, getConfigFn, getConfigOptions)
|
|
117239
|
+
)
|
|
117240
|
+
);
|
|
117241
|
+
if (_isFunction(config)) {
|
|
117242
|
+
await build(await Promise.resolve(config({})));
|
|
117243
|
+
} else {
|
|
117244
|
+
await build(config);
|
|
117245
|
+
}
|
|
117242
117246
|
} else {
|
|
117243
|
-
|
|
117247
|
+
console.log(
|
|
117248
|
+
"The Build process did not run because no `getConfig` parameter was provided"
|
|
117249
|
+
);
|
|
117244
117250
|
}
|
|
117245
117251
|
console.log("\u26A1 The Build process has completed successfully");
|
|
117246
117252
|
return {
|
|
@@ -117501,12 +117507,16 @@ function legacyBrowserConfig({
|
|
|
117501
117507
|
}
|
|
117502
117508
|
|
|
117503
117509
|
// packages/workspace-tools/src/executors/tsup-browser/executor.ts
|
|
117504
|
-
var
|
|
117510
|
+
var tsupBrowserBuildExecutorFn = (options, context, config) => {
|
|
117505
117511
|
if (options.transports && Array.isArray(options.transports) && options.transports.length > 0) {
|
|
117506
117512
|
}
|
|
117507
117513
|
return tsupExecutorFn(
|
|
117508
117514
|
{
|
|
117509
117515
|
...options,
|
|
117516
|
+
getConfig: {
|
|
117517
|
+
"dist/modern": modernBrowserConfig,
|
|
117518
|
+
"dist/legacy": legacyBrowserConfig
|
|
117519
|
+
},
|
|
117510
117520
|
platform: "browser",
|
|
117511
117521
|
banner: getFileBanner(
|
|
117512
117522
|
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
|
|
@@ -117526,16 +117536,12 @@ var tsNodeBuildExecutorFn = (options, context, config) => {
|
|
|
117526
117536
|
var applyDefaultOptions2 = (options) => {
|
|
117527
117537
|
return {
|
|
117528
117538
|
...applyDefaultOptions({ plugins: [], ...options, platform: "browser" }),
|
|
117529
|
-
getConfig: {
|
|
117530
|
-
"dist/modern": modernBrowserConfig,
|
|
117531
|
-
"dist/legacy": legacyBrowserConfig
|
|
117532
|
-
},
|
|
117533
117539
|
transports: ["pino-pretty"]
|
|
117534
117540
|
};
|
|
117535
117541
|
};
|
|
117536
117542
|
var executor_default2 = withRunExecutor(
|
|
117537
117543
|
"TypeScript Build (Browser Platforms)",
|
|
117538
|
-
|
|
117544
|
+
tsupBrowserBuildExecutorFn,
|
|
117539
117545
|
{
|
|
117540
117546
|
skipReadingConfig: false,
|
|
117541
117547
|
hooks: {
|
|
@@ -117545,7 +117551,7 @@ var executor_default2 = withRunExecutor(
|
|
|
117545
117551
|
);
|
|
117546
117552
|
// Annotate the CommonJS export names for ESM import in node:
|
|
117547
117553
|
0 && (module.exports = {
|
|
117548
|
-
|
|
117554
|
+
tsupBrowserBuildExecutorFn
|
|
117549
117555
|
});
|
|
117550
117556
|
/*! Bundled license information:
|
|
117551
117557
|
|
|
@@ -106218,7 +106218,7 @@ var require_dist6 = __commonJS({
|
|
|
106218
106218
|
var executor_exports = {};
|
|
106219
106219
|
__export(executor_exports, {
|
|
106220
106220
|
default: () => executor_default2,
|
|
106221
|
-
|
|
106221
|
+
tsupNeutralBuildExecutorFn: () => tsupNeutralBuildExecutorFn
|
|
106222
106222
|
});
|
|
106223
106223
|
module.exports = __toCommonJS(executor_exports);
|
|
106224
106224
|
|
|
@@ -117050,7 +117050,7 @@ ${externalDependencies.map((dep) => {
|
|
|
117050
117050
|
console.log(JSON.stringify(options.getConfig));
|
|
117051
117051
|
const distPaths = !options?.getConfig || _isFunction(options.getConfig) ? [""] : Object.keys(options.getConfig).map((key) => `${key}/`);
|
|
117052
117052
|
packageJson.type = "module";
|
|
117053
|
-
if (distPaths.length >
|
|
117053
|
+
if (distPaths.length > 0) {
|
|
117054
117054
|
packageJson.exports ??= {
|
|
117055
117055
|
".": {
|
|
117056
117056
|
import: {
|
|
@@ -117231,16 +117231,22 @@ ${options.banner}
|
|
|
117231
117231
|
outputPath: options.outputPath,
|
|
117232
117232
|
entry
|
|
117233
117233
|
};
|
|
117234
|
-
|
|
117235
|
-
|
|
117236
|
-
|
|
117237
|
-
(
|
|
117238
|
-
|
|
117239
|
-
|
|
117240
|
-
|
|
117241
|
-
|
|
117234
|
+
if (options.getConfig) {
|
|
117235
|
+
const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
|
|
117236
|
+
const config = (0, import_tsup.defineConfig)(
|
|
117237
|
+
getConfigFns.map(
|
|
117238
|
+
(getConfigFn) => getConfig(context.root, projectRoot, getConfigFn, getConfigOptions)
|
|
117239
|
+
)
|
|
117240
|
+
);
|
|
117241
|
+
if (_isFunction(config)) {
|
|
117242
|
+
await build(await Promise.resolve(config({})));
|
|
117243
|
+
} else {
|
|
117244
|
+
await build(config);
|
|
117245
|
+
}
|
|
117242
117246
|
} else {
|
|
117243
|
-
|
|
117247
|
+
console.log(
|
|
117248
|
+
"The Build process did not run because no `getConfig` parameter was provided"
|
|
117249
|
+
);
|
|
117244
117250
|
}
|
|
117245
117251
|
console.log("\u26A1 The Build process has completed successfully");
|
|
117246
117252
|
return {
|
|
@@ -117501,12 +117507,16 @@ function legacyNeutralConfig({
|
|
|
117501
117507
|
}
|
|
117502
117508
|
|
|
117503
117509
|
// packages/workspace-tools/src/executors/tsup-neutral/executor.ts
|
|
117504
|
-
var
|
|
117510
|
+
var tsupNeutralBuildExecutorFn = (options, context, config) => {
|
|
117505
117511
|
if (options.transports && Array.isArray(options.transports) && options.transports.length > 0) {
|
|
117506
117512
|
}
|
|
117507
117513
|
return tsupExecutorFn(
|
|
117508
117514
|
{
|
|
117509
117515
|
...options,
|
|
117516
|
+
getConfig: {
|
|
117517
|
+
"dist/modern": modernNeutralConfig,
|
|
117518
|
+
"dist/legacy": legacyNeutralConfig
|
|
117519
|
+
},
|
|
117510
117520
|
platform: "neutral",
|
|
117511
117521
|
banner: getFileBanner(
|
|
117512
117522
|
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
|
|
@@ -117530,16 +117540,12 @@ var applyDefaultOptions2 = (options) => {
|
|
|
117530
117540
|
...options,
|
|
117531
117541
|
platform: "neutral"
|
|
117532
117542
|
}),
|
|
117533
|
-
getConfig: {
|
|
117534
|
-
"dist/modern": modernNeutralConfig,
|
|
117535
|
-
"dist/legacy": legacyNeutralConfig
|
|
117536
|
-
},
|
|
117537
117543
|
transports: ["pino-pretty"]
|
|
117538
117544
|
};
|
|
117539
117545
|
};
|
|
117540
117546
|
var executor_default2 = withRunExecutor(
|
|
117541
117547
|
"TypeScript Build (Neutral Platform)",
|
|
117542
|
-
|
|
117548
|
+
tsupNeutralBuildExecutorFn,
|
|
117543
117549
|
{
|
|
117544
117550
|
skipReadingConfig: false,
|
|
117545
117551
|
hooks: {
|
|
@@ -117549,7 +117555,7 @@ var executor_default2 = withRunExecutor(
|
|
|
117549
117555
|
);
|
|
117550
117556
|
// Annotate the CommonJS export names for ESM import in node:
|
|
117551
117557
|
0 && (module.exports = {
|
|
117552
|
-
|
|
117558
|
+
tsupNeutralBuildExecutorFn
|
|
117553
117559
|
});
|
|
117554
117560
|
/*! Bundled license information:
|
|
117555
117561
|
|
|
@@ -106218,7 +106218,7 @@ var require_dist6 = __commonJS({
|
|
|
106218
106218
|
var executor_exports = {};
|
|
106219
106219
|
__export(executor_exports, {
|
|
106220
106220
|
default: () => executor_default2,
|
|
106221
|
-
|
|
106221
|
+
tsupNodeBuildExecutorFn: () => tsupNodeBuildExecutorFn
|
|
106222
106222
|
});
|
|
106223
106223
|
module.exports = __toCommonJS(executor_exports);
|
|
106224
106224
|
|
|
@@ -117050,7 +117050,7 @@ ${externalDependencies.map((dep) => {
|
|
|
117050
117050
|
console.log(JSON.stringify(options.getConfig));
|
|
117051
117051
|
const distPaths = !options?.getConfig || _isFunction(options.getConfig) ? [""] : Object.keys(options.getConfig).map((key) => `${key}/`);
|
|
117052
117052
|
packageJson.type = "module";
|
|
117053
|
-
if (distPaths.length >
|
|
117053
|
+
if (distPaths.length > 0) {
|
|
117054
117054
|
packageJson.exports ??= {
|
|
117055
117055
|
".": {
|
|
117056
117056
|
import: {
|
|
@@ -117231,16 +117231,22 @@ ${options.banner}
|
|
|
117231
117231
|
outputPath: options.outputPath,
|
|
117232
117232
|
entry
|
|
117233
117233
|
};
|
|
117234
|
-
|
|
117235
|
-
|
|
117236
|
-
|
|
117237
|
-
(
|
|
117238
|
-
|
|
117239
|
-
|
|
117240
|
-
|
|
117241
|
-
|
|
117234
|
+
if (options.getConfig) {
|
|
117235
|
+
const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
|
|
117236
|
+
const config = (0, import_tsup.defineConfig)(
|
|
117237
|
+
getConfigFns.map(
|
|
117238
|
+
(getConfigFn) => getConfig(context.root, projectRoot, getConfigFn, getConfigOptions)
|
|
117239
|
+
)
|
|
117240
|
+
);
|
|
117241
|
+
if (_isFunction(config)) {
|
|
117242
|
+
await build(await Promise.resolve(config({})));
|
|
117243
|
+
} else {
|
|
117244
|
+
await build(config);
|
|
117245
|
+
}
|
|
117242
117246
|
} else {
|
|
117243
|
-
|
|
117247
|
+
console.log(
|
|
117248
|
+
"The Build process did not run because no `getConfig` parameter was provided"
|
|
117249
|
+
);
|
|
117244
117250
|
}
|
|
117245
117251
|
console.log("\u26A1 The Build process has completed successfully");
|
|
117246
117252
|
return {
|
|
@@ -117420,12 +117426,13 @@ function nodeConfig({
|
|
|
117420
117426
|
}
|
|
117421
117427
|
|
|
117422
117428
|
// packages/workspace-tools/src/executors/tsup-node/executor.ts
|
|
117423
|
-
var
|
|
117429
|
+
var tsupNodeBuildExecutorFn = (options, context, config) => {
|
|
117424
117430
|
if (options.transports && Array.isArray(options.transports) && options.transports.length > 0) {
|
|
117425
117431
|
}
|
|
117426
117432
|
return tsupExecutorFn(
|
|
117427
117433
|
{
|
|
117428
117434
|
...options,
|
|
117435
|
+
getConfig: { "dist": nodeConfig },
|
|
117429
117436
|
platform: "node",
|
|
117430
117437
|
banner: getFileBanner(
|
|
117431
117438
|
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
|
|
@@ -117445,13 +117452,12 @@ var tsNodeBuildExecutorFn = (options, context, config) => {
|
|
|
117445
117452
|
var applyDefaultOptions2 = (options) => {
|
|
117446
117453
|
return {
|
|
117447
117454
|
...applyDefaultOptions({ plugins: [], ...options, platform: "node" }),
|
|
117448
|
-
getConfig: { "dist": nodeConfig },
|
|
117449
117455
|
transports: ["pino-pretty", "pino-loki"]
|
|
117450
117456
|
};
|
|
117451
117457
|
};
|
|
117452
117458
|
var executor_default2 = withRunExecutor(
|
|
117453
117459
|
"TypeScript Build (NodeJs Platform)",
|
|
117454
|
-
|
|
117460
|
+
tsupNodeBuildExecutorFn,
|
|
117455
117461
|
{
|
|
117456
117462
|
skipReadingConfig: false,
|
|
117457
117463
|
hooks: {
|
|
@@ -117461,7 +117467,7 @@ var executor_default2 = withRunExecutor(
|
|
|
117461
117467
|
);
|
|
117462
117468
|
// Annotate the CommonJS export names for ESM import in node:
|
|
117463
117469
|
0 && (module.exports = {
|
|
117464
|
-
|
|
117470
|
+
tsupNodeBuildExecutorFn
|
|
117465
117471
|
});
|
|
117466
117472
|
/*! Bundled license information:
|
|
117467
117473
|
|