@storm-software/workspace-tools 1.49.17 → 1.49.19
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 +26 -0
- package/index.js +18 -3
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +34 -25
- package/src/executors/tsup-browser/executor.js +32 -23
- package/src/executors/tsup-neutral/executor.js +32 -23
- package/src/executors/tsup-node/executor.js +32 -23
- package/src/utils/index.js +16 -0
package/package.json
CHANGED
|
@@ -32362,8 +32362,8 @@ var require_select = __commonJS({
|
|
|
32362
32362
|
separator() {
|
|
32363
32363
|
if (this.options.separator)
|
|
32364
32364
|
return super.separator();
|
|
32365
|
-
let
|
|
32366
|
-
return this.state.submitted ? super.separator() :
|
|
32365
|
+
let sep2 = this.styles.muted(this.symbols.ellipsis);
|
|
32366
|
+
return this.state.submitted ? super.separator() : sep2;
|
|
32367
32367
|
}
|
|
32368
32368
|
pointer(choice, i) {
|
|
32369
32369
|
return !this.multiple || this.options.pointer ? super.pointer(choice, i) : "";
|
|
@@ -32727,8 +32727,8 @@ var require_form = __commonJS({
|
|
|
32727
32727
|
return choice.input ? "\u29BF" : "\u2299";
|
|
32728
32728
|
}
|
|
32729
32729
|
async choiceSeparator(choice, i) {
|
|
32730
|
-
let
|
|
32731
|
-
return
|
|
32730
|
+
let sep2 = await this.resolve(choice.separator, this.state, choice, i) || ":";
|
|
32731
|
+
return sep2 ? " " + this.styles.disabled(sep2) : "";
|
|
32732
32732
|
}
|
|
32733
32733
|
async renderChoice(choice, i) {
|
|
32734
32734
|
await this.onChoice(choice, i);
|
|
@@ -32738,7 +32738,7 @@ var require_form = __commonJS({
|
|
|
32738
32738
|
let help = hint;
|
|
32739
32739
|
let focused = this.index === i;
|
|
32740
32740
|
let validate = choice.validate || (() => true);
|
|
32741
|
-
let
|
|
32741
|
+
let sep2 = await this.choiceSeparator(choice, i);
|
|
32742
32742
|
let msg = choice.message;
|
|
32743
32743
|
if (this.align === "right")
|
|
32744
32744
|
msg = msg.padStart(this.longest + 1, " ");
|
|
@@ -32752,7 +32752,7 @@ var require_form = __commonJS({
|
|
|
32752
32752
|
let style = styles[color];
|
|
32753
32753
|
let indicator = style(await this.indicator(choice, i)) + (choice.pad || "");
|
|
32754
32754
|
let indent = this.indent(choice);
|
|
32755
|
-
let line = () => [indent, indicator, msg +
|
|
32755
|
+
let line = () => [indent, indicator, msg + sep2, input, help].filter(Boolean).join(" ");
|
|
32756
32756
|
if (state.submitted) {
|
|
32757
32757
|
msg = colors.unstyle(msg);
|
|
32758
32758
|
input = submitted(input);
|
|
@@ -32908,10 +32908,10 @@ var require_boolean = __commonJS({
|
|
|
32908
32908
|
async render() {
|
|
32909
32909
|
let { input, size } = this.state;
|
|
32910
32910
|
let prefix = await this.prefix();
|
|
32911
|
-
let
|
|
32911
|
+
let sep2 = await this.separator();
|
|
32912
32912
|
let msg = await this.message();
|
|
32913
32913
|
let hint = this.styles.muted(this.default);
|
|
32914
|
-
let promptLine = [prefix, msg, hint,
|
|
32914
|
+
let promptLine = [prefix, msg, hint, sep2].filter(Boolean).join(" ");
|
|
32915
32915
|
this.state.prompt = promptLine;
|
|
32916
32916
|
let header = await this.header();
|
|
32917
32917
|
let value = this.value = this.cast(input);
|
|
@@ -95604,7 +95604,7 @@ var require_shared = __commonJS({
|
|
|
95604
95604
|
var isBinaryPath$1 = (filePath) => extensions.has(path4.extname(filePath).slice(1).toLowerCase());
|
|
95605
95605
|
var constants3 = {};
|
|
95606
95606
|
(function(exports2) {
|
|
95607
|
-
const { sep:
|
|
95607
|
+
const { sep: sep2 } = require$$0$2;
|
|
95608
95608
|
const { platform } = process;
|
|
95609
95609
|
const os2 = require$$2$1;
|
|
95610
95610
|
exports2.EV_ALL = "all";
|
|
@@ -95632,7 +95632,7 @@ var require_shared = __commonJS({
|
|
|
95632
95632
|
exports2.KEY_ERR = "errHandlers";
|
|
95633
95633
|
exports2.KEY_RAW = "rawEmitters";
|
|
95634
95634
|
exports2.HANDLER_KEYS = [exports2.KEY_LISTENERS, exports2.KEY_ERR, exports2.KEY_RAW];
|
|
95635
|
-
exports2.DOT_SLASH = `.${
|
|
95635
|
+
exports2.DOT_SLASH = `.${sep2}`;
|
|
95636
95636
|
exports2.BACK_SLASH_RE = /\\/g;
|
|
95637
95637
|
exports2.DOUBLE_SLASH_RE = /\/\//;
|
|
95638
95638
|
exports2.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
|
|
@@ -98390,7 +98390,7 @@ var require_is_binary_path = __commonJS({
|
|
|
98390
98390
|
var require_constants5 = __commonJS({
|
|
98391
98391
|
"node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/lib/constants.js"(exports) {
|
|
98392
98392
|
"use strict";
|
|
98393
|
-
var { sep:
|
|
98393
|
+
var { sep: sep2 } = require("path");
|
|
98394
98394
|
var { platform } = process;
|
|
98395
98395
|
var os2 = require("os");
|
|
98396
98396
|
exports.EV_ALL = "all";
|
|
@@ -98418,7 +98418,7 @@ var require_constants5 = __commonJS({
|
|
|
98418
98418
|
exports.KEY_ERR = "errHandlers";
|
|
98419
98419
|
exports.KEY_RAW = "rawEmitters";
|
|
98420
98420
|
exports.HANDLER_KEYS = [exports.KEY_LISTENERS, exports.KEY_ERR, exports.KEY_RAW];
|
|
98421
|
-
exports.DOT_SLASH = `.${
|
|
98421
|
+
exports.DOT_SLASH = `.${sep2}`;
|
|
98422
98422
|
exports.BACK_SLASH_RE = /\\/g;
|
|
98423
98423
|
exports.DOUBLE_SLASH_RE = /\/\//;
|
|
98424
98424
|
exports.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
|
|
@@ -113392,7 +113392,7 @@ var PathScurryBase = class {
|
|
|
113392
113392
|
*
|
|
113393
113393
|
* @internal
|
|
113394
113394
|
*/
|
|
113395
|
-
constructor(cwd = process.cwd(), pathImpl,
|
|
113395
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
|
|
113396
113396
|
this.#fs = fsFromOption(fs);
|
|
113397
113397
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
113398
113398
|
cwd = (0, import_url.fileURLToPath)(cwd);
|
|
@@ -113403,7 +113403,7 @@ var PathScurryBase = class {
|
|
|
113403
113403
|
this.#resolveCache = new ResolveCache();
|
|
113404
113404
|
this.#resolvePosixCache = new ResolveCache();
|
|
113405
113405
|
this.#children = new ChildrenCache(childrenCacheSize);
|
|
113406
|
-
const split = cwdPath.substring(this.rootPath.length).split(
|
|
113406
|
+
const split = cwdPath.substring(this.rootPath.length).split(sep2);
|
|
113407
113407
|
if (split.length === 1 && !split[0]) {
|
|
113408
113408
|
split.pop();
|
|
113409
113409
|
}
|
|
@@ -115201,15 +115201,9 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
|
|
|
115201
115201
|
};
|
|
115202
115202
|
|
|
115203
115203
|
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
115204
|
-
var import_node_path5 = require("node:path");
|
|
115205
115204
|
var removeExtension = (filePath) => {
|
|
115206
115205
|
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
115207
115206
|
};
|
|
115208
|
-
function findFileName(filePath) {
|
|
115209
|
-
return filePath?.split(
|
|
115210
|
-
filePath?.includes(import_node_path5.sep) ? import_node_path5.sep : filePath?.includes("/") ? "/" : "\\"
|
|
115211
|
-
)?.pop() ?? "";
|
|
115212
|
-
}
|
|
115213
115207
|
|
|
115214
115208
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
115215
115209
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
@@ -115229,7 +115223,7 @@ function getExternalDependencies(projectName, graph) {
|
|
|
115229
115223
|
}
|
|
115230
115224
|
|
|
115231
115225
|
// packages/workspace-tools/src/utils/run-tsup-build.ts
|
|
115232
|
-
var
|
|
115226
|
+
var import_node_path5 = require("node:path");
|
|
115233
115227
|
var import_esbuild_decorators = __toESM(require_src2());
|
|
115234
115228
|
var import_devkit2 = __toESM(require_devkit());
|
|
115235
115229
|
var import_get_custom_transformers_factory = __toESM(require_get_custom_transformers_factory());
|
|
@@ -115475,6 +115469,14 @@ ${options.banner}
|
|
|
115475
115469
|
};
|
|
115476
115470
|
if (options.getConfig) {
|
|
115477
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
|
+
);
|
|
115478
115480
|
const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
|
|
115479
115481
|
const tsupConfig = (0, import_tsup.defineConfig)(
|
|
115480
115482
|
getConfigFns.map(
|
|
@@ -115515,7 +115517,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
|
115515
115517
|
}
|
|
115516
115518
|
},
|
|
115517
115519
|
ts.sys,
|
|
115518
|
-
(0,
|
|
115520
|
+
(0, import_node_path5.dirname)(options.tsConfig)
|
|
115519
115521
|
);
|
|
115520
115522
|
tsConfig.options.pathsBasePath = workspaceRoot;
|
|
115521
115523
|
if (tsConfig.options.incremental && !tsConfig.options.tsBuildInfoFile) {
|
|
@@ -115534,6 +115536,13 @@ var build = async (options, config) => {
|
|
|
115534
115536
|
await new Promise((r) => setTimeout(r, 100));
|
|
115535
115537
|
}
|
|
115536
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
|
+
};
|
|
115537
115546
|
var _isFunction = (value) => {
|
|
115538
115547
|
try {
|
|
115539
115548
|
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
@@ -115561,7 +115570,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
115561
115570
|
config,
|
|
115562
115571
|
`\u2699\uFE0F Executor options:
|
|
115563
115572
|
${Object.keys(options).map(
|
|
115564
|
-
(key) => `${key}: ${!options[key] ||
|
|
115573
|
+
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
115565
115574
|
).join("\n")}
|
|
115566
115575
|
`
|
|
115567
115576
|
);
|
|
@@ -115876,7 +115885,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
115876
115885
|
outputPath = (0, import_devkit3.joinPathFragments)(
|
|
115877
115886
|
options.outputPath,
|
|
115878
115887
|
"dist",
|
|
115879
|
-
outputPath.
|
|
115888
|
+
outputPath.includes("/") ? outputPath.substring(0, outputPath.lastIndexOf("/")) : ""
|
|
115880
115889
|
);
|
|
115881
115890
|
writeInfo(config, `*** Build output path: ${outputPath} ***`);
|
|
115882
115891
|
return runTsupBuild(
|
|
@@ -115905,7 +115914,7 @@ var executor_default = withRunExecutor("TypeScript Build using tsup", tsupExecut
|
|
|
115905
115914
|
applyDefaultOptions
|
|
115906
115915
|
}
|
|
115907
115916
|
});
|
|
115908
|
-
var
|
|
115917
|
+
var _isPrimitive2 = (value) => {
|
|
115909
115918
|
try {
|
|
115910
115919
|
return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
|
|
115911
115920
|
} catch (e) {
|
|
@@ -84000,7 +84000,7 @@ var require_shared = __commonJS({
|
|
|
84000
84000
|
var isBinaryPath$1 = (filePath) => extensions.has(path4.extname(filePath).slice(1).toLowerCase());
|
|
84001
84001
|
var constants3 = {};
|
|
84002
84002
|
(function(exports2) {
|
|
84003
|
-
const { sep:
|
|
84003
|
+
const { sep: sep2 } = require$$0$2;
|
|
84004
84004
|
const { platform } = process;
|
|
84005
84005
|
const os2 = require$$2$1;
|
|
84006
84006
|
exports2.EV_ALL = "all";
|
|
@@ -84028,7 +84028,7 @@ var require_shared = __commonJS({
|
|
|
84028
84028
|
exports2.KEY_ERR = "errHandlers";
|
|
84029
84029
|
exports2.KEY_RAW = "rawEmitters";
|
|
84030
84030
|
exports2.HANDLER_KEYS = [exports2.KEY_LISTENERS, exports2.KEY_ERR, exports2.KEY_RAW];
|
|
84031
|
-
exports2.DOT_SLASH = `.${
|
|
84031
|
+
exports2.DOT_SLASH = `.${sep2}`;
|
|
84032
84032
|
exports2.BACK_SLASH_RE = /\\/g;
|
|
84033
84033
|
exports2.DOUBLE_SLASH_RE = /\/\//;
|
|
84034
84034
|
exports2.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
|
|
@@ -86786,7 +86786,7 @@ var require_is_binary_path = __commonJS({
|
|
|
86786
86786
|
var require_constants5 = __commonJS({
|
|
86787
86787
|
"node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/lib/constants.js"(exports) {
|
|
86788
86788
|
"use strict";
|
|
86789
|
-
var { sep:
|
|
86789
|
+
var { sep: sep2 } = require("path");
|
|
86790
86790
|
var { platform } = process;
|
|
86791
86791
|
var os2 = require("os");
|
|
86792
86792
|
exports.EV_ALL = "all";
|
|
@@ -86814,7 +86814,7 @@ var require_constants5 = __commonJS({
|
|
|
86814
86814
|
exports.KEY_ERR = "errHandlers";
|
|
86815
86815
|
exports.KEY_RAW = "rawEmitters";
|
|
86816
86816
|
exports.HANDLER_KEYS = [exports.KEY_LISTENERS, exports.KEY_ERR, exports.KEY_RAW];
|
|
86817
|
-
exports.DOT_SLASH = `.${
|
|
86817
|
+
exports.DOT_SLASH = `.${sep2}`;
|
|
86818
86818
|
exports.BACK_SLASH_RE = /\\/g;
|
|
86819
86819
|
exports.DOUBLE_SLASH_RE = /\/\//;
|
|
86820
86820
|
exports.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
|
|
@@ -98584,8 +98584,8 @@ var require_select = __commonJS({
|
|
|
98584
98584
|
separator() {
|
|
98585
98585
|
if (this.options.separator)
|
|
98586
98586
|
return super.separator();
|
|
98587
|
-
let
|
|
98588
|
-
return this.state.submitted ? super.separator() :
|
|
98587
|
+
let sep2 = this.styles.muted(this.symbols.ellipsis);
|
|
98588
|
+
return this.state.submitted ? super.separator() : sep2;
|
|
98589
98589
|
}
|
|
98590
98590
|
pointer(choice, i) {
|
|
98591
98591
|
return !this.multiple || this.options.pointer ? super.pointer(choice, i) : "";
|
|
@@ -98949,8 +98949,8 @@ var require_form = __commonJS({
|
|
|
98949
98949
|
return choice.input ? "\u29BF" : "\u2299";
|
|
98950
98950
|
}
|
|
98951
98951
|
async choiceSeparator(choice, i) {
|
|
98952
|
-
let
|
|
98953
|
-
return
|
|
98952
|
+
let sep2 = await this.resolve(choice.separator, this.state, choice, i) || ":";
|
|
98953
|
+
return sep2 ? " " + this.styles.disabled(sep2) : "";
|
|
98954
98954
|
}
|
|
98955
98955
|
async renderChoice(choice, i) {
|
|
98956
98956
|
await this.onChoice(choice, i);
|
|
@@ -98960,7 +98960,7 @@ var require_form = __commonJS({
|
|
|
98960
98960
|
let help = hint;
|
|
98961
98961
|
let focused = this.index === i;
|
|
98962
98962
|
let validate = choice.validate || (() => true);
|
|
98963
|
-
let
|
|
98963
|
+
let sep2 = await this.choiceSeparator(choice, i);
|
|
98964
98964
|
let msg = choice.message;
|
|
98965
98965
|
if (this.align === "right")
|
|
98966
98966
|
msg = msg.padStart(this.longest + 1, " ");
|
|
@@ -98974,7 +98974,7 @@ var require_form = __commonJS({
|
|
|
98974
98974
|
let style = styles[color];
|
|
98975
98975
|
let indicator = style(await this.indicator(choice, i)) + (choice.pad || "");
|
|
98976
98976
|
let indent = this.indent(choice);
|
|
98977
|
-
let line = () => [indent, indicator, msg +
|
|
98977
|
+
let line = () => [indent, indicator, msg + sep2, input, help].filter(Boolean).join(" ");
|
|
98978
98978
|
if (state.submitted) {
|
|
98979
98979
|
msg = colors.unstyle(msg);
|
|
98980
98980
|
input = submitted(input);
|
|
@@ -99130,10 +99130,10 @@ var require_boolean = __commonJS({
|
|
|
99130
99130
|
async render() {
|
|
99131
99131
|
let { input, size } = this.state;
|
|
99132
99132
|
let prefix = await this.prefix();
|
|
99133
|
-
let
|
|
99133
|
+
let sep2 = await this.separator();
|
|
99134
99134
|
let msg = await this.message();
|
|
99135
99135
|
let hint = this.styles.muted(this.default);
|
|
99136
|
-
let promptLine = [prefix, msg, hint,
|
|
99136
|
+
let promptLine = [prefix, msg, hint, sep2].filter(Boolean).join(" ");
|
|
99137
99137
|
this.state.prompt = promptLine;
|
|
99138
99138
|
let header = await this.header();
|
|
99139
99139
|
let value = this.value = this.cast(input);
|
|
@@ -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);
|
|
@@ -113920,7 +113935,7 @@ var PathScurryBase = class {
|
|
|
113920
113935
|
*
|
|
113921
113936
|
* @internal
|
|
113922
113937
|
*/
|
|
113923
|
-
constructor(cwd = process.cwd(), pathImpl,
|
|
113938
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
|
|
113924
113939
|
this.#fs = fsFromOption(fs);
|
|
113925
113940
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
113926
113941
|
cwd = (0, import_url.fileURLToPath)(cwd);
|
|
@@ -113931,7 +113946,7 @@ var PathScurryBase = class {
|
|
|
113931
113946
|
this.#resolveCache = new ResolveCache();
|
|
113932
113947
|
this.#resolvePosixCache = new ResolveCache();
|
|
113933
113948
|
this.#children = new ChildrenCache(childrenCacheSize);
|
|
113934
|
-
const split = cwdPath.substring(this.rootPath.length).split(
|
|
113949
|
+
const split = cwdPath.substring(this.rootPath.length).split(sep2);
|
|
113935
113950
|
if (split.length === 1 && !split[0]) {
|
|
113936
113951
|
split.pop();
|
|
113937
113952
|
}
|
|
@@ -115557,15 +115572,9 @@ var import_fileutils = require("nx/src/utils/fileutils");
|
|
|
115557
115572
|
var import_prettier = require("prettier");
|
|
115558
115573
|
|
|
115559
115574
|
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
115560
|
-
var import_node_path6 = require("node:path");
|
|
115561
115575
|
var removeExtension = (filePath) => {
|
|
115562
115576
|
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
115563
115577
|
};
|
|
115564
|
-
function findFileName(filePath) {
|
|
115565
|
-
return filePath?.split(
|
|
115566
|
-
filePath?.includes(import_node_path6.sep) ? import_node_path6.sep : filePath?.includes("/") ? "/" : "\\"
|
|
115567
|
-
)?.pop() ?? "";
|
|
115568
|
-
}
|
|
115569
115578
|
|
|
115570
115579
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
115571
115580
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
@@ -115591,7 +115600,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
115591
115600
|
config,
|
|
115592
115601
|
`\u2699\uFE0F Executor options:
|
|
115593
115602
|
${Object.keys(options).map(
|
|
115594
|
-
(key) => `${key}: ${!options[key] ||
|
|
115603
|
+
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
115595
115604
|
).join("\n")}
|
|
115596
115605
|
`
|
|
115597
115606
|
);
|
|
@@ -115906,7 +115915,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
115906
115915
|
outputPath = (0, import_devkit3.joinPathFragments)(
|
|
115907
115916
|
options.outputPath,
|
|
115908
115917
|
"dist",
|
|
115909
|
-
outputPath.
|
|
115918
|
+
outputPath.includes("/") ? outputPath.substring(0, outputPath.lastIndexOf("/")) : ""
|
|
115910
115919
|
);
|
|
115911
115920
|
writeInfo(config, `*** Build output path: ${outputPath} ***`);
|
|
115912
115921
|
return runTsupBuild(
|
|
@@ -115935,7 +115944,7 @@ var executor_default = withRunExecutor("TypeScript Build using tsup", tsupExecut
|
|
|
115935
115944
|
applyDefaultOptions
|
|
115936
115945
|
}
|
|
115937
115946
|
});
|
|
115938
|
-
var
|
|
115947
|
+
var _isPrimitive2 = (value) => {
|
|
115939
115948
|
try {
|
|
115940
115949
|
return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
|
|
115941
115950
|
} catch (e) {
|
|
@@ -84000,7 +84000,7 @@ var require_shared = __commonJS({
|
|
|
84000
84000
|
var isBinaryPath$1 = (filePath) => extensions.has(path4.extname(filePath).slice(1).toLowerCase());
|
|
84001
84001
|
var constants3 = {};
|
|
84002
84002
|
(function(exports2) {
|
|
84003
|
-
const { sep:
|
|
84003
|
+
const { sep: sep2 } = require$$0$2;
|
|
84004
84004
|
const { platform } = process;
|
|
84005
84005
|
const os2 = require$$2$1;
|
|
84006
84006
|
exports2.EV_ALL = "all";
|
|
@@ -84028,7 +84028,7 @@ var require_shared = __commonJS({
|
|
|
84028
84028
|
exports2.KEY_ERR = "errHandlers";
|
|
84029
84029
|
exports2.KEY_RAW = "rawEmitters";
|
|
84030
84030
|
exports2.HANDLER_KEYS = [exports2.KEY_LISTENERS, exports2.KEY_ERR, exports2.KEY_RAW];
|
|
84031
|
-
exports2.DOT_SLASH = `.${
|
|
84031
|
+
exports2.DOT_SLASH = `.${sep2}`;
|
|
84032
84032
|
exports2.BACK_SLASH_RE = /\\/g;
|
|
84033
84033
|
exports2.DOUBLE_SLASH_RE = /\/\//;
|
|
84034
84034
|
exports2.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
|
|
@@ -86786,7 +86786,7 @@ var require_is_binary_path = __commonJS({
|
|
|
86786
86786
|
var require_constants5 = __commonJS({
|
|
86787
86787
|
"node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/lib/constants.js"(exports) {
|
|
86788
86788
|
"use strict";
|
|
86789
|
-
var { sep:
|
|
86789
|
+
var { sep: sep2 } = require("path");
|
|
86790
86790
|
var { platform } = process;
|
|
86791
86791
|
var os2 = require("os");
|
|
86792
86792
|
exports.EV_ALL = "all";
|
|
@@ -86814,7 +86814,7 @@ var require_constants5 = __commonJS({
|
|
|
86814
86814
|
exports.KEY_ERR = "errHandlers";
|
|
86815
86815
|
exports.KEY_RAW = "rawEmitters";
|
|
86816
86816
|
exports.HANDLER_KEYS = [exports.KEY_LISTENERS, exports.KEY_ERR, exports.KEY_RAW];
|
|
86817
|
-
exports.DOT_SLASH = `.${
|
|
86817
|
+
exports.DOT_SLASH = `.${sep2}`;
|
|
86818
86818
|
exports.BACK_SLASH_RE = /\\/g;
|
|
86819
86819
|
exports.DOUBLE_SLASH_RE = /\/\//;
|
|
86820
86820
|
exports.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
|
|
@@ -98584,8 +98584,8 @@ var require_select = __commonJS({
|
|
|
98584
98584
|
separator() {
|
|
98585
98585
|
if (this.options.separator)
|
|
98586
98586
|
return super.separator();
|
|
98587
|
-
let
|
|
98588
|
-
return this.state.submitted ? super.separator() :
|
|
98587
|
+
let sep2 = this.styles.muted(this.symbols.ellipsis);
|
|
98588
|
+
return this.state.submitted ? super.separator() : sep2;
|
|
98589
98589
|
}
|
|
98590
98590
|
pointer(choice, i) {
|
|
98591
98591
|
return !this.multiple || this.options.pointer ? super.pointer(choice, i) : "";
|
|
@@ -98949,8 +98949,8 @@ var require_form = __commonJS({
|
|
|
98949
98949
|
return choice.input ? "\u29BF" : "\u2299";
|
|
98950
98950
|
}
|
|
98951
98951
|
async choiceSeparator(choice, i) {
|
|
98952
|
-
let
|
|
98953
|
-
return
|
|
98952
|
+
let sep2 = await this.resolve(choice.separator, this.state, choice, i) || ":";
|
|
98953
|
+
return sep2 ? " " + this.styles.disabled(sep2) : "";
|
|
98954
98954
|
}
|
|
98955
98955
|
async renderChoice(choice, i) {
|
|
98956
98956
|
await this.onChoice(choice, i);
|
|
@@ -98960,7 +98960,7 @@ var require_form = __commonJS({
|
|
|
98960
98960
|
let help = hint;
|
|
98961
98961
|
let focused = this.index === i;
|
|
98962
98962
|
let validate = choice.validate || (() => true);
|
|
98963
|
-
let
|
|
98963
|
+
let sep2 = await this.choiceSeparator(choice, i);
|
|
98964
98964
|
let msg = choice.message;
|
|
98965
98965
|
if (this.align === "right")
|
|
98966
98966
|
msg = msg.padStart(this.longest + 1, " ");
|
|
@@ -98974,7 +98974,7 @@ var require_form = __commonJS({
|
|
|
98974
98974
|
let style = styles[color];
|
|
98975
98975
|
let indicator = style(await this.indicator(choice, i)) + (choice.pad || "");
|
|
98976
98976
|
let indent = this.indent(choice);
|
|
98977
|
-
let line = () => [indent, indicator, msg +
|
|
98977
|
+
let line = () => [indent, indicator, msg + sep2, input, help].filter(Boolean).join(" ");
|
|
98978
98978
|
if (state.submitted) {
|
|
98979
98979
|
msg = colors.unstyle(msg);
|
|
98980
98980
|
input = submitted(input);
|
|
@@ -99130,10 +99130,10 @@ var require_boolean = __commonJS({
|
|
|
99130
99130
|
async render() {
|
|
99131
99131
|
let { input, size } = this.state;
|
|
99132
99132
|
let prefix = await this.prefix();
|
|
99133
|
-
let
|
|
99133
|
+
let sep2 = await this.separator();
|
|
99134
99134
|
let msg = await this.message();
|
|
99135
99135
|
let hint = this.styles.muted(this.default);
|
|
99136
|
-
let promptLine = [prefix, msg, hint,
|
|
99136
|
+
let promptLine = [prefix, msg, hint, sep2].filter(Boolean).join(" ");
|
|
99137
99137
|
this.state.prompt = promptLine;
|
|
99138
99138
|
let header = await this.header();
|
|
99139
99139
|
let value = this.value = this.cast(input);
|
|
@@ -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);
|
|
@@ -113920,7 +113935,7 @@ var PathScurryBase = class {
|
|
|
113920
113935
|
*
|
|
113921
113936
|
* @internal
|
|
113922
113937
|
*/
|
|
113923
|
-
constructor(cwd = process.cwd(), pathImpl,
|
|
113938
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
|
|
113924
113939
|
this.#fs = fsFromOption(fs);
|
|
113925
113940
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
113926
113941
|
cwd = (0, import_url.fileURLToPath)(cwd);
|
|
@@ -113931,7 +113946,7 @@ var PathScurryBase = class {
|
|
|
113931
113946
|
this.#resolveCache = new ResolveCache();
|
|
113932
113947
|
this.#resolvePosixCache = new ResolveCache();
|
|
113933
113948
|
this.#children = new ChildrenCache(childrenCacheSize);
|
|
113934
|
-
const split = cwdPath.substring(this.rootPath.length).split(
|
|
113949
|
+
const split = cwdPath.substring(this.rootPath.length).split(sep2);
|
|
113935
113950
|
if (split.length === 1 && !split[0]) {
|
|
113936
113951
|
split.pop();
|
|
113937
113952
|
}
|
|
@@ -115557,15 +115572,9 @@ var import_fileutils = require("nx/src/utils/fileutils");
|
|
|
115557
115572
|
var import_prettier = require("prettier");
|
|
115558
115573
|
|
|
115559
115574
|
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
115560
|
-
var import_node_path6 = require("node:path");
|
|
115561
115575
|
var removeExtension = (filePath) => {
|
|
115562
115576
|
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
115563
115577
|
};
|
|
115564
|
-
function findFileName(filePath) {
|
|
115565
|
-
return filePath?.split(
|
|
115566
|
-
filePath?.includes(import_node_path6.sep) ? import_node_path6.sep : filePath?.includes("/") ? "/" : "\\"
|
|
115567
|
-
)?.pop() ?? "";
|
|
115568
|
-
}
|
|
115569
115578
|
|
|
115570
115579
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
115571
115580
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
@@ -115591,7 +115600,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
115591
115600
|
config,
|
|
115592
115601
|
`\u2699\uFE0F Executor options:
|
|
115593
115602
|
${Object.keys(options).map(
|
|
115594
|
-
(key) => `${key}: ${!options[key] ||
|
|
115603
|
+
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
115595
115604
|
).join("\n")}
|
|
115596
115605
|
`
|
|
115597
115606
|
);
|
|
@@ -115906,7 +115915,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
115906
115915
|
outputPath = (0, import_devkit3.joinPathFragments)(
|
|
115907
115916
|
options.outputPath,
|
|
115908
115917
|
"dist",
|
|
115909
|
-
outputPath.
|
|
115918
|
+
outputPath.includes("/") ? outputPath.substring(0, outputPath.lastIndexOf("/")) : ""
|
|
115910
115919
|
);
|
|
115911
115920
|
writeInfo(config, `*** Build output path: ${outputPath} ***`);
|
|
115912
115921
|
return runTsupBuild(
|
|
@@ -115935,7 +115944,7 @@ var executor_default = withRunExecutor("TypeScript Build using tsup", tsupExecut
|
|
|
115935
115944
|
applyDefaultOptions
|
|
115936
115945
|
}
|
|
115937
115946
|
});
|
|
115938
|
-
var
|
|
115947
|
+
var _isPrimitive2 = (value) => {
|
|
115939
115948
|
try {
|
|
115940
115949
|
return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
|
|
115941
115950
|
} catch (e) {
|