@storm-software/workspace-tools 1.49.18 → 1.49.20
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 +24 -0
- package/index.js +21 -10
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +18 -3
- package/src/executors/tsup-browser/executor.js +19 -6
- package/src/executors/tsup-neutral/executor.js +19 -6
- package/src/executors/tsup-node/executor.js +19 -4
- package/src/utils/index.js +17 -1
package/package.json
CHANGED
|
@@ -115410,7 +115410,7 @@ var applyDefaultOptions = (options) => {
|
|
|
115410
115410
|
options.skipNativeModulesPlugin ??= false;
|
|
115411
115411
|
options.define ??= {};
|
|
115412
115412
|
options.env ??= {};
|
|
115413
|
-
options.getConfig ??=
|
|
115413
|
+
options.getConfig ??= defaultConfig;
|
|
115414
115414
|
return options;
|
|
115415
115415
|
};
|
|
115416
115416
|
var runTsupBuild = async (context, config, options) => {
|
|
@@ -115469,6 +115469,14 @@ ${options.banner}
|
|
|
115469
115469
|
};
|
|
115470
115470
|
if (options.getConfig) {
|
|
115471
115471
|
writeInfo(config, "\u26A1 Running the Build process");
|
|
115472
|
+
writeDebug(
|
|
115473
|
+
config,
|
|
115474
|
+
`\u2699\uFE0F Build options:
|
|
115475
|
+
${Object.keys(options).map(
|
|
115476
|
+
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
115477
|
+
).join("\n")}
|
|
115478
|
+
`
|
|
115479
|
+
);
|
|
115472
115480
|
const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
|
|
115473
115481
|
const tsupConfig = (0, import_tsup.defineConfig)(
|
|
115474
115482
|
getConfigFns.map(
|
|
@@ -115528,6 +115536,13 @@ var build = async (options, config) => {
|
|
|
115528
115536
|
await new Promise((r) => setTimeout(r, 100));
|
|
115529
115537
|
}
|
|
115530
115538
|
};
|
|
115539
|
+
var _isPrimitive = (value) => {
|
|
115540
|
+
try {
|
|
115541
|
+
return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
|
|
115542
|
+
} catch (e) {
|
|
115543
|
+
return false;
|
|
115544
|
+
}
|
|
115545
|
+
};
|
|
115531
115546
|
var _isFunction = (value) => {
|
|
115532
115547
|
try {
|
|
115533
115548
|
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
@@ -115555,7 +115570,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
115555
115570
|
config,
|
|
115556
115571
|
`\u2699\uFE0F Executor options:
|
|
115557
115572
|
${Object.keys(options).map(
|
|
115558
|
-
(key) => `${key}: ${!options[key] ||
|
|
115573
|
+
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
115559
115574
|
).join("\n")}
|
|
115560
115575
|
`
|
|
115561
115576
|
);
|
|
@@ -115899,7 +115914,7 @@ var executor_default = withRunExecutor("TypeScript Build using tsup", tsupExecut
|
|
|
115899
115914
|
applyDefaultOptions
|
|
115900
115915
|
}
|
|
115901
115916
|
});
|
|
115902
|
-
var
|
|
115917
|
+
var _isPrimitive2 = (value) => {
|
|
115903
115918
|
try {
|
|
115904
115919
|
return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
|
|
115905
115920
|
} catch (e) {
|
|
@@ -109233,7 +109233,7 @@ var applyDefaultOptions = (options) => {
|
|
|
109233
109233
|
options.skipNativeModulesPlugin ??= false;
|
|
109234
109234
|
options.define ??= {};
|
|
109235
109235
|
options.env ??= {};
|
|
109236
|
-
options.getConfig ??=
|
|
109236
|
+
options.getConfig ??= defaultConfig;
|
|
109237
109237
|
return options;
|
|
109238
109238
|
};
|
|
109239
109239
|
var runTsupBuild = async (context, config, options) => {
|
|
@@ -109292,6 +109292,14 @@ ${options.banner}
|
|
|
109292
109292
|
};
|
|
109293
109293
|
if (options.getConfig) {
|
|
109294
109294
|
writeInfo(config, "\u26A1 Running the Build process");
|
|
109295
|
+
writeDebug(
|
|
109296
|
+
config,
|
|
109297
|
+
`\u2699\uFE0F Build options:
|
|
109298
|
+
${Object.keys(options).map(
|
|
109299
|
+
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
109300
|
+
).join("\n")}
|
|
109301
|
+
`
|
|
109302
|
+
);
|
|
109295
109303
|
const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
|
|
109296
109304
|
const tsupConfig = (0, import_tsup.defineConfig)(
|
|
109297
109305
|
getConfigFns.map(
|
|
@@ -109351,6 +109359,13 @@ var build = async (options, config) => {
|
|
|
109351
109359
|
await new Promise((r) => setTimeout(r, 100));
|
|
109352
109360
|
}
|
|
109353
109361
|
};
|
|
109362
|
+
var _isPrimitive = (value) => {
|
|
109363
|
+
try {
|
|
109364
|
+
return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
|
|
109365
|
+
} catch (e) {
|
|
109366
|
+
return false;
|
|
109367
|
+
}
|
|
109368
|
+
};
|
|
109354
109369
|
var _isFunction = (value) => {
|
|
109355
109370
|
try {
|
|
109356
109371
|
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
@@ -115585,7 +115600,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
115585
115600
|
config,
|
|
115586
115601
|
`\u2699\uFE0F Executor options:
|
|
115587
115602
|
${Object.keys(options).map(
|
|
115588
|
-
(key) => `${key}: ${!options[key] ||
|
|
115603
|
+
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
115589
115604
|
).join("\n")}
|
|
115590
115605
|
`
|
|
115591
115606
|
);
|
|
@@ -115929,7 +115944,7 @@ var executor_default = withRunExecutor("TypeScript Build using tsup", tsupExecut
|
|
|
115929
115944
|
applyDefaultOptions
|
|
115930
115945
|
}
|
|
115931
115946
|
});
|
|
115932
|
-
var
|
|
115947
|
+
var _isPrimitive2 = (value) => {
|
|
115933
115948
|
try {
|
|
115934
115949
|
return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
|
|
115935
115950
|
} catch (e) {
|
|
@@ -116043,9 +116058,7 @@ var tsupBrowserBuildExecutorFn = (options, context, config) => {
|
|
|
116043
116058
|
env: {
|
|
116044
116059
|
...process.env
|
|
116045
116060
|
},
|
|
116046
|
-
getConfig:
|
|
116047
|
-
dist: browserConfig
|
|
116048
|
-
}
|
|
116061
|
+
getConfig: browserConfig
|
|
116049
116062
|
},
|
|
116050
116063
|
context,
|
|
116051
116064
|
config
|
|
@@ -109233,7 +109233,7 @@ var applyDefaultOptions = (options) => {
|
|
|
109233
109233
|
options.skipNativeModulesPlugin ??= false;
|
|
109234
109234
|
options.define ??= {};
|
|
109235
109235
|
options.env ??= {};
|
|
109236
|
-
options.getConfig ??=
|
|
109236
|
+
options.getConfig ??= defaultConfig;
|
|
109237
109237
|
return options;
|
|
109238
109238
|
};
|
|
109239
109239
|
var runTsupBuild = async (context, config, options) => {
|
|
@@ -109292,6 +109292,14 @@ ${options.banner}
|
|
|
109292
109292
|
};
|
|
109293
109293
|
if (options.getConfig) {
|
|
109294
109294
|
writeInfo(config, "\u26A1 Running the Build process");
|
|
109295
|
+
writeDebug(
|
|
109296
|
+
config,
|
|
109297
|
+
`\u2699\uFE0F Build options:
|
|
109298
|
+
${Object.keys(options).map(
|
|
109299
|
+
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
109300
|
+
).join("\n")}
|
|
109301
|
+
`
|
|
109302
|
+
);
|
|
109295
109303
|
const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
|
|
109296
109304
|
const tsupConfig = (0, import_tsup.defineConfig)(
|
|
109297
109305
|
getConfigFns.map(
|
|
@@ -109351,6 +109359,13 @@ var build = async (options, config) => {
|
|
|
109351
109359
|
await new Promise((r) => setTimeout(r, 100));
|
|
109352
109360
|
}
|
|
109353
109361
|
};
|
|
109362
|
+
var _isPrimitive = (value) => {
|
|
109363
|
+
try {
|
|
109364
|
+
return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
|
|
109365
|
+
} catch (e) {
|
|
109366
|
+
return false;
|
|
109367
|
+
}
|
|
109368
|
+
};
|
|
109354
109369
|
var _isFunction = (value) => {
|
|
109355
109370
|
try {
|
|
109356
109371
|
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
@@ -115585,7 +115600,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
115585
115600
|
config,
|
|
115586
115601
|
`\u2699\uFE0F Executor options:
|
|
115587
115602
|
${Object.keys(options).map(
|
|
115588
|
-
(key) => `${key}: ${!options[key] ||
|
|
115603
|
+
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
115589
115604
|
).join("\n")}
|
|
115590
115605
|
`
|
|
115591
115606
|
);
|
|
@@ -115929,7 +115944,7 @@ var executor_default = withRunExecutor("TypeScript Build using tsup", tsupExecut
|
|
|
115929
115944
|
applyDefaultOptions
|
|
115930
115945
|
}
|
|
115931
115946
|
});
|
|
115932
|
-
var
|
|
115947
|
+
var _isPrimitive2 = (value) => {
|
|
115933
115948
|
try {
|
|
115934
115949
|
return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
|
|
115935
115950
|
} catch (e) {
|
|
@@ -116046,9 +116061,7 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
|
|
|
116046
116061
|
env: {
|
|
116047
116062
|
...process.env
|
|
116048
116063
|
},
|
|
116049
|
-
getConfig:
|
|
116050
|
-
dist: neutralConfig
|
|
116051
|
-
}
|
|
116064
|
+
getConfig: neutralConfig
|
|
116052
116065
|
},
|
|
116053
116066
|
context,
|
|
116054
116067
|
config
|
|
@@ -109233,7 +109233,7 @@ var applyDefaultOptions = (options) => {
|
|
|
109233
109233
|
options.skipNativeModulesPlugin ??= false;
|
|
109234
109234
|
options.define ??= {};
|
|
109235
109235
|
options.env ??= {};
|
|
109236
|
-
options.getConfig ??=
|
|
109236
|
+
options.getConfig ??= defaultConfig;
|
|
109237
109237
|
return options;
|
|
109238
109238
|
};
|
|
109239
109239
|
var runTsupBuild = async (context, config, options) => {
|
|
@@ -109292,6 +109292,14 @@ ${options.banner}
|
|
|
109292
109292
|
};
|
|
109293
109293
|
if (options.getConfig) {
|
|
109294
109294
|
writeInfo(config, "\u26A1 Running the Build process");
|
|
109295
|
+
writeDebug(
|
|
109296
|
+
config,
|
|
109297
|
+
`\u2699\uFE0F Build options:
|
|
109298
|
+
${Object.keys(options).map(
|
|
109299
|
+
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
109300
|
+
).join("\n")}
|
|
109301
|
+
`
|
|
109302
|
+
);
|
|
109295
109303
|
const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
|
|
109296
109304
|
const tsupConfig = (0, import_tsup.defineConfig)(
|
|
109297
109305
|
getConfigFns.map(
|
|
@@ -109351,6 +109359,13 @@ var build = async (options, config) => {
|
|
|
109351
109359
|
await new Promise((r) => setTimeout(r, 100));
|
|
109352
109360
|
}
|
|
109353
109361
|
};
|
|
109362
|
+
var _isPrimitive = (value) => {
|
|
109363
|
+
try {
|
|
109364
|
+
return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
|
|
109365
|
+
} catch (e) {
|
|
109366
|
+
return false;
|
|
109367
|
+
}
|
|
109368
|
+
};
|
|
109354
109369
|
var _isFunction = (value) => {
|
|
109355
109370
|
try {
|
|
109356
109371
|
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
@@ -115585,7 +115600,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
115585
115600
|
config,
|
|
115586
115601
|
`\u2699\uFE0F Executor options:
|
|
115587
115602
|
${Object.keys(options).map(
|
|
115588
|
-
(key) => `${key}: ${!options[key] ||
|
|
115603
|
+
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
115589
115604
|
).join("\n")}
|
|
115590
115605
|
`
|
|
115591
115606
|
);
|
|
@@ -115929,7 +115944,7 @@ var executor_default = withRunExecutor("TypeScript Build using tsup", tsupExecut
|
|
|
115929
115944
|
applyDefaultOptions
|
|
115930
115945
|
}
|
|
115931
115946
|
});
|
|
115932
|
-
var
|
|
115947
|
+
var _isPrimitive2 = (value) => {
|
|
115933
115948
|
try {
|
|
115934
115949
|
return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
|
|
115935
115950
|
} catch (e) {
|
|
@@ -116035,7 +116050,7 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
|
|
|
116035
116050
|
return tsupExecutorFn(
|
|
116036
116051
|
{
|
|
116037
116052
|
...options,
|
|
116038
|
-
getConfig:
|
|
116053
|
+
getConfig: nodeConfig,
|
|
116039
116054
|
platform: "node",
|
|
116040
116055
|
banner: getFileBanner(
|
|
116041
116056
|
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : "").join(" ") : "TypeScript (NodeJs Platform)"
|
package/src/utils/index.js
CHANGED
|
@@ -117654,6 +117654,7 @@ ${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">
|
|
|
117654
117654
|
};
|
|
117655
117655
|
var writeWarning = (config, message) => getLogFn(config, LogLevel.WARN)(message);
|
|
117656
117656
|
var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
|
|
117657
|
+
var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
|
|
117657
117658
|
|
|
117658
117659
|
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
|
|
117659
117660
|
var import_node_buffer2 = require("node:buffer");
|
|
@@ -119412,7 +119413,7 @@ var applyDefaultOptions = (options) => {
|
|
|
119412
119413
|
options.skipNativeModulesPlugin ??= false;
|
|
119413
119414
|
options.define ??= {};
|
|
119414
119415
|
options.env ??= {};
|
|
119415
|
-
options.getConfig ??=
|
|
119416
|
+
options.getConfig ??= defaultConfig;
|
|
119416
119417
|
return options;
|
|
119417
119418
|
};
|
|
119418
119419
|
var runTsupBuild = async (context, config, options) => {
|
|
@@ -119471,6 +119472,14 @@ ${options.banner}
|
|
|
119471
119472
|
};
|
|
119472
119473
|
if (options.getConfig) {
|
|
119473
119474
|
writeInfo(config, "\u26A1 Running the Build process");
|
|
119475
|
+
writeDebug(
|
|
119476
|
+
config,
|
|
119477
|
+
`\u2699\uFE0F Build options:
|
|
119478
|
+
${Object.keys(options).map(
|
|
119479
|
+
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
119480
|
+
).join("\n")}
|
|
119481
|
+
`
|
|
119482
|
+
);
|
|
119474
119483
|
const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
|
|
119475
119484
|
const tsupConfig = (0, import_tsup.defineConfig)(
|
|
119476
119485
|
getConfigFns.map(
|
|
@@ -119530,6 +119539,13 @@ var build = async (options, config) => {
|
|
|
119530
119539
|
await new Promise((r) => setTimeout(r, 100));
|
|
119531
119540
|
}
|
|
119532
119541
|
};
|
|
119542
|
+
var _isPrimitive = (value) => {
|
|
119543
|
+
try {
|
|
119544
|
+
return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
|
|
119545
|
+
} catch (e) {
|
|
119546
|
+
return false;
|
|
119547
|
+
}
|
|
119548
|
+
};
|
|
119533
119549
|
var _isFunction = (value) => {
|
|
119534
119550
|
try {
|
|
119535
119551
|
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|