@storm-software/workspace-tools 1.16.17 → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/index.js +408 -285
- package/meta.json +1 -1
- package/package.json +2 -1
- package/src/executors/tsup/executor.js +385 -264
- package/src/executors/tsup/get-config.js +61 -201
package/index.js
CHANGED
|
@@ -450,7 +450,7 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
450
450
|
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
451
451
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
452
452
|
}
|
|
453
|
-
function __addDisposableResource(
|
|
453
|
+
function __addDisposableResource(env, value, async) {
|
|
454
454
|
if (value !== null && value !== void 0) {
|
|
455
455
|
if (typeof value !== "object" && typeof value !== "function")
|
|
456
456
|
throw new TypeError("Object expected.");
|
|
@@ -467,20 +467,20 @@ function __addDisposableResource(env2, value, async) {
|
|
|
467
467
|
}
|
|
468
468
|
if (typeof dispose !== "function")
|
|
469
469
|
throw new TypeError("Object not disposable.");
|
|
470
|
-
|
|
470
|
+
env.stack.push({ value, dispose, async });
|
|
471
471
|
} else if (async) {
|
|
472
|
-
|
|
472
|
+
env.stack.push({ async: true });
|
|
473
473
|
}
|
|
474
474
|
return value;
|
|
475
475
|
}
|
|
476
|
-
function __disposeResources(
|
|
476
|
+
function __disposeResources(env) {
|
|
477
477
|
function fail(e) {
|
|
478
|
-
|
|
479
|
-
|
|
478
|
+
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
479
|
+
env.hasError = true;
|
|
480
480
|
}
|
|
481
481
|
function next() {
|
|
482
|
-
while (
|
|
483
|
-
var rec =
|
|
482
|
+
while (env.stack.length) {
|
|
483
|
+
var rec = env.stack.pop();
|
|
484
484
|
try {
|
|
485
485
|
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
486
486
|
if (rec.async)
|
|
@@ -492,8 +492,8 @@ function __disposeResources(env2) {
|
|
|
492
492
|
fail(e);
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
if (
|
|
496
|
-
throw
|
|
495
|
+
if (env.hasError)
|
|
496
|
+
throw env.error;
|
|
497
497
|
}
|
|
498
498
|
return next();
|
|
499
499
|
}
|
|
@@ -578,6 +578,238 @@ var init_tslib_es6 = __esm({
|
|
|
578
578
|
}
|
|
579
579
|
});
|
|
580
580
|
|
|
581
|
+
// node_modules/.pnpm/@anatine+esbuild-decorators@0.2.19_esbuild@0.14.54/node_modules/@anatine/esbuild-decorators/src/lib/strip-it.js
|
|
582
|
+
var require_strip_it = __commonJS({
|
|
583
|
+
"node_modules/.pnpm/@anatine+esbuild-decorators@0.2.19_esbuild@0.14.54/node_modules/@anatine/esbuild-decorators/src/lib/strip-it.js"(exports) {
|
|
584
|
+
"use strict";
|
|
585
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
586
|
+
exports.strip = void 0;
|
|
587
|
+
var TextNode = class {
|
|
588
|
+
constructor(node) {
|
|
589
|
+
this.type = node.type;
|
|
590
|
+
this.value = node.value;
|
|
591
|
+
this.match = node.match;
|
|
592
|
+
this.newline = node.newline || "";
|
|
593
|
+
}
|
|
594
|
+
get protected() {
|
|
595
|
+
return Boolean(this.match) && this.match[1] === "!";
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
var TextBlock = class extends TextNode {
|
|
599
|
+
constructor(node) {
|
|
600
|
+
super(node);
|
|
601
|
+
this.nodes = node.nodes || [];
|
|
602
|
+
}
|
|
603
|
+
push(node) {
|
|
604
|
+
this.nodes.push(node);
|
|
605
|
+
}
|
|
606
|
+
get protected() {
|
|
607
|
+
return this.nodes.length > 0 && this.nodes[0].protected === true;
|
|
608
|
+
}
|
|
609
|
+
};
|
|
610
|
+
var constants = {
|
|
611
|
+
ESCAPED_CHAR_REGEX: /^\\./,
|
|
612
|
+
QUOTED_STRING_REGEX: /^(['"`])((?:\\.|[^\1])+?)(\1)/,
|
|
613
|
+
NEWLINE_REGEX: /^\r*\n/,
|
|
614
|
+
BLOCK_OPEN_REGEX: /^\/\*\*?(!?)/,
|
|
615
|
+
BLOCK_CLOSE_REGEX: /^\*\/(\n?)/,
|
|
616
|
+
LINE_REGEX: /^\/\/(!?).*/
|
|
617
|
+
};
|
|
618
|
+
var parse = (input) => {
|
|
619
|
+
const cst = new TextBlock({ type: "root", nodes: [] });
|
|
620
|
+
const stack = [cst];
|
|
621
|
+
const { ESCAPED_CHAR_REGEX, QUOTED_STRING_REGEX, NEWLINE_REGEX, BLOCK_CLOSE_REGEX, BLOCK_OPEN_REGEX, LINE_REGEX } = constants;
|
|
622
|
+
let block = cst;
|
|
623
|
+
let remaining = input;
|
|
624
|
+
let token;
|
|
625
|
+
let prev;
|
|
626
|
+
const consume = (value = remaining[0] || "") => {
|
|
627
|
+
remaining = remaining.slice(value.length);
|
|
628
|
+
return value;
|
|
629
|
+
};
|
|
630
|
+
const scan = (regex, type = "text") => {
|
|
631
|
+
const match2 = regex.exec(remaining);
|
|
632
|
+
if (match2) {
|
|
633
|
+
consume(match2[0]);
|
|
634
|
+
return { type, value: match2[0], match: match2 };
|
|
635
|
+
}
|
|
636
|
+
};
|
|
637
|
+
const push = (node) => {
|
|
638
|
+
if (prev && prev.type === "text" && node.type === "text") {
|
|
639
|
+
prev.value += node.value;
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
block.push(node);
|
|
643
|
+
if (node.nodes) {
|
|
644
|
+
stack.push(node);
|
|
645
|
+
block = node;
|
|
646
|
+
}
|
|
647
|
+
prev = node;
|
|
648
|
+
};
|
|
649
|
+
const pop = () => {
|
|
650
|
+
if (block.type === "root") {
|
|
651
|
+
throw new SyntaxError("Unclosed block comment");
|
|
652
|
+
}
|
|
653
|
+
stack.pop();
|
|
654
|
+
block = stack[stack.length - 1];
|
|
655
|
+
};
|
|
656
|
+
while (remaining !== "") {
|
|
657
|
+
if (token = scan(ESCAPED_CHAR_REGEX, "text")) {
|
|
658
|
+
push(new TextNode(token));
|
|
659
|
+
continue;
|
|
660
|
+
}
|
|
661
|
+
if (block.type !== "block" && (!prev || !/\w$/.test(prev.value))) {
|
|
662
|
+
if (token = scan(QUOTED_STRING_REGEX, "line")) {
|
|
663
|
+
push(new TextNode(token));
|
|
664
|
+
continue;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
if (token = scan(NEWLINE_REGEX, "newline")) {
|
|
668
|
+
push(new TextNode(token));
|
|
669
|
+
continue;
|
|
670
|
+
}
|
|
671
|
+
if (token = scan(BLOCK_OPEN_REGEX, "open")) {
|
|
672
|
+
push(new TextBlock({ type: "block" }));
|
|
673
|
+
push(new TextNode(token));
|
|
674
|
+
continue;
|
|
675
|
+
}
|
|
676
|
+
if (block.type === "block") {
|
|
677
|
+
if (token = scan(BLOCK_CLOSE_REGEX, "close")) {
|
|
678
|
+
token.newline = token.match[1] || "";
|
|
679
|
+
push(new TextNode(token));
|
|
680
|
+
pop();
|
|
681
|
+
continue;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
if (block.type !== "block") {
|
|
685
|
+
if (token = scan(LINE_REGEX, "line")) {
|
|
686
|
+
push(new TextNode(token));
|
|
687
|
+
continue;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
push(new TextNode({ type: "text", value: consume(remaining[0]) }));
|
|
691
|
+
}
|
|
692
|
+
return cst;
|
|
693
|
+
};
|
|
694
|
+
var compile = (cst) => {
|
|
695
|
+
const walk = (node) => {
|
|
696
|
+
let output = "";
|
|
697
|
+
for (const child of node.nodes) {
|
|
698
|
+
switch (child.type) {
|
|
699
|
+
case "block":
|
|
700
|
+
break;
|
|
701
|
+
case "line":
|
|
702
|
+
break;
|
|
703
|
+
case "open":
|
|
704
|
+
case "close":
|
|
705
|
+
case "text":
|
|
706
|
+
case "newline":
|
|
707
|
+
default: {
|
|
708
|
+
output += child.value || "";
|
|
709
|
+
break;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
return output;
|
|
714
|
+
};
|
|
715
|
+
return walk(cst);
|
|
716
|
+
};
|
|
717
|
+
var strip = (input) => compile(parse(input));
|
|
718
|
+
exports.strip = strip;
|
|
719
|
+
}
|
|
720
|
+
});
|
|
721
|
+
|
|
722
|
+
// node_modules/.pnpm/@anatine+esbuild-decorators@0.2.19_esbuild@0.14.54/node_modules/@anatine/esbuild-decorators/src/lib/esbuild-decorators.js
|
|
723
|
+
var require_esbuild_decorators = __commonJS({
|
|
724
|
+
"node_modules/.pnpm/@anatine+esbuild-decorators@0.2.19_esbuild@0.14.54/node_modules/@anatine/esbuild-decorators/src/lib/esbuild-decorators.js"(exports) {
|
|
725
|
+
"use strict";
|
|
726
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
727
|
+
exports.esbuildDecorators = void 0;
|
|
728
|
+
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
729
|
+
var fs_1 = require("fs");
|
|
730
|
+
var path_1 = require("path");
|
|
731
|
+
var typescript_1 = require("typescript");
|
|
732
|
+
var util_1 = require("util");
|
|
733
|
+
var strip_it_1 = require_strip_it();
|
|
734
|
+
var { readFile } = fs_1.promises;
|
|
735
|
+
var theFinder = new RegExp(/((?<![(\s]\s*['"])@\w[.[\]\w\d]*\s*(?![;])[((?=\s)])/);
|
|
736
|
+
var findDecorators = (fileContent) => theFinder.test((0, strip_it_1.strip)(fileContent));
|
|
737
|
+
var esbuildDecorators2 = (options = {}) => ({
|
|
738
|
+
name: "tsc",
|
|
739
|
+
setup(build2) {
|
|
740
|
+
var _a, _b, _c;
|
|
741
|
+
const cwd = options.cwd || process.cwd();
|
|
742
|
+
const tsconfigPath = options.tsconfig || ((_a = build2.initialOptions) === null || _a === void 0 ? void 0 : _a.tsconfig) || (0, path_1.join)(cwd, "./tsconfig.json");
|
|
743
|
+
const forceTsc = (_b = options.force) !== null && _b !== void 0 ? _b : false;
|
|
744
|
+
const tsx = (_c = options.tsx) !== null && _c !== void 0 ? _c : true;
|
|
745
|
+
let parsedTsConfig = null;
|
|
746
|
+
build2.onLoad({ filter: tsx ? /\.tsx?$/ : /\.ts$/ }, (args) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
747
|
+
if (!parsedTsConfig) {
|
|
748
|
+
parsedTsConfig = parseTsConfig(tsconfigPath, cwd);
|
|
749
|
+
if (parsedTsConfig.options.sourcemap) {
|
|
750
|
+
parsedTsConfig.options.sourcemap = false;
|
|
751
|
+
parsedTsConfig.options.inlineSources = true;
|
|
752
|
+
parsedTsConfig.options.inlineSourceMap = true;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
if (!forceTsc && (!parsedTsConfig || !parsedTsConfig.options || !parsedTsConfig.options.emitDecoratorMetadata)) {
|
|
756
|
+
return;
|
|
757
|
+
}
|
|
758
|
+
const ts2 = yield readFile(args.path, "utf8").catch((err) => printDiagnostics({ file: args.path, err }));
|
|
759
|
+
const hasDecorator = findDecorators(ts2);
|
|
760
|
+
if (!ts2 || !hasDecorator) {
|
|
761
|
+
return;
|
|
762
|
+
}
|
|
763
|
+
const program = (0, typescript_1.transpileModule)(ts2, {
|
|
764
|
+
compilerOptions: parsedTsConfig.options
|
|
765
|
+
});
|
|
766
|
+
return { contents: program.outputText };
|
|
767
|
+
}));
|
|
768
|
+
}
|
|
769
|
+
});
|
|
770
|
+
exports.esbuildDecorators = esbuildDecorators2;
|
|
771
|
+
function parseTsConfig(tsconfig, cwd = process.cwd()) {
|
|
772
|
+
const fileName = (0, typescript_1.findConfigFile)(cwd, typescript_1.sys.fileExists, tsconfig);
|
|
773
|
+
if (tsconfig !== void 0 && !fileName)
|
|
774
|
+
throw new Error(`failed to open '${fileName}'`);
|
|
775
|
+
let loadedConfig = {};
|
|
776
|
+
let baseDir = cwd;
|
|
777
|
+
if (fileName) {
|
|
778
|
+
const text = typescript_1.sys.readFile(fileName);
|
|
779
|
+
if (text === void 0)
|
|
780
|
+
throw new Error(`failed to read '${fileName}'`);
|
|
781
|
+
const result = (0, typescript_1.parseConfigFileTextToJson)(fileName, text);
|
|
782
|
+
if (result.error !== void 0) {
|
|
783
|
+
printDiagnostics(result.error);
|
|
784
|
+
throw new Error(`failed to parse '${fileName}'`);
|
|
785
|
+
}
|
|
786
|
+
loadedConfig = result.config;
|
|
787
|
+
baseDir = (0, path_1.dirname)(fileName);
|
|
788
|
+
}
|
|
789
|
+
const parsedTsConfig = (0, typescript_1.parseJsonConfigFileContent)(loadedConfig, typescript_1.sys, baseDir);
|
|
790
|
+
if (parsedTsConfig.errors[0])
|
|
791
|
+
printDiagnostics(parsedTsConfig.errors);
|
|
792
|
+
return parsedTsConfig;
|
|
793
|
+
}
|
|
794
|
+
function printDiagnostics(...args) {
|
|
795
|
+
console.log((0, util_1.inspect)(args, false, 10, true));
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
});
|
|
799
|
+
|
|
800
|
+
// node_modules/.pnpm/@anatine+esbuild-decorators@0.2.19_esbuild@0.14.54/node_modules/@anatine/esbuild-decorators/src/index.js
|
|
801
|
+
var require_src = __commonJS({
|
|
802
|
+
"node_modules/.pnpm/@anatine+esbuild-decorators@0.2.19_esbuild@0.14.54/node_modules/@anatine/esbuild-decorators/src/index.js"(exports) {
|
|
803
|
+
"use strict";
|
|
804
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
805
|
+
exports.esbuildDecorators = void 0;
|
|
806
|
+
var esbuild_decorators_1 = require_esbuild_decorators();
|
|
807
|
+
Object.defineProperty(exports, "esbuildDecorators", { enumerable: true, get: function() {
|
|
808
|
+
return esbuild_decorators_1.esbuildDecorators;
|
|
809
|
+
} });
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
|
|
581
813
|
// node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/nx.js
|
|
582
814
|
var require_nx = __commonJS({
|
|
583
815
|
"node_modules/.pnpm/@nx+devkit@17.0.3_nx@17.0.3/node_modules/@nx/devkit/nx.js"(exports) {
|
|
@@ -4107,7 +4339,7 @@ var require_subset = __commonJS({
|
|
|
4107
4339
|
var require_semver2 = __commonJS({
|
|
4108
4340
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/index.js"(exports, module2) {
|
|
4109
4341
|
var internalRe = require_re();
|
|
4110
|
-
var
|
|
4342
|
+
var constants = require_constants();
|
|
4111
4343
|
var SemVer = require_semver();
|
|
4112
4344
|
var identifiers = require_identifiers();
|
|
4113
4345
|
var parse = require_parse();
|
|
@@ -4189,8 +4421,8 @@ var require_semver2 = __commonJS({
|
|
|
4189
4421
|
re: internalRe.re,
|
|
4190
4422
|
src: internalRe.src,
|
|
4191
4423
|
tokens: internalRe.t,
|
|
4192
|
-
SEMVER_SPEC_VERSION:
|
|
4193
|
-
RELEASE_TYPES:
|
|
4424
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
4425
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
4194
4426
|
compareIdentifiers: identifiers.compareIdentifiers,
|
|
4195
4427
|
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
4196
4428
|
};
|
|
@@ -18232,9 +18464,9 @@ var require_devkit = __commonJS({
|
|
|
18232
18464
|
}
|
|
18233
18465
|
});
|
|
18234
18466
|
|
|
18235
|
-
// node_modules/.pnpm/@nx+esbuild@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.8.10_esbuild@0.
|
|
18467
|
+
// node_modules/.pnpm/@nx+esbuild@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.8.10_esbuild@0.14_jlzadk2xcsikuhpeek3jtu6zra/node_modules/@nx/esbuild/src/executors/esbuild/lib/get-extra-dependencies.js
|
|
18236
18468
|
var require_get_extra_dependencies = __commonJS({
|
|
18237
|
-
"node_modules/.pnpm/@nx+esbuild@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.8.10_esbuild@0.
|
|
18469
|
+
"node_modules/.pnpm/@nx+esbuild@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.8.10_esbuild@0.14_jlzadk2xcsikuhpeek3jtu6zra/node_modules/@nx/esbuild/src/executors/esbuild/lib/get-extra-dependencies.js"(exports) {
|
|
18238
18470
|
"use strict";
|
|
18239
18471
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18240
18472
|
exports.getExtraDependencies = void 0;
|
|
@@ -19605,20 +19837,20 @@ var require_supports_color = __commonJS({
|
|
|
19605
19837
|
var os = require("os");
|
|
19606
19838
|
var tty = require("tty");
|
|
19607
19839
|
var hasFlag = require_has_flag();
|
|
19608
|
-
var { env
|
|
19840
|
+
var { env } = process;
|
|
19609
19841
|
var forceColor;
|
|
19610
19842
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
19611
19843
|
forceColor = 0;
|
|
19612
19844
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
19613
19845
|
forceColor = 1;
|
|
19614
19846
|
}
|
|
19615
|
-
if ("FORCE_COLOR" in
|
|
19616
|
-
if (
|
|
19847
|
+
if ("FORCE_COLOR" in env) {
|
|
19848
|
+
if (env.FORCE_COLOR === "true") {
|
|
19617
19849
|
forceColor = 1;
|
|
19618
|
-
} else if (
|
|
19850
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
19619
19851
|
forceColor = 0;
|
|
19620
19852
|
} else {
|
|
19621
|
-
forceColor =
|
|
19853
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
19622
19854
|
}
|
|
19623
19855
|
}
|
|
19624
19856
|
function translateLevel(level) {
|
|
@@ -19646,7 +19878,7 @@ var require_supports_color = __commonJS({
|
|
|
19646
19878
|
return 0;
|
|
19647
19879
|
}
|
|
19648
19880
|
const min = forceColor || 0;
|
|
19649
|
-
if (
|
|
19881
|
+
if (env.TERM === "dumb") {
|
|
19650
19882
|
return min;
|
|
19651
19883
|
}
|
|
19652
19884
|
if (process.platform === "win32") {
|
|
@@ -19656,34 +19888,34 @@ var require_supports_color = __commonJS({
|
|
|
19656
19888
|
}
|
|
19657
19889
|
return 1;
|
|
19658
19890
|
}
|
|
19659
|
-
if ("CI" in
|
|
19660
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in
|
|
19891
|
+
if ("CI" in env) {
|
|
19892
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
19661
19893
|
return 1;
|
|
19662
19894
|
}
|
|
19663
19895
|
return min;
|
|
19664
19896
|
}
|
|
19665
|
-
if ("TEAMCITY_VERSION" in
|
|
19666
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
19897
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
19898
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
19667
19899
|
}
|
|
19668
|
-
if (
|
|
19900
|
+
if (env.COLORTERM === "truecolor") {
|
|
19669
19901
|
return 3;
|
|
19670
19902
|
}
|
|
19671
|
-
if ("TERM_PROGRAM" in
|
|
19672
|
-
const version = parseInt((
|
|
19673
|
-
switch (
|
|
19903
|
+
if ("TERM_PROGRAM" in env) {
|
|
19904
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
19905
|
+
switch (env.TERM_PROGRAM) {
|
|
19674
19906
|
case "iTerm.app":
|
|
19675
19907
|
return version >= 3 ? 3 : 2;
|
|
19676
19908
|
case "Apple_Terminal":
|
|
19677
19909
|
return 2;
|
|
19678
19910
|
}
|
|
19679
19911
|
}
|
|
19680
|
-
if (/-256(color)?$/i.test(
|
|
19912
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
19681
19913
|
return 2;
|
|
19682
19914
|
}
|
|
19683
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
|
|
19915
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
19684
19916
|
return 1;
|
|
19685
19917
|
}
|
|
19686
|
-
if ("COLORTERM" in
|
|
19918
|
+
if ("COLORTERM" in env) {
|
|
19687
19919
|
return 1;
|
|
19688
19920
|
}
|
|
19689
19921
|
return min;
|
|
@@ -21255,7 +21487,7 @@ var require_universalify = __commonJS({
|
|
|
21255
21487
|
// node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
21256
21488
|
var require_polyfills = __commonJS({
|
|
21257
21489
|
"node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
|
|
21258
|
-
var
|
|
21490
|
+
var constants = require("constants");
|
|
21259
21491
|
var origCwd = process.cwd;
|
|
21260
21492
|
var cwd = null;
|
|
21261
21493
|
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
@@ -21280,7 +21512,7 @@ var require_polyfills = __commonJS({
|
|
|
21280
21512
|
var chdir;
|
|
21281
21513
|
module2.exports = patch;
|
|
21282
21514
|
function patch(fs) {
|
|
21283
|
-
if (
|
|
21515
|
+
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
21284
21516
|
patchLchmod(fs);
|
|
21285
21517
|
}
|
|
21286
21518
|
if (!fs.lutimes) {
|
|
@@ -21387,7 +21619,7 @@ var require_polyfills = __commonJS({
|
|
|
21387
21619
|
fs2.lchmod = function(path3, mode, callback) {
|
|
21388
21620
|
fs2.open(
|
|
21389
21621
|
path3,
|
|
21390
|
-
|
|
21622
|
+
constants.O_WRONLY | constants.O_SYMLINK,
|
|
21391
21623
|
mode,
|
|
21392
21624
|
function(err, fd) {
|
|
21393
21625
|
if (err) {
|
|
@@ -21405,7 +21637,7 @@ var require_polyfills = __commonJS({
|
|
|
21405
21637
|
);
|
|
21406
21638
|
};
|
|
21407
21639
|
fs2.lchmodSync = function(path3, mode) {
|
|
21408
|
-
var fd = fs2.openSync(path3,
|
|
21640
|
+
var fd = fs2.openSync(path3, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
21409
21641
|
var threw = true;
|
|
21410
21642
|
var ret;
|
|
21411
21643
|
try {
|
|
@@ -21425,9 +21657,9 @@ var require_polyfills = __commonJS({
|
|
|
21425
21657
|
};
|
|
21426
21658
|
}
|
|
21427
21659
|
function patchLutimes(fs2) {
|
|
21428
|
-
if (
|
|
21660
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs2.futimes) {
|
|
21429
21661
|
fs2.lutimes = function(path3, at, mt, cb) {
|
|
21430
|
-
fs2.open(path3,
|
|
21662
|
+
fs2.open(path3, constants.O_SYMLINK, function(er, fd) {
|
|
21431
21663
|
if (er) {
|
|
21432
21664
|
if (cb)
|
|
21433
21665
|
cb(er);
|
|
@@ -21442,7 +21674,7 @@ var require_polyfills = __commonJS({
|
|
|
21442
21674
|
});
|
|
21443
21675
|
};
|
|
21444
21676
|
fs2.lutimesSync = function(path3, at, mt) {
|
|
21445
|
-
var fd = fs2.openSync(path3,
|
|
21677
|
+
var fd = fs2.openSync(path3, constants.O_SYMLINK);
|
|
21446
21678
|
var ret;
|
|
21447
21679
|
var threw = true;
|
|
21448
21680
|
try {
|
|
@@ -23288,7 +23520,7 @@ var require_jsonfile = __commonJS({
|
|
|
23288
23520
|
return obj;
|
|
23289
23521
|
}
|
|
23290
23522
|
var readFile = universalify.fromPromise(_readFile);
|
|
23291
|
-
function
|
|
23523
|
+
function readFileSync2(file, options = {}) {
|
|
23292
23524
|
if (typeof options === "string") {
|
|
23293
23525
|
options = { encoding: options };
|
|
23294
23526
|
}
|
|
@@ -23313,16 +23545,16 @@ var require_jsonfile = __commonJS({
|
|
|
23313
23545
|
await universalify.fromCallback(fs.writeFile)(file, str, options);
|
|
23314
23546
|
}
|
|
23315
23547
|
var writeFile2 = universalify.fromPromise(_writeFile);
|
|
23316
|
-
function
|
|
23548
|
+
function writeFileSync2(file, obj, options = {}) {
|
|
23317
23549
|
const fs = options.fs || _fs;
|
|
23318
23550
|
const str = stringify(obj, options);
|
|
23319
23551
|
return fs.writeFileSync(file, str, options);
|
|
23320
23552
|
}
|
|
23321
23553
|
var jsonfile = {
|
|
23322
23554
|
readFile,
|
|
23323
|
-
readFileSync:
|
|
23555
|
+
readFileSync: readFileSync2,
|
|
23324
23556
|
writeFile: writeFile2,
|
|
23325
|
-
writeFileSync:
|
|
23557
|
+
writeFileSync: writeFileSync2
|
|
23326
23558
|
};
|
|
23327
23559
|
module2.exports = jsonfile;
|
|
23328
23560
|
}
|
|
@@ -26739,7 +26971,7 @@ var require_scan2 = __commonJS({
|
|
|
26739
26971
|
var require_parse3 = __commonJS({
|
|
26740
26972
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module2) {
|
|
26741
26973
|
"use strict";
|
|
26742
|
-
var
|
|
26974
|
+
var constants = require_constants3();
|
|
26743
26975
|
var utils = require_utils5();
|
|
26744
26976
|
var {
|
|
26745
26977
|
MAX_LENGTH,
|
|
@@ -26747,7 +26979,7 @@ var require_parse3 = __commonJS({
|
|
|
26747
26979
|
REGEX_NON_SPECIAL_CHARS,
|
|
26748
26980
|
REGEX_SPECIAL_CHARS_BACKREF,
|
|
26749
26981
|
REPLACEMENTS
|
|
26750
|
-
} =
|
|
26982
|
+
} = constants;
|
|
26751
26983
|
var expandRange = (args, options) => {
|
|
26752
26984
|
if (typeof options.expandRange === "function") {
|
|
26753
26985
|
return options.expandRange(...args, options);
|
|
@@ -26779,8 +27011,8 @@ var require_parse3 = __commonJS({
|
|
|
26779
27011
|
const tokens = [bos];
|
|
26780
27012
|
const capture = opts.capture ? "" : "?:";
|
|
26781
27013
|
const win322 = utils.isWindows(options);
|
|
26782
|
-
const PLATFORM_CHARS =
|
|
26783
|
-
const EXTGLOB_CHARS =
|
|
27014
|
+
const PLATFORM_CHARS = constants.globChars(win322);
|
|
27015
|
+
const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
|
|
26784
27016
|
const {
|
|
26785
27017
|
DOT_LITERAL,
|
|
26786
27018
|
PLUS_LITERAL,
|
|
@@ -27462,7 +27694,7 @@ var require_parse3 = __commonJS({
|
|
|
27462
27694
|
NO_DOTS_SLASH,
|
|
27463
27695
|
STAR,
|
|
27464
27696
|
START_ANCHOR
|
|
27465
|
-
} =
|
|
27697
|
+
} = constants.globChars(win322);
|
|
27466
27698
|
const nodot = opts.dot ? NO_DOTS : NO_DOT;
|
|
27467
27699
|
const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
|
|
27468
27700
|
const capture = opts.capture ? "" : "?:";
|
|
@@ -27524,7 +27756,7 @@ var require_picomatch = __commonJS({
|
|
|
27524
27756
|
var scan = require_scan2();
|
|
27525
27757
|
var parse = require_parse3();
|
|
27526
27758
|
var utils = require_utils5();
|
|
27527
|
-
var
|
|
27759
|
+
var constants = require_constants3();
|
|
27528
27760
|
var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
27529
27761
|
var picomatch = (glob2, options, returnState = false) => {
|
|
27530
27762
|
if (Array.isArray(glob2)) {
|
|
@@ -27655,7 +27887,7 @@ var require_picomatch = __commonJS({
|
|
|
27655
27887
|
return /$^/;
|
|
27656
27888
|
}
|
|
27657
27889
|
};
|
|
27658
|
-
picomatch.constants =
|
|
27890
|
+
picomatch.constants = constants;
|
|
27659
27891
|
module2.exports = picomatch;
|
|
27660
27892
|
}
|
|
27661
27893
|
});
|
|
@@ -37234,7 +37466,7 @@ var require_library = __commonJS({
|
|
|
37234
37466
|
});
|
|
37235
37467
|
|
|
37236
37468
|
// node_modules/.pnpm/@nx+js@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.8.10_nx@17.0.3_typescript@5.2.2_verdaccio@5.27.0/node_modules/@nx/js/src/index.js
|
|
37237
|
-
var
|
|
37469
|
+
var require_src2 = __commonJS({
|
|
37238
37470
|
"node_modules/.pnpm/@nx+js@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.8.10_nx@17.0.3_typescript@5.2.2_verdaccio@5.27.0/node_modules/@nx/js/src/index.js"(exports) {
|
|
37239
37471
|
"use strict";
|
|
37240
37472
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -40687,7 +40919,7 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
40687
40919
|
}
|
|
40688
40920
|
_fs2.default.mkdirSync(dirPath, { recursive: true });
|
|
40689
40921
|
const gitIgnorePath = _path2.default.join(options.workspaceRoot, "tmp", ".tsup", ".gitignore");
|
|
40690
|
-
|
|
40922
|
+
writeFileSync2(gitIgnorePath, "**/*\n");
|
|
40691
40923
|
return dirPath;
|
|
40692
40924
|
}
|
|
40693
40925
|
var toObjectEntry = (entry) => {
|
|
@@ -40736,7 +40968,7 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
40736
40968
|
function trimDtsExtension(fileName) {
|
|
40737
40969
|
return fileName.replace(/\.d\.(ts|mts|cts)x?$/, "");
|
|
40738
40970
|
}
|
|
40739
|
-
function
|
|
40971
|
+
function writeFileSync2(filePath, content) {
|
|
40740
40972
|
_fs2.default.mkdirSync(_path2.default.dirname(filePath), { recursive: true });
|
|
40741
40973
|
_fs2.default.writeFileSync(filePath, content);
|
|
40742
40974
|
}
|
|
@@ -40757,7 +40989,7 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
40757
40989
|
exports.toObjectEntry = toObjectEntry;
|
|
40758
40990
|
exports.toAbsolutePath = toAbsolutePath;
|
|
40759
40991
|
exports.trimDtsExtension = trimDtsExtension;
|
|
40760
|
-
exports.writeFileSync =
|
|
40992
|
+
exports.writeFileSync = writeFileSync2;
|
|
40761
40993
|
}
|
|
40762
40994
|
});
|
|
40763
40995
|
|
|
@@ -40832,13 +41064,13 @@ var require_chunk_UIX4URMV = __commonJS({
|
|
|
40832
41064
|
});
|
|
40833
41065
|
var _tty = require("tty");
|
|
40834
41066
|
var tty = _interopRequireWildcard(_tty);
|
|
40835
|
-
var
|
|
41067
|
+
var env = process.env || {};
|
|
40836
41068
|
var argv = process.argv || [];
|
|
40837
|
-
var isDisabled = "NO_COLOR" in
|
|
40838
|
-
var isForced = "FORCE_COLOR" in
|
|
41069
|
+
var isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
|
|
41070
|
+
var isForced = "FORCE_COLOR" in env || argv.includes("--color");
|
|
40839
41071
|
var isWindows = process.platform === "win32";
|
|
40840
|
-
var isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) &&
|
|
40841
|
-
var isCI = "CI" in
|
|
41072
|
+
var isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env.TERM && env.TERM !== "dumb";
|
|
41073
|
+
var isCI = "CI" in env && ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
|
|
40842
41074
|
var isColorSupported = !isDisabled && (isForced || isWindows || isCompatibleTerminal || isCI);
|
|
40843
41075
|
var replaceClose = (index, string, close, replace, head = string.substring(0, index) + replace, tail = string.substring(index + close.length), next = tail.indexOf(close)) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
|
|
40844
41076
|
var clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
|
|
@@ -40999,7 +41231,7 @@ var require_lib3 = __commonJS({
|
|
|
40999
41231
|
function _interopRequireDefault(obj) {
|
|
41000
41232
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
41001
41233
|
}
|
|
41002
|
-
var
|
|
41234
|
+
var readFileSync2 = (fp) => {
|
|
41003
41235
|
return _fs.default.readFileSync(fp, "utf8");
|
|
41004
41236
|
};
|
|
41005
41237
|
var pathExists = (fp) => new Promise((resolve) => {
|
|
@@ -41123,7 +41355,7 @@ var require_lib3 = __commonJS({
|
|
|
41123
41355
|
if (this.packageJsonCache.has(filepath2)) {
|
|
41124
41356
|
return this.packageJsonCache.get(filepath2)[options.packageKey];
|
|
41125
41357
|
}
|
|
41126
|
-
const data2 = this.options.parseJSON(
|
|
41358
|
+
const data2 = this.options.parseJSON(readFileSync2(filepath2));
|
|
41127
41359
|
return data2;
|
|
41128
41360
|
}
|
|
41129
41361
|
};
|
|
@@ -41157,7 +41389,7 @@ var require_lib3 = __commonJS({
|
|
|
41157
41389
|
if (this.packageJsonCache.has(filepath2)) {
|
|
41158
41390
|
return this.packageJsonCache.get(filepath2)[options.packageKey];
|
|
41159
41391
|
}
|
|
41160
|
-
const data2 = this.options.parseJSON(
|
|
41392
|
+
const data2 = this.options.parseJSON(readFileSync2(filepath2));
|
|
41161
41393
|
return data2;
|
|
41162
41394
|
}
|
|
41163
41395
|
};
|
|
@@ -42175,7 +42407,7 @@ var require_resolveCommand = __commonJS({
|
|
|
42175
42407
|
var which = require_which();
|
|
42176
42408
|
var getPathKey = require_path_key();
|
|
42177
42409
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
42178
|
-
const
|
|
42410
|
+
const env = parsed.options.env || process.env;
|
|
42179
42411
|
const cwd = process.cwd();
|
|
42180
42412
|
const hasCustomCwd = parsed.options.cwd != null;
|
|
42181
42413
|
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
@@ -42188,7 +42420,7 @@ var require_resolveCommand = __commonJS({
|
|
|
42188
42420
|
let resolved;
|
|
42189
42421
|
try {
|
|
42190
42422
|
resolved = which.sync(parsed.command, {
|
|
42191
|
-
path:
|
|
42423
|
+
path: env[getPathKey({ env })],
|
|
42192
42424
|
pathExt: withoutPathExt ? path3.delimiter : void 0
|
|
42193
42425
|
});
|
|
42194
42426
|
} catch (e) {
|
|
@@ -42473,11 +42705,11 @@ var require_npm_run_path = __commonJS({
|
|
|
42473
42705
|
env: process.env,
|
|
42474
42706
|
...options
|
|
42475
42707
|
};
|
|
42476
|
-
const
|
|
42477
|
-
const path4 = pathKey({ env
|
|
42478
|
-
options.path =
|
|
42479
|
-
|
|
42480
|
-
return
|
|
42708
|
+
const env = { ...options.env };
|
|
42709
|
+
const path4 = pathKey({ env });
|
|
42710
|
+
options.path = env[path4];
|
|
42711
|
+
env[path4] = module2.exports(options);
|
|
42712
|
+
return env;
|
|
42481
42713
|
};
|
|
42482
42714
|
}
|
|
42483
42715
|
});
|
|
@@ -43672,11 +43904,11 @@ var require_execa = __commonJS({
|
|
|
43672
43904
|
var { joinCommand, parseCommand, getEscapedCommand } = require_command();
|
|
43673
43905
|
var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
|
|
43674
43906
|
var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
43675
|
-
const
|
|
43907
|
+
const env = extendEnv ? { ...process.env, ...envOption } : envOption;
|
|
43676
43908
|
if (preferLocal) {
|
|
43677
|
-
return npmRunPath.env({ env
|
|
43909
|
+
return npmRunPath.env({ env, cwd: localDir, execPath });
|
|
43678
43910
|
}
|
|
43679
|
-
return
|
|
43911
|
+
return env;
|
|
43680
43912
|
};
|
|
43681
43913
|
var handleArguments = (file, args, options = {}) => {
|
|
43682
43914
|
const parsed = crossSpawn._parse(file, args, options);
|
|
@@ -67292,7 +67524,7 @@ var require_util4 = __commonJS({
|
|
|
67292
67524
|
var normalize2 = createSafeHandler((url) => {
|
|
67293
67525
|
});
|
|
67294
67526
|
exports.normalize = normalize2;
|
|
67295
|
-
function
|
|
67527
|
+
function join4(aRoot, aPath) {
|
|
67296
67528
|
const pathType = getURLType(aPath);
|
|
67297
67529
|
const rootType = getURLType(aRoot);
|
|
67298
67530
|
aRoot = ensureDirectory(aRoot);
|
|
@@ -67318,7 +67550,7 @@ var require_util4 = __commonJS({
|
|
|
67318
67550
|
const newPath = withBase(aPath, withBase(aRoot, base));
|
|
67319
67551
|
return computeRelativeURL(base, newPath);
|
|
67320
67552
|
}
|
|
67321
|
-
exports.join =
|
|
67553
|
+
exports.join = join4;
|
|
67322
67554
|
function relative(rootURL, targetURL) {
|
|
67323
67555
|
const result = relativeIfPossible(rootURL, targetURL);
|
|
67324
67556
|
return typeof result === "string" ? result : normalize2(targetURL);
|
|
@@ -67348,9 +67580,9 @@ var require_util4 = __commonJS({
|
|
|
67348
67580
|
}
|
|
67349
67581
|
let url = normalize2(sourceURL || "");
|
|
67350
67582
|
if (sourceRoot)
|
|
67351
|
-
url =
|
|
67583
|
+
url = join4(sourceRoot, url);
|
|
67352
67584
|
if (sourceMapURL)
|
|
67353
|
-
url =
|
|
67585
|
+
url = join4(trimFilename(sourceMapURL), url);
|
|
67354
67586
|
return url;
|
|
67355
67587
|
}
|
|
67356
67588
|
exports.computeSourceURL = computeSourceURL;
|
|
@@ -69115,8 +69347,8 @@ var require_source_map = __commonJS({
|
|
|
69115
69347
|
// node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js
|
|
69116
69348
|
var require_native = __commonJS({
|
|
69117
69349
|
"node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js"(exports, module2) {
|
|
69118
|
-
var { existsSync
|
|
69119
|
-
var { join:
|
|
69350
|
+
var { existsSync } = require("node:fs");
|
|
69351
|
+
var { join: join4 } = require("node:path");
|
|
69120
69352
|
var { platform, arch, report } = require("node:process");
|
|
69121
69353
|
var isMusl = () => !report.getReport().header.glibcVersionRuntime;
|
|
69122
69354
|
var bindingsByPlatformAndArch = {
|
|
@@ -69166,7 +69398,7 @@ If this is important to you, please consider supporting Rollup to make a native
|
|
|
69166
69398
|
return imported.base;
|
|
69167
69399
|
}
|
|
69168
69400
|
var localName = `./rollup.${packageBase}.node`;
|
|
69169
|
-
var { parse, parseAsync, xxhashBase64Url } =
|
|
69401
|
+
var { parse, parseAsync, xxhashBase64Url } = existsSync(join4(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
|
|
69170
69402
|
module2.exports.parse = parse;
|
|
69171
69403
|
module2.exports.parseAsync = parseAsync;
|
|
69172
69404
|
module2.exports.xxhashBase64Url = xxhashBase64Url;
|
|
@@ -72743,16 +72975,16 @@ var require_rollup = __commonJS({
|
|
|
72743
72975
|
return outputOptions;
|
|
72744
72976
|
}
|
|
72745
72977
|
var {
|
|
72746
|
-
env
|
|
72978
|
+
env = {},
|
|
72747
72979
|
argv = [],
|
|
72748
72980
|
platform = ""
|
|
72749
72981
|
} = typeof process === "undefined" ? {} : process;
|
|
72750
|
-
var isDisabled = "NO_COLOR" in
|
|
72751
|
-
var isForced = "FORCE_COLOR" in
|
|
72982
|
+
var isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
|
|
72983
|
+
var isForced = "FORCE_COLOR" in env || argv.includes("--color");
|
|
72752
72984
|
var isWindows = platform === "win32";
|
|
72753
|
-
var isDumbTerminal =
|
|
72754
|
-
var isCompatibleTerminal = tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) &&
|
|
72755
|
-
var isCI = "CI" in
|
|
72985
|
+
var isDumbTerminal = env.TERM === "dumb";
|
|
72986
|
+
var isCompatibleTerminal = tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env.TERM && !isDumbTerminal;
|
|
72987
|
+
var isCI = "CI" in env && ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
|
|
72756
72988
|
var isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
|
|
72757
72989
|
var replaceClose = (index, string, close, replace, head = string.substring(0, index) + replace, tail = string.substring(index + close.length), next = tail.indexOf(close)) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
|
|
72758
72990
|
var clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
|
|
@@ -76043,7 +76275,7 @@ var require_rollup = __commonJS({
|
|
|
76043
76275
|
var scan = scan_1;
|
|
76044
76276
|
var parse = parse_1;
|
|
76045
76277
|
var utils = utils$3;
|
|
76046
|
-
var
|
|
76278
|
+
var constants = constants$2;
|
|
76047
76279
|
var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
76048
76280
|
var picomatch$1 = (glob2, options, returnState = false) => {
|
|
76049
76281
|
if (Array.isArray(glob2)) {
|
|
@@ -76174,7 +76406,7 @@ var require_rollup = __commonJS({
|
|
|
76174
76406
|
return /$^/;
|
|
76175
76407
|
}
|
|
76176
76408
|
};
|
|
76177
|
-
picomatch$1.constants =
|
|
76409
|
+
picomatch$1.constants = constants;
|
|
76178
76410
|
var picomatch_1 = picomatch$1;
|
|
76179
76411
|
var picomatch = picomatch_1;
|
|
76180
76412
|
var pm = /* @__PURE__ */ getDefaultExportFromCjs(picomatch);
|
|
@@ -90925,7 +91157,7 @@ var require_shared = __commonJS({
|
|
|
90925
91157
|
var binaryExtensions = binaryExtensions$1;
|
|
90926
91158
|
var extensions = new Set(binaryExtensions);
|
|
90927
91159
|
var isBinaryPath$1 = (filePath) => extensions.has(path3.extname(filePath).slice(1).toLowerCase());
|
|
90928
|
-
var
|
|
91160
|
+
var constants = {};
|
|
90929
91161
|
(function(exports2) {
|
|
90930
91162
|
const { sep: sep2 } = require$$0$2;
|
|
90931
91163
|
const { platform } = process;
|
|
@@ -90983,7 +91215,7 @@ var require_shared = __commonJS({
|
|
|
90983
91215
|
exports2.isMacos = platform === "darwin";
|
|
90984
91216
|
exports2.isLinux = platform === "linux";
|
|
90985
91217
|
exports2.isIBMi = os.type() === "OS400";
|
|
90986
|
-
})(
|
|
91218
|
+
})(constants);
|
|
90987
91219
|
var fs$2 = require$$0$1;
|
|
90988
91220
|
var sysPath$2 = require$$0$2;
|
|
90989
91221
|
var { promisify: promisify$2 } = require$$2;
|
|
@@ -91005,7 +91237,7 @@ var require_shared = __commonJS({
|
|
|
91005
91237
|
STR_END: STR_END$2,
|
|
91006
91238
|
BRACE_START: BRACE_START$1,
|
|
91007
91239
|
STAR
|
|
91008
|
-
} =
|
|
91240
|
+
} = constants;
|
|
91009
91241
|
var THROTTLE_MODE_WATCH = "watch";
|
|
91010
91242
|
var open = promisify$2(fs$2.open);
|
|
91011
91243
|
var stat$2 = promisify$2(fs$2.stat);
|
|
@@ -91527,7 +91759,7 @@ var require_shared = __commonJS({
|
|
|
91527
91759
|
FUNCTION_TYPE: FUNCTION_TYPE$1,
|
|
91528
91760
|
EMPTY_FN: EMPTY_FN$1,
|
|
91529
91761
|
IDENTITY_FN
|
|
91530
|
-
} =
|
|
91762
|
+
} = constants;
|
|
91531
91763
|
var Depth = (value) => isNaN(value) ? {} : { depth: value };
|
|
91532
91764
|
var stat$1 = promisify$1(fs$1.stat);
|
|
91533
91765
|
var lstat2 = promisify$1(fs$1.lstat);
|
|
@@ -91897,7 +92129,7 @@ var require_shared = __commonJS({
|
|
|
91897
92129
|
fseventsHandler.exports = FsEventsHandler$1;
|
|
91898
92130
|
fseventsHandler.exports.canUse = canUse;
|
|
91899
92131
|
var fseventsHandlerExports = fseventsHandler.exports;
|
|
91900
|
-
var { EventEmitter:
|
|
92132
|
+
var { EventEmitter: EventEmitter2 } = require$$0$3;
|
|
91901
92133
|
var fs = require$$0$1;
|
|
91902
92134
|
var sysPath = require$$0$2;
|
|
91903
92135
|
var { promisify } = require$$2;
|
|
@@ -91942,7 +92174,7 @@ var require_shared = __commonJS({
|
|
|
91942
92174
|
isWindows,
|
|
91943
92175
|
isMacos,
|
|
91944
92176
|
isIBMi
|
|
91945
|
-
} =
|
|
92177
|
+
} = constants;
|
|
91946
92178
|
var stat = promisify(fs.stat);
|
|
91947
92179
|
var readdir2 = promisify(fs.readdir);
|
|
91948
92180
|
var arrify = (value = []) => Array.isArray(value) ? value : [value];
|
|
@@ -92118,7 +92350,7 @@ var require_shared = __commonJS({
|
|
|
92118
92350
|
return !this.unmatchedGlob && this.fsw._isntIgnored(this.entryPath(entry), entry.stats);
|
|
92119
92351
|
}
|
|
92120
92352
|
};
|
|
92121
|
-
var FSWatcher = class extends
|
|
92353
|
+
var FSWatcher = class extends EventEmitter2 {
|
|
92122
92354
|
// Not indenting methods for history sake; for now.
|
|
92123
92355
|
constructor(_opts) {
|
|
92124
92356
|
super();
|
|
@@ -94704,7 +94936,7 @@ var require_fsevents_handler = __commonJS({
|
|
|
94704
94936
|
var require_chokidar = __commonJS({
|
|
94705
94937
|
"node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/index.js"(exports) {
|
|
94706
94938
|
"use strict";
|
|
94707
|
-
var { EventEmitter:
|
|
94939
|
+
var { EventEmitter: EventEmitter2 } = require("events");
|
|
94708
94940
|
var fs = require("fs");
|
|
94709
94941
|
var sysPath = require("path");
|
|
94710
94942
|
var { promisify } = require("util");
|
|
@@ -94925,7 +95157,7 @@ var require_chokidar = __commonJS({
|
|
|
94925
95157
|
return !this.unmatchedGlob && this.fsw._isntIgnored(this.entryPath(entry), entry.stats);
|
|
94926
95158
|
}
|
|
94927
95159
|
};
|
|
94928
|
-
var FSWatcher = class extends
|
|
95160
|
+
var FSWatcher = class extends EventEmitter2 {
|
|
94929
95161
|
// Not indenting methods for history sake; for now.
|
|
94930
95162
|
constructor(_opts) {
|
|
94931
95163
|
super();
|
|
@@ -97143,11 +97375,11 @@ var require_dist5 = __commonJS({
|
|
|
97143
97375
|
];
|
|
97144
97376
|
const outDir = options.outDir;
|
|
97145
97377
|
const outExtension2 = getOutputExtensionMap(options, format2, pkg.type);
|
|
97146
|
-
const
|
|
97378
|
+
const env = {
|
|
97147
97379
|
...options.env
|
|
97148
97380
|
};
|
|
97149
97381
|
if (options.replaceNodeEnv) {
|
|
97150
|
-
|
|
97382
|
+
env.NODE_ENV = options.minify || options.minifyWhitespace ? "production" : "development";
|
|
97151
97383
|
}
|
|
97152
97384
|
logger3.info(format2, "Build start");
|
|
97153
97385
|
const startTime = Date.now();
|
|
@@ -97241,8 +97473,8 @@ var require_dist5 = __commonJS({
|
|
|
97241
97473
|
"import.meta.url": "importMetaUrl"
|
|
97242
97474
|
} : {},
|
|
97243
97475
|
...options.define,
|
|
97244
|
-
...Object.keys(
|
|
97245
|
-
const value = JSON.stringify(
|
|
97476
|
+
...Object.keys(env).reduce((res, key) => {
|
|
97477
|
+
const value = JSON.stringify(env[key]);
|
|
97246
97478
|
return {
|
|
97247
97479
|
...res,
|
|
97248
97480
|
[`process.env.${key}`]: value,
|
|
@@ -98376,9 +98608,10 @@ __export(workspace_tools_exports, {
|
|
|
98376
98608
|
module.exports = __toCommonJS(workspace_tools_exports);
|
|
98377
98609
|
|
|
98378
98610
|
// packages/workspace-tools/src/executors/tsup/executor.ts
|
|
98611
|
+
var import_esbuild_decorators = __toESM(require_src());
|
|
98379
98612
|
var import_devkit = __toESM(require_devkit());
|
|
98380
98613
|
var import_get_extra_dependencies = __toESM(require_get_extra_dependencies());
|
|
98381
|
-
var import_js = __toESM(
|
|
98614
|
+
var import_js = __toESM(require_src2());
|
|
98382
98615
|
var import_normalize_options = __toESM(require_normalize_options());
|
|
98383
98616
|
var import_tsc = __toESM(require_tsc_impl());
|
|
98384
98617
|
var import_decky = __toESM(require_decky());
|
|
@@ -104561,7 +104794,6 @@ var glob = Object.assign(glob_, {
|
|
|
104561
104794
|
glob.glob = glob;
|
|
104562
104795
|
|
|
104563
104796
|
// packages/workspace-tools/src/executors/tsup/executor.ts
|
|
104564
|
-
var import_node_events = require("node:events");
|
|
104565
104797
|
var import_project_graph = require("nx/src/project-graph/project-graph");
|
|
104566
104798
|
var import_fileutils = require("nx/src/utils/fileutils");
|
|
104567
104799
|
var import_path3 = require("path");
|
|
@@ -104622,149 +104854,6 @@ var removeExtension = (filePath) => {
|
|
|
104622
104854
|
// packages/workspace-tools/src/executors/tsup/get-config.ts
|
|
104623
104855
|
var import_path2 = require("path");
|
|
104624
104856
|
var import_tsup = __toESM(require_dist5());
|
|
104625
|
-
|
|
104626
|
-
// packages/workspace-tools/src/utils/find-cache-dir.ts
|
|
104627
|
-
var import_node_fs = require("node:fs");
|
|
104628
|
-
var import_node_path = require("node:path");
|
|
104629
|
-
var import_node_process = require("node:process");
|
|
104630
|
-
var isWritable2 = (path3) => {
|
|
104631
|
-
try {
|
|
104632
|
-
(0, import_node_fs.accessSync)(path3, import_node_fs.constants.W_OK);
|
|
104633
|
-
return true;
|
|
104634
|
-
} catch {
|
|
104635
|
-
return false;
|
|
104636
|
-
}
|
|
104637
|
-
};
|
|
104638
|
-
function useDirectory(directory, { create = true }) {
|
|
104639
|
-
if (create) {
|
|
104640
|
-
(0, import_node_fs.mkdirSync)(directory, { recursive: true });
|
|
104641
|
-
}
|
|
104642
|
-
return directory;
|
|
104643
|
-
}
|
|
104644
|
-
function getNodeModuleDirectory(workspaceRoot) {
|
|
104645
|
-
const nodeModules = (0, import_node_path.join)(workspaceRoot, "node_modules");
|
|
104646
|
-
if ((0, import_node_fs.existsSync)(nodeModules) && !isWritable2(nodeModules)) {
|
|
104647
|
-
throw new Error("Cannot write to node_modules directory");
|
|
104648
|
-
}
|
|
104649
|
-
return nodeModules;
|
|
104650
|
-
}
|
|
104651
|
-
function findCacheDirectory({
|
|
104652
|
-
name,
|
|
104653
|
-
cacheName,
|
|
104654
|
-
workspaceRoot,
|
|
104655
|
-
create
|
|
104656
|
-
} = {
|
|
104657
|
-
name: "storm",
|
|
104658
|
-
workspaceRoot: getWorkspaceRoot(),
|
|
104659
|
-
create: true
|
|
104660
|
-
}) {
|
|
104661
|
-
if (import_node_process.env.CACHE_DIR && !["true", "false", "1", "0"].includes(import_node_process.env.CACHE_DIR)) {
|
|
104662
|
-
return useDirectory((0, import_node_path.join)(import_node_process.env.CACHE_DIR, name, cacheName), { create });
|
|
104663
|
-
}
|
|
104664
|
-
if (import_node_process.env.STORM_CACHE_DIR && !["true", "false", "1", "0"].includes(import_node_process.env.STORM_CACHE_DIR)) {
|
|
104665
|
-
return useDirectory((0, import_node_path.join)(import_node_process.env.STORM_CACHE_DIR, name, cacheName), {
|
|
104666
|
-
create
|
|
104667
|
-
});
|
|
104668
|
-
}
|
|
104669
|
-
const nodeModules = getNodeModuleDirectory(workspaceRoot);
|
|
104670
|
-
if (!nodeModules) {
|
|
104671
|
-
throw new Error("Cannot find node_modules directory");
|
|
104672
|
-
}
|
|
104673
|
-
return useDirectory(
|
|
104674
|
-
(0, import_node_path.join)(workspaceRoot, "node_modules", ".cache", name, cacheName),
|
|
104675
|
-
{ create }
|
|
104676
|
-
);
|
|
104677
|
-
}
|
|
104678
|
-
|
|
104679
|
-
// packages/workspace-tools/src/utils/versions.ts
|
|
104680
|
-
var tsupVersion = "^7.2.0";
|
|
104681
|
-
var prettierPackageJsonVersion = "2.4.6";
|
|
104682
|
-
var prettierPrismaVersion = "5.0.0";
|
|
104683
|
-
var prettierVersion = "^3.0.3";
|
|
104684
|
-
var swcCliVersion = "~0.1.62";
|
|
104685
|
-
var swcCoreVersion = "~1.3.95";
|
|
104686
|
-
var swcHelpersVersion = "~0.5.3";
|
|
104687
|
-
var swcNodeVersion = "1.6.8";
|
|
104688
|
-
var tsLibVersion = "2.6.2";
|
|
104689
|
-
var typesNodeVersion = "20.9.0";
|
|
104690
|
-
var verdaccioVersion = "5.27.0";
|
|
104691
|
-
var typescriptVersion = "~5.2.2";
|
|
104692
|
-
var eslintVersion = "~8.53.0";
|
|
104693
|
-
var lintStagedVersion = "15.0.2";
|
|
104694
|
-
var semanticReleaseVersion = "22.0.7";
|
|
104695
|
-
var nxVersion = "^17.0.3";
|
|
104696
|
-
var nodeVersion = "18.17.1";
|
|
104697
|
-
var pnpmVersion = "8.10.2";
|
|
104698
|
-
|
|
104699
|
-
// packages/workspace-tools/src/utils/workspace-storage.ts
|
|
104700
|
-
var import_node_fs2 = require("node:fs");
|
|
104701
|
-
var import_node_path2 = require("node:path");
|
|
104702
|
-
var WorkspaceStorage = class {
|
|
104703
|
-
constructor({
|
|
104704
|
-
cacheName,
|
|
104705
|
-
workspaceRoot
|
|
104706
|
-
}) {
|
|
104707
|
-
this.cacheDir = findCacheDirectory({
|
|
104708
|
-
name: "storm",
|
|
104709
|
-
cacheName,
|
|
104710
|
-
workspaceRoot,
|
|
104711
|
-
create: true
|
|
104712
|
-
});
|
|
104713
|
-
}
|
|
104714
|
-
/**
|
|
104715
|
-
* Get item from cache
|
|
104716
|
-
*
|
|
104717
|
-
* @param key - The key to get
|
|
104718
|
-
* @returns The value of the key
|
|
104719
|
-
*/
|
|
104720
|
-
getItem(key) {
|
|
104721
|
-
const cacheFile = (0, import_node_path2.join)(this.cacheDir, key);
|
|
104722
|
-
if ((0, import_node_fs2.existsSync)(cacheFile)) {
|
|
104723
|
-
return (0, import_node_fs2.readFileSync)(cacheFile, "utf-8");
|
|
104724
|
-
}
|
|
104725
|
-
return void 0;
|
|
104726
|
-
}
|
|
104727
|
-
/**
|
|
104728
|
-
* Set item to cache
|
|
104729
|
-
*
|
|
104730
|
-
* @param key - The key to set
|
|
104731
|
-
* @param value - The value to set
|
|
104732
|
-
*/
|
|
104733
|
-
setItem(key, value) {
|
|
104734
|
-
(0, import_node_fs2.writeFileSync)((0, import_node_path2.join)(this.cacheDir, key), value, { encoding: "utf-8" });
|
|
104735
|
-
}
|
|
104736
|
-
/**
|
|
104737
|
-
* Remove item from cache
|
|
104738
|
-
*
|
|
104739
|
-
* @param key - The key to remove
|
|
104740
|
-
*/
|
|
104741
|
-
removeItem(key) {
|
|
104742
|
-
(0, import_node_fs2.rmSync)((0, import_node_path2.join)(this.cacheDir, key), { force: true, recursive: true });
|
|
104743
|
-
}
|
|
104744
|
-
/**
|
|
104745
|
-
* Clear the cache
|
|
104746
|
-
*/
|
|
104747
|
-
clear() {
|
|
104748
|
-
(0, import_node_fs2.readdirSync)(this.cacheDir).forEach((cacheFile) => {
|
|
104749
|
-
(0, import_node_fs2.rmSync)(cacheFile, { force: true, recursive: true });
|
|
104750
|
-
});
|
|
104751
|
-
}
|
|
104752
|
-
/**
|
|
104753
|
-
* Get the key at the index
|
|
104754
|
-
*
|
|
104755
|
-
* @param index - The index to get
|
|
104756
|
-
* @returns The key at the index
|
|
104757
|
-
*/
|
|
104758
|
-
key(index) {
|
|
104759
|
-
const files = (0, import_node_fs2.readdirSync)(this.cacheDir);
|
|
104760
|
-
if (index < files.length && index >= 0) {
|
|
104761
|
-
return files[index];
|
|
104762
|
-
}
|
|
104763
|
-
return void 0;
|
|
104764
|
-
}
|
|
104765
|
-
};
|
|
104766
|
-
|
|
104767
|
-
// packages/workspace-tools/src/executors/tsup/get-config.ts
|
|
104768
104857
|
function modernConfig({
|
|
104769
104858
|
entry,
|
|
104770
104859
|
outDir,
|
|
@@ -104780,8 +104869,7 @@ function modernConfig({
|
|
|
104780
104869
|
docModel = true,
|
|
104781
104870
|
tsdocMetadata = true,
|
|
104782
104871
|
define: define2,
|
|
104783
|
-
env
|
|
104784
|
-
tsCdnStorage,
|
|
104872
|
+
env,
|
|
104785
104873
|
plugins,
|
|
104786
104874
|
dtsTsConfig
|
|
104787
104875
|
}) {
|
|
@@ -104811,7 +104899,7 @@ function modernConfig({
|
|
|
104811
104899
|
platform,
|
|
104812
104900
|
banner,
|
|
104813
104901
|
define: define2,
|
|
104814
|
-
env
|
|
104902
|
+
env,
|
|
104815
104903
|
dts: false,
|
|
104816
104904
|
experimentalDts: {
|
|
104817
104905
|
entry,
|
|
@@ -104828,7 +104916,6 @@ function modernConfig({
|
|
|
104828
104916
|
tsdocMetadata,
|
|
104829
104917
|
sourcemap: debug,
|
|
104830
104918
|
clean: false,
|
|
104831
|
-
tsCdnStorage,
|
|
104832
104919
|
plugins,
|
|
104833
104920
|
outExtension
|
|
104834
104921
|
};
|
|
@@ -104845,8 +104932,7 @@ function legacyConfig({
|
|
|
104845
104932
|
platform = "neutral",
|
|
104846
104933
|
verbose = false,
|
|
104847
104934
|
define: define2,
|
|
104848
|
-
env
|
|
104849
|
-
tsCdnStorage,
|
|
104935
|
+
env,
|
|
104850
104936
|
plugins,
|
|
104851
104937
|
dtsTsConfig
|
|
104852
104938
|
}) {
|
|
@@ -104868,7 +104954,7 @@ function legacyConfig({
|
|
|
104868
104954
|
platform,
|
|
104869
104955
|
banner,
|
|
104870
104956
|
define: define2,
|
|
104871
|
-
env
|
|
104957
|
+
env,
|
|
104872
104958
|
dts: false,
|
|
104873
104959
|
experimentalDts: {
|
|
104874
104960
|
entry,
|
|
@@ -104885,7 +104971,6 @@ function legacyConfig({
|
|
|
104885
104971
|
tsdocMetadata: false,
|
|
104886
104972
|
sourcemap: debug,
|
|
104887
104973
|
clean: false,
|
|
104888
|
-
tsCdnStorage,
|
|
104889
104974
|
plugins,
|
|
104890
104975
|
outExtension
|
|
104891
104976
|
};
|
|
@@ -104904,8 +104989,7 @@ function workerConfig({
|
|
|
104904
104989
|
docModel = true,
|
|
104905
104990
|
tsdocMetadata = true,
|
|
104906
104991
|
define: define2,
|
|
104907
|
-
env
|
|
104908
|
-
tsCdnStorage,
|
|
104992
|
+
env,
|
|
104909
104993
|
plugins,
|
|
104910
104994
|
dtsTsConfig
|
|
104911
104995
|
}) {
|
|
@@ -104921,13 +105005,13 @@ function workerConfig({
|
|
|
104921
105005
|
outDir: (0, import_path2.join)(outDir, "dist"),
|
|
104922
105006
|
silent: !verbose,
|
|
104923
105007
|
metafile: true,
|
|
104924
|
-
shims:
|
|
105008
|
+
shims: false,
|
|
104925
105009
|
minify: true,
|
|
104926
105010
|
external,
|
|
104927
105011
|
platform: "browser",
|
|
104928
105012
|
banner,
|
|
104929
105013
|
define: define2,
|
|
104930
|
-
env
|
|
105014
|
+
env,
|
|
104931
105015
|
dts: false,
|
|
104932
105016
|
experimentalDts: {
|
|
104933
105017
|
entry,
|
|
@@ -104944,7 +105028,6 @@ function workerConfig({
|
|
|
104944
105028
|
tsdocMetadata,
|
|
104945
105029
|
sourcemap: debug,
|
|
104946
105030
|
clean: false,
|
|
104947
|
-
tsCdnStorage,
|
|
104948
105031
|
plugins,
|
|
104949
105032
|
outExtension
|
|
104950
105033
|
};
|
|
@@ -104962,7 +105045,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
104962
105045
|
docModel,
|
|
104963
105046
|
tsdocMetadata,
|
|
104964
105047
|
define: define2,
|
|
104965
|
-
env
|
|
105048
|
+
env,
|
|
104966
105049
|
verbose,
|
|
104967
105050
|
dtsTsConfig,
|
|
104968
105051
|
plugins,
|
|
@@ -105003,11 +105086,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
105003
105086
|
docModel,
|
|
105004
105087
|
tsdocMetadata,
|
|
105005
105088
|
define: define2,
|
|
105006
|
-
env
|
|
105007
|
-
tsCdnStorage: new WorkspaceStorage({
|
|
105008
|
-
cacheName: "ts-libs",
|
|
105009
|
-
workspaceRoot
|
|
105010
|
-
}),
|
|
105089
|
+
env,
|
|
105011
105090
|
options,
|
|
105012
105091
|
plugins,
|
|
105013
105092
|
dtsTsConfig
|
|
@@ -105113,7 +105192,21 @@ ${Object.keys(options).map(
|
|
|
105113
105192
|
if (!result.success) {
|
|
105114
105193
|
throw new Error("The Build process failed trying to copy assets");
|
|
105115
105194
|
}
|
|
105195
|
+
const workspacePackageJson = (0, import_devkit.readJsonFile)(
|
|
105196
|
+
(0, import_path3.join)(workspaceRoot, "package.json")
|
|
105197
|
+
);
|
|
105116
105198
|
options.external = options.external || [];
|
|
105199
|
+
if (workspacePackageJson?.dependencies) {
|
|
105200
|
+
options.external = Object.keys(workspacePackageJson?.dependencies).reduce(
|
|
105201
|
+
(ret, key) => {
|
|
105202
|
+
if (!options.external.includes(key)) {
|
|
105203
|
+
ret.push(key);
|
|
105204
|
+
}
|
|
105205
|
+
return ret;
|
|
105206
|
+
},
|
|
105207
|
+
options.external
|
|
105208
|
+
);
|
|
105209
|
+
}
|
|
105117
105210
|
const externalDependencies = options.external.reduce((acc, name) => {
|
|
105118
105211
|
const externalNode = context.projectGraph.externalNodes[`npm:${name}`];
|
|
105119
105212
|
if (externalNode) {
|
|
@@ -105122,6 +105215,15 @@ ${Object.keys(options).map(
|
|
|
105122
105215
|
outputs: [],
|
|
105123
105216
|
node: externalNode
|
|
105124
105217
|
});
|
|
105218
|
+
} else {
|
|
105219
|
+
const workspaceNode = context.projectGraph.nodes[name];
|
|
105220
|
+
if (workspaceNode) {
|
|
105221
|
+
acc.push({
|
|
105222
|
+
name,
|
|
105223
|
+
outputs: [],
|
|
105224
|
+
node: workspaceNode
|
|
105225
|
+
});
|
|
105226
|
+
}
|
|
105125
105227
|
}
|
|
105126
105228
|
return acc;
|
|
105127
105229
|
}, []);
|
|
@@ -105129,7 +105231,7 @@ ${Object.keys(options).map(
|
|
|
105129
105231
|
${externalDependencies.map((dep) => {
|
|
105130
105232
|
return `name: ${dep.name}, node: ${dep.node}, outputs: ${dep.outputs}`;
|
|
105131
105233
|
}).join("\n")}`);
|
|
105132
|
-
if (
|
|
105234
|
+
if (options.bundle === false) {
|
|
105133
105235
|
for (const thirdPartyDependency of (0, import_get_extra_dependencies.getExtraDependencies)(
|
|
105134
105236
|
context.projectName,
|
|
105135
105237
|
context.projectGraph
|
|
@@ -105144,21 +105246,16 @@ ${externalDependencies.map((dep) => {
|
|
|
105144
105246
|
const projectGraph = await (0, import_project_graph.buildProjectGraphWithoutDaemon)();
|
|
105145
105247
|
const pathToPackageJson = (0, import_path3.join)(context.root, projectRoot, "package.json");
|
|
105146
105248
|
const packageJson = (0, import_fileutils.fileExists)(pathToPackageJson) ? (0, import_devkit.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
|
|
105147
|
-
|
|
105148
|
-
(0, import_path3.join)(workspaceRoot, "package.json")
|
|
105149
|
-
);
|
|
105249
|
+
delete packageJson.dependencies;
|
|
105150
105250
|
externalDependencies.forEach((entry) => {
|
|
105151
105251
|
const packageConfig = entry.node.data;
|
|
105152
|
-
if (packageConfig?.packageName && !!(projectGraph.externalNodes[entry.node.name]?.type === "npm")) {
|
|
105252
|
+
if (packageConfig?.packageName && (!!(projectGraph.externalNodes[entry.node.name]?.type === "npm") || !!projectGraph.nodes[entry.node.name])) {
|
|
105153
105253
|
const { packageName, version } = packageConfig;
|
|
105154
|
-
if (
|
|
105155
|
-
return;
|
|
105156
|
-
}
|
|
105157
|
-
if (workspacePackageJson.dependencies?.[packageName]) {
|
|
105254
|
+
if (workspacePackageJson.dependencies?.[packageName] || workspacePackageJson.devDependencies?.[packageName]) {
|
|
105158
105255
|
return;
|
|
105159
105256
|
}
|
|
105160
105257
|
packageJson.dependencies ??= {};
|
|
105161
|
-
packageJson.dependencies[packageName] = version;
|
|
105258
|
+
packageJson.dependencies[packageName] = !!projectGraph.nodes[entry.node.name] ? "latest" : version;
|
|
105162
105259
|
}
|
|
105163
105260
|
});
|
|
105164
105261
|
packageJson.type = "module";
|
|
@@ -105197,7 +105294,7 @@ ${externalDependencies.map((dep) => {
|
|
|
105197
105294
|
if (distSrc.startsWith("/")) {
|
|
105198
105295
|
distSrc = distSrc.substring(1);
|
|
105199
105296
|
}
|
|
105200
|
-
packageJson.source ??=
|
|
105297
|
+
packageJson.source ??= `${(0, import_path3.join)(distSrc, "index.ts").replaceAll(
|
|
105201
105298
|
"\\",
|
|
105202
105299
|
"/"
|
|
105203
105300
|
)}`;
|
|
@@ -105249,7 +105346,7 @@ ${externalDependencies.map((dep) => {
|
|
|
105249
105346
|
files.map(
|
|
105250
105347
|
(file) => (0, import_promises2.writeFile)(
|
|
105251
105348
|
file,
|
|
105252
|
-
`// ${options.banner}
|
|
105349
|
+
`${options.banner.startsWith("//") ? options.banner : `// ${options.banner}`}
|
|
105253
105350
|
|
|
105254
105351
|
${(0, import_fs2.readFileSync)(file, "utf-8")}`,
|
|
105255
105352
|
"utf-8"
|
|
@@ -105258,11 +105355,12 @@ ${(0, import_fs2.readFileSync)(file, "utf-8")}`,
|
|
|
105258
105355
|
);
|
|
105259
105356
|
}
|
|
105260
105357
|
options.plugins.push(await (0, import_decky.load)());
|
|
105261
|
-
|
|
105262
|
-
|
|
105263
|
-
|
|
105264
|
-
|
|
105265
|
-
|
|
105358
|
+
options.plugins.push(
|
|
105359
|
+
(0, import_esbuild_decorators.esbuildDecorators)({
|
|
105360
|
+
tsconfig: options.tsConfig,
|
|
105361
|
+
cwd: workspaceRoot
|
|
105362
|
+
})
|
|
105363
|
+
);
|
|
105266
105364
|
const config = getConfig(context.root, projectRoot, sourceRoot, {
|
|
105267
105365
|
...options,
|
|
105268
105366
|
dtsTsConfig: getNormalizedTsConfig(
|
|
@@ -105283,11 +105381,14 @@ ${(0, import_fs2.readFileSync)(file, "utf-8")}`,
|
|
|
105283
105381
|
context
|
|
105284
105382
|
)
|
|
105285
105383
|
),
|
|
105286
|
-
banner: options.banner ? {
|
|
105384
|
+
banner: options.banner ? {
|
|
105385
|
+
js: `${options.banner.startsWith("//") ? options.banner : `// ${options.banner}`}
|
|
105287
105386
|
|
|
105288
|
-
`,
|
|
105387
|
+
`,
|
|
105388
|
+
css: `/* ${options.banner.startsWith("//") ? options.banner.replace("//", "") : options.banner} */
|
|
105289
105389
|
|
|
105290
|
-
`
|
|
105390
|
+
`
|
|
105391
|
+
} : void 0,
|
|
105291
105392
|
outputPath
|
|
105292
105393
|
});
|
|
105293
105394
|
if (typeof config === "function") {
|
|
@@ -105354,6 +105455,28 @@ var isPrimitive = (value) => {
|
|
|
105354
105455
|
|
|
105355
105456
|
// packages/workspace-tools/src/generators/init/init.ts
|
|
105356
105457
|
var import_devkit2 = __toESM(require_devkit());
|
|
105458
|
+
|
|
105459
|
+
// packages/workspace-tools/src/utils/versions.ts
|
|
105460
|
+
var tsupVersion = "^7.2.0";
|
|
105461
|
+
var prettierPackageJsonVersion = "2.4.6";
|
|
105462
|
+
var prettierPrismaVersion = "5.0.0";
|
|
105463
|
+
var prettierVersion = "^3.0.3";
|
|
105464
|
+
var swcCliVersion = "~0.1.62";
|
|
105465
|
+
var swcCoreVersion = "~1.3.95";
|
|
105466
|
+
var swcHelpersVersion = "~0.5.3";
|
|
105467
|
+
var swcNodeVersion = "1.6.8";
|
|
105468
|
+
var tsLibVersion = "2.6.2";
|
|
105469
|
+
var typesNodeVersion = "20.9.0";
|
|
105470
|
+
var verdaccioVersion = "5.27.0";
|
|
105471
|
+
var typescriptVersion = "~5.2.2";
|
|
105472
|
+
var eslintVersion = "~8.53.0";
|
|
105473
|
+
var lintStagedVersion = "15.0.2";
|
|
105474
|
+
var semanticReleaseVersion = "22.0.7";
|
|
105475
|
+
var nxVersion = "^17.0.3";
|
|
105476
|
+
var nodeVersion = "18.17.1";
|
|
105477
|
+
var pnpmVersion = "8.10.2";
|
|
105478
|
+
|
|
105479
|
+
// packages/workspace-tools/src/generators/init/init.ts
|
|
105357
105480
|
async function stormInitGenerator(tree, schema) {
|
|
105358
105481
|
const task = (0, import_devkit2.addDependenciesToPackageJson)(
|
|
105359
105482
|
tree,
|
|
@@ -105374,7 +105497,7 @@ async function stormInitGenerator(tree, schema) {
|
|
|
105374
105497
|
|
|
105375
105498
|
// packages/workspace-tools/src/generators/node-library/generator.ts
|
|
105376
105499
|
var import_devkit4 = __toESM(require_devkit());
|
|
105377
|
-
var import_js2 = __toESM(
|
|
105500
|
+
var import_js2 = __toESM(require_src2());
|
|
105378
105501
|
var import_init = __toESM(require_init());
|
|
105379
105502
|
var import_generator = __toESM(require_generator());
|
|
105380
105503
|
|