@storm-software/workspace-tools 1.49.17 → 1.49.18
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 +1 -1
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +17 -23
- package/src/executors/tsup-browser/executor.js +15 -21
- package/src/executors/tsup-neutral/executor.js +15 -21
- package/src/executors/tsup-node/executor.js +15 -21
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());
|
|
@@ -115515,7 +115509,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
|
115515
115509
|
}
|
|
115516
115510
|
},
|
|
115517
115511
|
ts.sys,
|
|
115518
|
-
(0,
|
|
115512
|
+
(0, import_node_path5.dirname)(options.tsConfig)
|
|
115519
115513
|
);
|
|
115520
115514
|
tsConfig.options.pathsBasePath = workspaceRoot;
|
|
115521
115515
|
if (tsConfig.options.incremental && !tsConfig.options.tsBuildInfoFile) {
|
|
@@ -115876,7 +115870,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
115876
115870
|
outputPath = (0, import_devkit3.joinPathFragments)(
|
|
115877
115871
|
options.outputPath,
|
|
115878
115872
|
"dist",
|
|
115879
|
-
outputPath.
|
|
115873
|
+
outputPath.includes("/") ? outputPath.substring(0, outputPath.lastIndexOf("/")) : ""
|
|
115880
115874
|
);
|
|
115881
115875
|
writeInfo(config, `*** Build output path: ${outputPath} ***`);
|
|
115882
115876
|
return runTsupBuild(
|
|
@@ -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);
|
|
@@ -113920,7 +113920,7 @@ var PathScurryBase = class {
|
|
|
113920
113920
|
*
|
|
113921
113921
|
* @internal
|
|
113922
113922
|
*/
|
|
113923
|
-
constructor(cwd = process.cwd(), pathImpl,
|
|
113923
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
|
|
113924
113924
|
this.#fs = fsFromOption(fs);
|
|
113925
113925
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
113926
113926
|
cwd = (0, import_url.fileURLToPath)(cwd);
|
|
@@ -113931,7 +113931,7 @@ var PathScurryBase = class {
|
|
|
113931
113931
|
this.#resolveCache = new ResolveCache();
|
|
113932
113932
|
this.#resolvePosixCache = new ResolveCache();
|
|
113933
113933
|
this.#children = new ChildrenCache(childrenCacheSize);
|
|
113934
|
-
const split = cwdPath.substring(this.rootPath.length).split(
|
|
113934
|
+
const split = cwdPath.substring(this.rootPath.length).split(sep2);
|
|
113935
113935
|
if (split.length === 1 && !split[0]) {
|
|
113936
113936
|
split.pop();
|
|
113937
113937
|
}
|
|
@@ -115557,15 +115557,9 @@ var import_fileutils = require("nx/src/utils/fileutils");
|
|
|
115557
115557
|
var import_prettier = require("prettier");
|
|
115558
115558
|
|
|
115559
115559
|
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
115560
|
-
var import_node_path6 = require("node:path");
|
|
115561
115560
|
var removeExtension = (filePath) => {
|
|
115562
115561
|
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
115563
115562
|
};
|
|
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
115563
|
|
|
115570
115564
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
115571
115565
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
@@ -115906,7 +115900,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
115906
115900
|
outputPath = (0, import_devkit3.joinPathFragments)(
|
|
115907
115901
|
options.outputPath,
|
|
115908
115902
|
"dist",
|
|
115909
|
-
outputPath.
|
|
115903
|
+
outputPath.includes("/") ? outputPath.substring(0, outputPath.lastIndexOf("/")) : ""
|
|
115910
115904
|
);
|
|
115911
115905
|
writeInfo(config, `*** Build output path: ${outputPath} ***`);
|
|
115912
115906
|
return runTsupBuild(
|
|
@@ -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);
|
|
@@ -113920,7 +113920,7 @@ var PathScurryBase = class {
|
|
|
113920
113920
|
*
|
|
113921
113921
|
* @internal
|
|
113922
113922
|
*/
|
|
113923
|
-
constructor(cwd = process.cwd(), pathImpl,
|
|
113923
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
|
|
113924
113924
|
this.#fs = fsFromOption(fs);
|
|
113925
113925
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
113926
113926
|
cwd = (0, import_url.fileURLToPath)(cwd);
|
|
@@ -113931,7 +113931,7 @@ var PathScurryBase = class {
|
|
|
113931
113931
|
this.#resolveCache = new ResolveCache();
|
|
113932
113932
|
this.#resolvePosixCache = new ResolveCache();
|
|
113933
113933
|
this.#children = new ChildrenCache(childrenCacheSize);
|
|
113934
|
-
const split = cwdPath.substring(this.rootPath.length).split(
|
|
113934
|
+
const split = cwdPath.substring(this.rootPath.length).split(sep2);
|
|
113935
113935
|
if (split.length === 1 && !split[0]) {
|
|
113936
113936
|
split.pop();
|
|
113937
113937
|
}
|
|
@@ -115557,15 +115557,9 @@ var import_fileutils = require("nx/src/utils/fileutils");
|
|
|
115557
115557
|
var import_prettier = require("prettier");
|
|
115558
115558
|
|
|
115559
115559
|
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
115560
|
-
var import_node_path6 = require("node:path");
|
|
115561
115560
|
var removeExtension = (filePath) => {
|
|
115562
115561
|
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
115563
115562
|
};
|
|
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
115563
|
|
|
115570
115564
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
115571
115565
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
@@ -115906,7 +115900,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
115906
115900
|
outputPath = (0, import_devkit3.joinPathFragments)(
|
|
115907
115901
|
options.outputPath,
|
|
115908
115902
|
"dist",
|
|
115909
|
-
outputPath.
|
|
115903
|
+
outputPath.includes("/") ? outputPath.substring(0, outputPath.lastIndexOf("/")) : ""
|
|
115910
115904
|
);
|
|
115911
115905
|
writeInfo(config, `*** Build output path: ${outputPath} ***`);
|
|
115912
115906
|
return runTsupBuild(
|
|
@@ -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);
|
|
@@ -113920,7 +113920,7 @@ var PathScurryBase = class {
|
|
|
113920
113920
|
*
|
|
113921
113921
|
* @internal
|
|
113922
113922
|
*/
|
|
113923
|
-
constructor(cwd = process.cwd(), pathImpl,
|
|
113923
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
|
|
113924
113924
|
this.#fs = fsFromOption(fs);
|
|
113925
113925
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
113926
113926
|
cwd = (0, import_url.fileURLToPath)(cwd);
|
|
@@ -113931,7 +113931,7 @@ var PathScurryBase = class {
|
|
|
113931
113931
|
this.#resolveCache = new ResolveCache();
|
|
113932
113932
|
this.#resolvePosixCache = new ResolveCache();
|
|
113933
113933
|
this.#children = new ChildrenCache(childrenCacheSize);
|
|
113934
|
-
const split = cwdPath.substring(this.rootPath.length).split(
|
|
113934
|
+
const split = cwdPath.substring(this.rootPath.length).split(sep2);
|
|
113935
113935
|
if (split.length === 1 && !split[0]) {
|
|
113936
113936
|
split.pop();
|
|
113937
113937
|
}
|
|
@@ -115557,15 +115557,9 @@ var import_fileutils = require("nx/src/utils/fileutils");
|
|
|
115557
115557
|
var import_prettier = require("prettier");
|
|
115558
115558
|
|
|
115559
115559
|
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
115560
|
-
var import_node_path6 = require("node:path");
|
|
115561
115560
|
var removeExtension = (filePath) => {
|
|
115562
115561
|
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
115563
115562
|
};
|
|
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
115563
|
|
|
115570
115564
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
115571
115565
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
@@ -115906,7 +115900,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
115906
115900
|
outputPath = (0, import_devkit3.joinPathFragments)(
|
|
115907
115901
|
options.outputPath,
|
|
115908
115902
|
"dist",
|
|
115909
|
-
outputPath.
|
|
115903
|
+
outputPath.includes("/") ? outputPath.substring(0, outputPath.lastIndexOf("/")) : ""
|
|
115910
115904
|
);
|
|
115911
115905
|
writeInfo(config, `*** Build output path: ${outputPath} ***`);
|
|
115912
115906
|
return runTsupBuild(
|