@storm-software/workspace-tools 1.17.0 → 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 +7 -0
- package/README.md +1 -1
- package/index.js +159 -278
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +137 -258
- 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
|
}
|
|
@@ -607,7 +607,7 @@ var require_strip_it = __commonJS({
|
|
|
607
607
|
return this.nodes.length > 0 && this.nodes[0].protected === true;
|
|
608
608
|
}
|
|
609
609
|
};
|
|
610
|
-
var
|
|
610
|
+
var constants = {
|
|
611
611
|
ESCAPED_CHAR_REGEX: /^\\./,
|
|
612
612
|
QUOTED_STRING_REGEX: /^(['"`])((?:\\.|[^\1])+?)(\1)/,
|
|
613
613
|
NEWLINE_REGEX: /^\r*\n/,
|
|
@@ -618,7 +618,7 @@ var require_strip_it = __commonJS({
|
|
|
618
618
|
var parse = (input) => {
|
|
619
619
|
const cst = new TextBlock({ type: "root", nodes: [] });
|
|
620
620
|
const stack = [cst];
|
|
621
|
-
const { ESCAPED_CHAR_REGEX, QUOTED_STRING_REGEX, NEWLINE_REGEX, BLOCK_CLOSE_REGEX, BLOCK_OPEN_REGEX, LINE_REGEX } =
|
|
621
|
+
const { ESCAPED_CHAR_REGEX, QUOTED_STRING_REGEX, NEWLINE_REGEX, BLOCK_CLOSE_REGEX, BLOCK_OPEN_REGEX, LINE_REGEX } = constants;
|
|
622
622
|
let block = cst;
|
|
623
623
|
let remaining = input;
|
|
624
624
|
let token;
|
|
@@ -4339,7 +4339,7 @@ var require_subset = __commonJS({
|
|
|
4339
4339
|
var require_semver2 = __commonJS({
|
|
4340
4340
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/index.js"(exports, module2) {
|
|
4341
4341
|
var internalRe = require_re();
|
|
4342
|
-
var
|
|
4342
|
+
var constants = require_constants();
|
|
4343
4343
|
var SemVer = require_semver();
|
|
4344
4344
|
var identifiers = require_identifiers();
|
|
4345
4345
|
var parse = require_parse();
|
|
@@ -4421,8 +4421,8 @@ var require_semver2 = __commonJS({
|
|
|
4421
4421
|
re: internalRe.re,
|
|
4422
4422
|
src: internalRe.src,
|
|
4423
4423
|
tokens: internalRe.t,
|
|
4424
|
-
SEMVER_SPEC_VERSION:
|
|
4425
|
-
RELEASE_TYPES:
|
|
4424
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
4425
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
4426
4426
|
compareIdentifiers: identifiers.compareIdentifiers,
|
|
4427
4427
|
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
4428
4428
|
};
|
|
@@ -19837,20 +19837,20 @@ var require_supports_color = __commonJS({
|
|
|
19837
19837
|
var os = require("os");
|
|
19838
19838
|
var tty = require("tty");
|
|
19839
19839
|
var hasFlag = require_has_flag();
|
|
19840
|
-
var { env
|
|
19840
|
+
var { env } = process;
|
|
19841
19841
|
var forceColor;
|
|
19842
19842
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
19843
19843
|
forceColor = 0;
|
|
19844
19844
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
19845
19845
|
forceColor = 1;
|
|
19846
19846
|
}
|
|
19847
|
-
if ("FORCE_COLOR" in
|
|
19848
|
-
if (
|
|
19847
|
+
if ("FORCE_COLOR" in env) {
|
|
19848
|
+
if (env.FORCE_COLOR === "true") {
|
|
19849
19849
|
forceColor = 1;
|
|
19850
|
-
} else if (
|
|
19850
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
19851
19851
|
forceColor = 0;
|
|
19852
19852
|
} else {
|
|
19853
|
-
forceColor =
|
|
19853
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
19854
19854
|
}
|
|
19855
19855
|
}
|
|
19856
19856
|
function translateLevel(level) {
|
|
@@ -19878,7 +19878,7 @@ var require_supports_color = __commonJS({
|
|
|
19878
19878
|
return 0;
|
|
19879
19879
|
}
|
|
19880
19880
|
const min = forceColor || 0;
|
|
19881
|
-
if (
|
|
19881
|
+
if (env.TERM === "dumb") {
|
|
19882
19882
|
return min;
|
|
19883
19883
|
}
|
|
19884
19884
|
if (process.platform === "win32") {
|
|
@@ -19888,34 +19888,34 @@ var require_supports_color = __commonJS({
|
|
|
19888
19888
|
}
|
|
19889
19889
|
return 1;
|
|
19890
19890
|
}
|
|
19891
|
-
if ("CI" in
|
|
19892
|
-
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") {
|
|
19893
19893
|
return 1;
|
|
19894
19894
|
}
|
|
19895
19895
|
return min;
|
|
19896
19896
|
}
|
|
19897
|
-
if ("TEAMCITY_VERSION" in
|
|
19898
|
-
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;
|
|
19899
19899
|
}
|
|
19900
|
-
if (
|
|
19900
|
+
if (env.COLORTERM === "truecolor") {
|
|
19901
19901
|
return 3;
|
|
19902
19902
|
}
|
|
19903
|
-
if ("TERM_PROGRAM" in
|
|
19904
|
-
const version = parseInt((
|
|
19905
|
-
switch (
|
|
19903
|
+
if ("TERM_PROGRAM" in env) {
|
|
19904
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
19905
|
+
switch (env.TERM_PROGRAM) {
|
|
19906
19906
|
case "iTerm.app":
|
|
19907
19907
|
return version >= 3 ? 3 : 2;
|
|
19908
19908
|
case "Apple_Terminal":
|
|
19909
19909
|
return 2;
|
|
19910
19910
|
}
|
|
19911
19911
|
}
|
|
19912
|
-
if (/-256(color)?$/i.test(
|
|
19912
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
19913
19913
|
return 2;
|
|
19914
19914
|
}
|
|
19915
|
-
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)) {
|
|
19916
19916
|
return 1;
|
|
19917
19917
|
}
|
|
19918
|
-
if ("COLORTERM" in
|
|
19918
|
+
if ("COLORTERM" in env) {
|
|
19919
19919
|
return 1;
|
|
19920
19920
|
}
|
|
19921
19921
|
return min;
|
|
@@ -21487,7 +21487,7 @@ var require_universalify = __commonJS({
|
|
|
21487
21487
|
// node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
21488
21488
|
var require_polyfills = __commonJS({
|
|
21489
21489
|
"node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
|
|
21490
|
-
var
|
|
21490
|
+
var constants = require("constants");
|
|
21491
21491
|
var origCwd = process.cwd;
|
|
21492
21492
|
var cwd = null;
|
|
21493
21493
|
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
@@ -21512,7 +21512,7 @@ var require_polyfills = __commonJS({
|
|
|
21512
21512
|
var chdir;
|
|
21513
21513
|
module2.exports = patch;
|
|
21514
21514
|
function patch(fs) {
|
|
21515
|
-
if (
|
|
21515
|
+
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
21516
21516
|
patchLchmod(fs);
|
|
21517
21517
|
}
|
|
21518
21518
|
if (!fs.lutimes) {
|
|
@@ -21619,7 +21619,7 @@ var require_polyfills = __commonJS({
|
|
|
21619
21619
|
fs2.lchmod = function(path3, mode, callback) {
|
|
21620
21620
|
fs2.open(
|
|
21621
21621
|
path3,
|
|
21622
|
-
|
|
21622
|
+
constants.O_WRONLY | constants.O_SYMLINK,
|
|
21623
21623
|
mode,
|
|
21624
21624
|
function(err, fd) {
|
|
21625
21625
|
if (err) {
|
|
@@ -21637,7 +21637,7 @@ var require_polyfills = __commonJS({
|
|
|
21637
21637
|
);
|
|
21638
21638
|
};
|
|
21639
21639
|
fs2.lchmodSync = function(path3, mode) {
|
|
21640
|
-
var fd = fs2.openSync(path3,
|
|
21640
|
+
var fd = fs2.openSync(path3, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
21641
21641
|
var threw = true;
|
|
21642
21642
|
var ret;
|
|
21643
21643
|
try {
|
|
@@ -21657,9 +21657,9 @@ var require_polyfills = __commonJS({
|
|
|
21657
21657
|
};
|
|
21658
21658
|
}
|
|
21659
21659
|
function patchLutimes(fs2) {
|
|
21660
|
-
if (
|
|
21660
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs2.futimes) {
|
|
21661
21661
|
fs2.lutimes = function(path3, at, mt, cb) {
|
|
21662
|
-
fs2.open(path3,
|
|
21662
|
+
fs2.open(path3, constants.O_SYMLINK, function(er, fd) {
|
|
21663
21663
|
if (er) {
|
|
21664
21664
|
if (cb)
|
|
21665
21665
|
cb(er);
|
|
@@ -21674,7 +21674,7 @@ var require_polyfills = __commonJS({
|
|
|
21674
21674
|
});
|
|
21675
21675
|
};
|
|
21676
21676
|
fs2.lutimesSync = function(path3, at, mt) {
|
|
21677
|
-
var fd = fs2.openSync(path3,
|
|
21677
|
+
var fd = fs2.openSync(path3, constants.O_SYMLINK);
|
|
21678
21678
|
var ret;
|
|
21679
21679
|
var threw = true;
|
|
21680
21680
|
try {
|
|
@@ -23520,7 +23520,7 @@ var require_jsonfile = __commonJS({
|
|
|
23520
23520
|
return obj;
|
|
23521
23521
|
}
|
|
23522
23522
|
var readFile = universalify.fromPromise(_readFile);
|
|
23523
|
-
function
|
|
23523
|
+
function readFileSync2(file, options = {}) {
|
|
23524
23524
|
if (typeof options === "string") {
|
|
23525
23525
|
options = { encoding: options };
|
|
23526
23526
|
}
|
|
@@ -23545,16 +23545,16 @@ var require_jsonfile = __commonJS({
|
|
|
23545
23545
|
await universalify.fromCallback(fs.writeFile)(file, str, options);
|
|
23546
23546
|
}
|
|
23547
23547
|
var writeFile2 = universalify.fromPromise(_writeFile);
|
|
23548
|
-
function
|
|
23548
|
+
function writeFileSync2(file, obj, options = {}) {
|
|
23549
23549
|
const fs = options.fs || _fs;
|
|
23550
23550
|
const str = stringify(obj, options);
|
|
23551
23551
|
return fs.writeFileSync(file, str, options);
|
|
23552
23552
|
}
|
|
23553
23553
|
var jsonfile = {
|
|
23554
23554
|
readFile,
|
|
23555
|
-
readFileSync:
|
|
23555
|
+
readFileSync: readFileSync2,
|
|
23556
23556
|
writeFile: writeFile2,
|
|
23557
|
-
writeFileSync:
|
|
23557
|
+
writeFileSync: writeFileSync2
|
|
23558
23558
|
};
|
|
23559
23559
|
module2.exports = jsonfile;
|
|
23560
23560
|
}
|
|
@@ -26971,7 +26971,7 @@ var require_scan2 = __commonJS({
|
|
|
26971
26971
|
var require_parse3 = __commonJS({
|
|
26972
26972
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module2) {
|
|
26973
26973
|
"use strict";
|
|
26974
|
-
var
|
|
26974
|
+
var constants = require_constants3();
|
|
26975
26975
|
var utils = require_utils5();
|
|
26976
26976
|
var {
|
|
26977
26977
|
MAX_LENGTH,
|
|
@@ -26979,7 +26979,7 @@ var require_parse3 = __commonJS({
|
|
|
26979
26979
|
REGEX_NON_SPECIAL_CHARS,
|
|
26980
26980
|
REGEX_SPECIAL_CHARS_BACKREF,
|
|
26981
26981
|
REPLACEMENTS
|
|
26982
|
-
} =
|
|
26982
|
+
} = constants;
|
|
26983
26983
|
var expandRange = (args, options) => {
|
|
26984
26984
|
if (typeof options.expandRange === "function") {
|
|
26985
26985
|
return options.expandRange(...args, options);
|
|
@@ -27011,8 +27011,8 @@ var require_parse3 = __commonJS({
|
|
|
27011
27011
|
const tokens = [bos];
|
|
27012
27012
|
const capture = opts.capture ? "" : "?:";
|
|
27013
27013
|
const win322 = utils.isWindows(options);
|
|
27014
|
-
const PLATFORM_CHARS =
|
|
27015
|
-
const EXTGLOB_CHARS =
|
|
27014
|
+
const PLATFORM_CHARS = constants.globChars(win322);
|
|
27015
|
+
const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
|
|
27016
27016
|
const {
|
|
27017
27017
|
DOT_LITERAL,
|
|
27018
27018
|
PLUS_LITERAL,
|
|
@@ -27694,7 +27694,7 @@ var require_parse3 = __commonJS({
|
|
|
27694
27694
|
NO_DOTS_SLASH,
|
|
27695
27695
|
STAR,
|
|
27696
27696
|
START_ANCHOR
|
|
27697
|
-
} =
|
|
27697
|
+
} = constants.globChars(win322);
|
|
27698
27698
|
const nodot = opts.dot ? NO_DOTS : NO_DOT;
|
|
27699
27699
|
const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
|
|
27700
27700
|
const capture = opts.capture ? "" : "?:";
|
|
@@ -27756,7 +27756,7 @@ var require_picomatch = __commonJS({
|
|
|
27756
27756
|
var scan = require_scan2();
|
|
27757
27757
|
var parse = require_parse3();
|
|
27758
27758
|
var utils = require_utils5();
|
|
27759
|
-
var
|
|
27759
|
+
var constants = require_constants3();
|
|
27760
27760
|
var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
27761
27761
|
var picomatch = (glob2, options, returnState = false) => {
|
|
27762
27762
|
if (Array.isArray(glob2)) {
|
|
@@ -27887,7 +27887,7 @@ var require_picomatch = __commonJS({
|
|
|
27887
27887
|
return /$^/;
|
|
27888
27888
|
}
|
|
27889
27889
|
};
|
|
27890
|
-
picomatch.constants =
|
|
27890
|
+
picomatch.constants = constants;
|
|
27891
27891
|
module2.exports = picomatch;
|
|
27892
27892
|
}
|
|
27893
27893
|
});
|
|
@@ -40919,7 +40919,7 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
40919
40919
|
}
|
|
40920
40920
|
_fs2.default.mkdirSync(dirPath, { recursive: true });
|
|
40921
40921
|
const gitIgnorePath = _path2.default.join(options.workspaceRoot, "tmp", ".tsup", ".gitignore");
|
|
40922
|
-
|
|
40922
|
+
writeFileSync2(gitIgnorePath, "**/*\n");
|
|
40923
40923
|
return dirPath;
|
|
40924
40924
|
}
|
|
40925
40925
|
var toObjectEntry = (entry) => {
|
|
@@ -40968,7 +40968,7 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
40968
40968
|
function trimDtsExtension(fileName) {
|
|
40969
40969
|
return fileName.replace(/\.d\.(ts|mts|cts)x?$/, "");
|
|
40970
40970
|
}
|
|
40971
|
-
function
|
|
40971
|
+
function writeFileSync2(filePath, content) {
|
|
40972
40972
|
_fs2.default.mkdirSync(_path2.default.dirname(filePath), { recursive: true });
|
|
40973
40973
|
_fs2.default.writeFileSync(filePath, content);
|
|
40974
40974
|
}
|
|
@@ -40989,7 +40989,7 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
40989
40989
|
exports.toObjectEntry = toObjectEntry;
|
|
40990
40990
|
exports.toAbsolutePath = toAbsolutePath;
|
|
40991
40991
|
exports.trimDtsExtension = trimDtsExtension;
|
|
40992
|
-
exports.writeFileSync =
|
|
40992
|
+
exports.writeFileSync = writeFileSync2;
|
|
40993
40993
|
}
|
|
40994
40994
|
});
|
|
40995
40995
|
|
|
@@ -41064,13 +41064,13 @@ var require_chunk_UIX4URMV = __commonJS({
|
|
|
41064
41064
|
});
|
|
41065
41065
|
var _tty = require("tty");
|
|
41066
41066
|
var tty = _interopRequireWildcard(_tty);
|
|
41067
|
-
var
|
|
41067
|
+
var env = process.env || {};
|
|
41068
41068
|
var argv = process.argv || [];
|
|
41069
|
-
var isDisabled = "NO_COLOR" in
|
|
41070
|
-
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");
|
|
41071
41071
|
var isWindows = process.platform === "win32";
|
|
41072
|
-
var isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) &&
|
|
41073
|
-
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);
|
|
41074
41074
|
var isColorSupported = !isDisabled && (isForced || isWindows || isCompatibleTerminal || isCI);
|
|
41075
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));
|
|
41076
41076
|
var clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
|
|
@@ -41231,7 +41231,7 @@ var require_lib3 = __commonJS({
|
|
|
41231
41231
|
function _interopRequireDefault(obj) {
|
|
41232
41232
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
41233
41233
|
}
|
|
41234
|
-
var
|
|
41234
|
+
var readFileSync2 = (fp) => {
|
|
41235
41235
|
return _fs.default.readFileSync(fp, "utf8");
|
|
41236
41236
|
};
|
|
41237
41237
|
var pathExists = (fp) => new Promise((resolve) => {
|
|
@@ -41355,7 +41355,7 @@ var require_lib3 = __commonJS({
|
|
|
41355
41355
|
if (this.packageJsonCache.has(filepath2)) {
|
|
41356
41356
|
return this.packageJsonCache.get(filepath2)[options.packageKey];
|
|
41357
41357
|
}
|
|
41358
|
-
const data2 = this.options.parseJSON(
|
|
41358
|
+
const data2 = this.options.parseJSON(readFileSync2(filepath2));
|
|
41359
41359
|
return data2;
|
|
41360
41360
|
}
|
|
41361
41361
|
};
|
|
@@ -41389,7 +41389,7 @@ var require_lib3 = __commonJS({
|
|
|
41389
41389
|
if (this.packageJsonCache.has(filepath2)) {
|
|
41390
41390
|
return this.packageJsonCache.get(filepath2)[options.packageKey];
|
|
41391
41391
|
}
|
|
41392
|
-
const data2 = this.options.parseJSON(
|
|
41392
|
+
const data2 = this.options.parseJSON(readFileSync2(filepath2));
|
|
41393
41393
|
return data2;
|
|
41394
41394
|
}
|
|
41395
41395
|
};
|
|
@@ -42407,7 +42407,7 @@ var require_resolveCommand = __commonJS({
|
|
|
42407
42407
|
var which = require_which();
|
|
42408
42408
|
var getPathKey = require_path_key();
|
|
42409
42409
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
42410
|
-
const
|
|
42410
|
+
const env = parsed.options.env || process.env;
|
|
42411
42411
|
const cwd = process.cwd();
|
|
42412
42412
|
const hasCustomCwd = parsed.options.cwd != null;
|
|
42413
42413
|
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
@@ -42420,7 +42420,7 @@ var require_resolveCommand = __commonJS({
|
|
|
42420
42420
|
let resolved;
|
|
42421
42421
|
try {
|
|
42422
42422
|
resolved = which.sync(parsed.command, {
|
|
42423
|
-
path:
|
|
42423
|
+
path: env[getPathKey({ env })],
|
|
42424
42424
|
pathExt: withoutPathExt ? path3.delimiter : void 0
|
|
42425
42425
|
});
|
|
42426
42426
|
} catch (e) {
|
|
@@ -42705,11 +42705,11 @@ var require_npm_run_path = __commonJS({
|
|
|
42705
42705
|
env: process.env,
|
|
42706
42706
|
...options
|
|
42707
42707
|
};
|
|
42708
|
-
const
|
|
42709
|
-
const path4 = pathKey({ env
|
|
42710
|
-
options.path =
|
|
42711
|
-
|
|
42712
|
-
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;
|
|
42713
42713
|
};
|
|
42714
42714
|
}
|
|
42715
42715
|
});
|
|
@@ -43904,11 +43904,11 @@ var require_execa = __commonJS({
|
|
|
43904
43904
|
var { joinCommand, parseCommand, getEscapedCommand } = require_command();
|
|
43905
43905
|
var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
|
|
43906
43906
|
var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
43907
|
-
const
|
|
43907
|
+
const env = extendEnv ? { ...process.env, ...envOption } : envOption;
|
|
43908
43908
|
if (preferLocal) {
|
|
43909
|
-
return npmRunPath.env({ env
|
|
43909
|
+
return npmRunPath.env({ env, cwd: localDir, execPath });
|
|
43910
43910
|
}
|
|
43911
|
-
return
|
|
43911
|
+
return env;
|
|
43912
43912
|
};
|
|
43913
43913
|
var handleArguments = (file, args, options = {}) => {
|
|
43914
43914
|
const parsed = crossSpawn._parse(file, args, options);
|
|
@@ -67524,7 +67524,7 @@ var require_util4 = __commonJS({
|
|
|
67524
67524
|
var normalize2 = createSafeHandler((url) => {
|
|
67525
67525
|
});
|
|
67526
67526
|
exports.normalize = normalize2;
|
|
67527
|
-
function
|
|
67527
|
+
function join4(aRoot, aPath) {
|
|
67528
67528
|
const pathType = getURLType(aPath);
|
|
67529
67529
|
const rootType = getURLType(aRoot);
|
|
67530
67530
|
aRoot = ensureDirectory(aRoot);
|
|
@@ -67550,7 +67550,7 @@ var require_util4 = __commonJS({
|
|
|
67550
67550
|
const newPath = withBase(aPath, withBase(aRoot, base));
|
|
67551
67551
|
return computeRelativeURL(base, newPath);
|
|
67552
67552
|
}
|
|
67553
|
-
exports.join =
|
|
67553
|
+
exports.join = join4;
|
|
67554
67554
|
function relative(rootURL, targetURL) {
|
|
67555
67555
|
const result = relativeIfPossible(rootURL, targetURL);
|
|
67556
67556
|
return typeof result === "string" ? result : normalize2(targetURL);
|
|
@@ -67580,9 +67580,9 @@ var require_util4 = __commonJS({
|
|
|
67580
67580
|
}
|
|
67581
67581
|
let url = normalize2(sourceURL || "");
|
|
67582
67582
|
if (sourceRoot)
|
|
67583
|
-
url =
|
|
67583
|
+
url = join4(sourceRoot, url);
|
|
67584
67584
|
if (sourceMapURL)
|
|
67585
|
-
url =
|
|
67585
|
+
url = join4(trimFilename(sourceMapURL), url);
|
|
67586
67586
|
return url;
|
|
67587
67587
|
}
|
|
67588
67588
|
exports.computeSourceURL = computeSourceURL;
|
|
@@ -69347,8 +69347,8 @@ var require_source_map = __commonJS({
|
|
|
69347
69347
|
// node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js
|
|
69348
69348
|
var require_native = __commonJS({
|
|
69349
69349
|
"node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js"(exports, module2) {
|
|
69350
|
-
var { existsSync
|
|
69351
|
-
var { join:
|
|
69350
|
+
var { existsSync } = require("node:fs");
|
|
69351
|
+
var { join: join4 } = require("node:path");
|
|
69352
69352
|
var { platform, arch, report } = require("node:process");
|
|
69353
69353
|
var isMusl = () => !report.getReport().header.glibcVersionRuntime;
|
|
69354
69354
|
var bindingsByPlatformAndArch = {
|
|
@@ -69398,7 +69398,7 @@ If this is important to you, please consider supporting Rollup to make a native
|
|
|
69398
69398
|
return imported.base;
|
|
69399
69399
|
}
|
|
69400
69400
|
var localName = `./rollup.${packageBase}.node`;
|
|
69401
|
-
var { parse, parseAsync, xxhashBase64Url } =
|
|
69401
|
+
var { parse, parseAsync, xxhashBase64Url } = existsSync(join4(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
|
|
69402
69402
|
module2.exports.parse = parse;
|
|
69403
69403
|
module2.exports.parseAsync = parseAsync;
|
|
69404
69404
|
module2.exports.xxhashBase64Url = xxhashBase64Url;
|
|
@@ -72975,16 +72975,16 @@ var require_rollup = __commonJS({
|
|
|
72975
72975
|
return outputOptions;
|
|
72976
72976
|
}
|
|
72977
72977
|
var {
|
|
72978
|
-
env
|
|
72978
|
+
env = {},
|
|
72979
72979
|
argv = [],
|
|
72980
72980
|
platform = ""
|
|
72981
72981
|
} = typeof process === "undefined" ? {} : process;
|
|
72982
|
-
var isDisabled = "NO_COLOR" in
|
|
72983
|
-
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");
|
|
72984
72984
|
var isWindows = platform === "win32";
|
|
72985
|
-
var isDumbTerminal =
|
|
72986
|
-
var isCompatibleTerminal = tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) &&
|
|
72987
|
-
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);
|
|
72988
72988
|
var isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
|
|
72989
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));
|
|
72990
72990
|
var clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
|
|
@@ -76275,7 +76275,7 @@ var require_rollup = __commonJS({
|
|
|
76275
76275
|
var scan = scan_1;
|
|
76276
76276
|
var parse = parse_1;
|
|
76277
76277
|
var utils = utils$3;
|
|
76278
|
-
var
|
|
76278
|
+
var constants = constants$2;
|
|
76279
76279
|
var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
76280
76280
|
var picomatch$1 = (glob2, options, returnState = false) => {
|
|
76281
76281
|
if (Array.isArray(glob2)) {
|
|
@@ -76406,7 +76406,7 @@ var require_rollup = __commonJS({
|
|
|
76406
76406
|
return /$^/;
|
|
76407
76407
|
}
|
|
76408
76408
|
};
|
|
76409
|
-
picomatch$1.constants =
|
|
76409
|
+
picomatch$1.constants = constants;
|
|
76410
76410
|
var picomatch_1 = picomatch$1;
|
|
76411
76411
|
var picomatch = picomatch_1;
|
|
76412
76412
|
var pm = /* @__PURE__ */ getDefaultExportFromCjs(picomatch);
|
|
@@ -91157,7 +91157,7 @@ var require_shared = __commonJS({
|
|
|
91157
91157
|
var binaryExtensions = binaryExtensions$1;
|
|
91158
91158
|
var extensions = new Set(binaryExtensions);
|
|
91159
91159
|
var isBinaryPath$1 = (filePath) => extensions.has(path3.extname(filePath).slice(1).toLowerCase());
|
|
91160
|
-
var
|
|
91160
|
+
var constants = {};
|
|
91161
91161
|
(function(exports2) {
|
|
91162
91162
|
const { sep: sep2 } = require$$0$2;
|
|
91163
91163
|
const { platform } = process;
|
|
@@ -91215,7 +91215,7 @@ var require_shared = __commonJS({
|
|
|
91215
91215
|
exports2.isMacos = platform === "darwin";
|
|
91216
91216
|
exports2.isLinux = platform === "linux";
|
|
91217
91217
|
exports2.isIBMi = os.type() === "OS400";
|
|
91218
|
-
})(
|
|
91218
|
+
})(constants);
|
|
91219
91219
|
var fs$2 = require$$0$1;
|
|
91220
91220
|
var sysPath$2 = require$$0$2;
|
|
91221
91221
|
var { promisify: promisify$2 } = require$$2;
|
|
@@ -91237,7 +91237,7 @@ var require_shared = __commonJS({
|
|
|
91237
91237
|
STR_END: STR_END$2,
|
|
91238
91238
|
BRACE_START: BRACE_START$1,
|
|
91239
91239
|
STAR
|
|
91240
|
-
} =
|
|
91240
|
+
} = constants;
|
|
91241
91241
|
var THROTTLE_MODE_WATCH = "watch";
|
|
91242
91242
|
var open = promisify$2(fs$2.open);
|
|
91243
91243
|
var stat$2 = promisify$2(fs$2.stat);
|
|
@@ -91759,7 +91759,7 @@ var require_shared = __commonJS({
|
|
|
91759
91759
|
FUNCTION_TYPE: FUNCTION_TYPE$1,
|
|
91760
91760
|
EMPTY_FN: EMPTY_FN$1,
|
|
91761
91761
|
IDENTITY_FN
|
|
91762
|
-
} =
|
|
91762
|
+
} = constants;
|
|
91763
91763
|
var Depth = (value) => isNaN(value) ? {} : { depth: value };
|
|
91764
91764
|
var stat$1 = promisify$1(fs$1.stat);
|
|
91765
91765
|
var lstat2 = promisify$1(fs$1.lstat);
|
|
@@ -92129,7 +92129,7 @@ var require_shared = __commonJS({
|
|
|
92129
92129
|
fseventsHandler.exports = FsEventsHandler$1;
|
|
92130
92130
|
fseventsHandler.exports.canUse = canUse;
|
|
92131
92131
|
var fseventsHandlerExports = fseventsHandler.exports;
|
|
92132
|
-
var { EventEmitter:
|
|
92132
|
+
var { EventEmitter: EventEmitter2 } = require$$0$3;
|
|
92133
92133
|
var fs = require$$0$1;
|
|
92134
92134
|
var sysPath = require$$0$2;
|
|
92135
92135
|
var { promisify } = require$$2;
|
|
@@ -92174,7 +92174,7 @@ var require_shared = __commonJS({
|
|
|
92174
92174
|
isWindows,
|
|
92175
92175
|
isMacos,
|
|
92176
92176
|
isIBMi
|
|
92177
|
-
} =
|
|
92177
|
+
} = constants;
|
|
92178
92178
|
var stat = promisify(fs.stat);
|
|
92179
92179
|
var readdir2 = promisify(fs.readdir);
|
|
92180
92180
|
var arrify = (value = []) => Array.isArray(value) ? value : [value];
|
|
@@ -92350,7 +92350,7 @@ var require_shared = __commonJS({
|
|
|
92350
92350
|
return !this.unmatchedGlob && this.fsw._isntIgnored(this.entryPath(entry), entry.stats);
|
|
92351
92351
|
}
|
|
92352
92352
|
};
|
|
92353
|
-
var FSWatcher = class extends
|
|
92353
|
+
var FSWatcher = class extends EventEmitter2 {
|
|
92354
92354
|
// Not indenting methods for history sake; for now.
|
|
92355
92355
|
constructor(_opts) {
|
|
92356
92356
|
super();
|
|
@@ -94936,7 +94936,7 @@ var require_fsevents_handler = __commonJS({
|
|
|
94936
94936
|
var require_chokidar = __commonJS({
|
|
94937
94937
|
"node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/index.js"(exports) {
|
|
94938
94938
|
"use strict";
|
|
94939
|
-
var { EventEmitter:
|
|
94939
|
+
var { EventEmitter: EventEmitter2 } = require("events");
|
|
94940
94940
|
var fs = require("fs");
|
|
94941
94941
|
var sysPath = require("path");
|
|
94942
94942
|
var { promisify } = require("util");
|
|
@@ -95157,7 +95157,7 @@ var require_chokidar = __commonJS({
|
|
|
95157
95157
|
return !this.unmatchedGlob && this.fsw._isntIgnored(this.entryPath(entry), entry.stats);
|
|
95158
95158
|
}
|
|
95159
95159
|
};
|
|
95160
|
-
var FSWatcher = class extends
|
|
95160
|
+
var FSWatcher = class extends EventEmitter2 {
|
|
95161
95161
|
// Not indenting methods for history sake; for now.
|
|
95162
95162
|
constructor(_opts) {
|
|
95163
95163
|
super();
|
|
@@ -97375,11 +97375,11 @@ var require_dist5 = __commonJS({
|
|
|
97375
97375
|
];
|
|
97376
97376
|
const outDir = options.outDir;
|
|
97377
97377
|
const outExtension2 = getOutputExtensionMap(options, format2, pkg.type);
|
|
97378
|
-
const
|
|
97378
|
+
const env = {
|
|
97379
97379
|
...options.env
|
|
97380
97380
|
};
|
|
97381
97381
|
if (options.replaceNodeEnv) {
|
|
97382
|
-
|
|
97382
|
+
env.NODE_ENV = options.minify || options.minifyWhitespace ? "production" : "development";
|
|
97383
97383
|
}
|
|
97384
97384
|
logger3.info(format2, "Build start");
|
|
97385
97385
|
const startTime = Date.now();
|
|
@@ -97473,8 +97473,8 @@ var require_dist5 = __commonJS({
|
|
|
97473
97473
|
"import.meta.url": "importMetaUrl"
|
|
97474
97474
|
} : {},
|
|
97475
97475
|
...options.define,
|
|
97476
|
-
...Object.keys(
|
|
97477
|
-
const value = JSON.stringify(
|
|
97476
|
+
...Object.keys(env).reduce((res, key) => {
|
|
97477
|
+
const value = JSON.stringify(env[key]);
|
|
97478
97478
|
return {
|
|
97479
97479
|
...res,
|
|
97480
97480
|
[`process.env.${key}`]: value,
|
|
@@ -104794,7 +104794,6 @@ var glob = Object.assign(glob_, {
|
|
|
104794
104794
|
glob.glob = glob;
|
|
104795
104795
|
|
|
104796
104796
|
// packages/workspace-tools/src/executors/tsup/executor.ts
|
|
104797
|
-
var import_node_events = require("node:events");
|
|
104798
104797
|
var import_project_graph = require("nx/src/project-graph/project-graph");
|
|
104799
104798
|
var import_fileutils = require("nx/src/utils/fileutils");
|
|
104800
104799
|
var import_path3 = require("path");
|
|
@@ -104855,149 +104854,6 @@ var removeExtension = (filePath) => {
|
|
|
104855
104854
|
// packages/workspace-tools/src/executors/tsup/get-config.ts
|
|
104856
104855
|
var import_path2 = require("path");
|
|
104857
104856
|
var import_tsup = __toESM(require_dist5());
|
|
104858
|
-
|
|
104859
|
-
// packages/workspace-tools/src/utils/find-cache-dir.ts
|
|
104860
|
-
var import_node_fs = require("node:fs");
|
|
104861
|
-
var import_node_path = require("node:path");
|
|
104862
|
-
var import_node_process = require("node:process");
|
|
104863
|
-
var isWritable2 = (path3) => {
|
|
104864
|
-
try {
|
|
104865
|
-
(0, import_node_fs.accessSync)(path3, import_node_fs.constants.W_OK);
|
|
104866
|
-
return true;
|
|
104867
|
-
} catch {
|
|
104868
|
-
return false;
|
|
104869
|
-
}
|
|
104870
|
-
};
|
|
104871
|
-
function useDirectory(directory, { create = true }) {
|
|
104872
|
-
if (create) {
|
|
104873
|
-
(0, import_node_fs.mkdirSync)(directory, { recursive: true });
|
|
104874
|
-
}
|
|
104875
|
-
return directory;
|
|
104876
|
-
}
|
|
104877
|
-
function getNodeModuleDirectory(workspaceRoot) {
|
|
104878
|
-
const nodeModules = (0, import_node_path.join)(workspaceRoot, "node_modules");
|
|
104879
|
-
if ((0, import_node_fs.existsSync)(nodeModules) && !isWritable2(nodeModules)) {
|
|
104880
|
-
throw new Error("Cannot write to node_modules directory");
|
|
104881
|
-
}
|
|
104882
|
-
return nodeModules;
|
|
104883
|
-
}
|
|
104884
|
-
function findCacheDirectory({
|
|
104885
|
-
name,
|
|
104886
|
-
cacheName,
|
|
104887
|
-
workspaceRoot,
|
|
104888
|
-
create
|
|
104889
|
-
} = {
|
|
104890
|
-
name: "storm",
|
|
104891
|
-
workspaceRoot: getWorkspaceRoot(),
|
|
104892
|
-
create: true
|
|
104893
|
-
}) {
|
|
104894
|
-
if (import_node_process.env.CACHE_DIR && !["true", "false", "1", "0"].includes(import_node_process.env.CACHE_DIR)) {
|
|
104895
|
-
return useDirectory((0, import_node_path.join)(import_node_process.env.CACHE_DIR, name, cacheName), { create });
|
|
104896
|
-
}
|
|
104897
|
-
if (import_node_process.env.STORM_CACHE_DIR && !["true", "false", "1", "0"].includes(import_node_process.env.STORM_CACHE_DIR)) {
|
|
104898
|
-
return useDirectory((0, import_node_path.join)(import_node_process.env.STORM_CACHE_DIR, name, cacheName), {
|
|
104899
|
-
create
|
|
104900
|
-
});
|
|
104901
|
-
}
|
|
104902
|
-
const nodeModules = getNodeModuleDirectory(workspaceRoot);
|
|
104903
|
-
if (!nodeModules) {
|
|
104904
|
-
throw new Error("Cannot find node_modules directory");
|
|
104905
|
-
}
|
|
104906
|
-
return useDirectory(
|
|
104907
|
-
(0, import_node_path.join)(workspaceRoot, "node_modules", ".cache", name, cacheName),
|
|
104908
|
-
{ create }
|
|
104909
|
-
);
|
|
104910
|
-
}
|
|
104911
|
-
|
|
104912
|
-
// packages/workspace-tools/src/utils/versions.ts
|
|
104913
|
-
var tsupVersion = "^7.2.0";
|
|
104914
|
-
var prettierPackageJsonVersion = "2.4.6";
|
|
104915
|
-
var prettierPrismaVersion = "5.0.0";
|
|
104916
|
-
var prettierVersion = "^3.0.3";
|
|
104917
|
-
var swcCliVersion = "~0.1.62";
|
|
104918
|
-
var swcCoreVersion = "~1.3.95";
|
|
104919
|
-
var swcHelpersVersion = "~0.5.3";
|
|
104920
|
-
var swcNodeVersion = "1.6.8";
|
|
104921
|
-
var tsLibVersion = "2.6.2";
|
|
104922
|
-
var typesNodeVersion = "20.9.0";
|
|
104923
|
-
var verdaccioVersion = "5.27.0";
|
|
104924
|
-
var typescriptVersion = "~5.2.2";
|
|
104925
|
-
var eslintVersion = "~8.53.0";
|
|
104926
|
-
var lintStagedVersion = "15.0.2";
|
|
104927
|
-
var semanticReleaseVersion = "22.0.7";
|
|
104928
|
-
var nxVersion = "^17.0.3";
|
|
104929
|
-
var nodeVersion = "18.17.1";
|
|
104930
|
-
var pnpmVersion = "8.10.2";
|
|
104931
|
-
|
|
104932
|
-
// packages/workspace-tools/src/utils/workspace-storage.ts
|
|
104933
|
-
var import_node_fs2 = require("node:fs");
|
|
104934
|
-
var import_node_path2 = require("node:path");
|
|
104935
|
-
var WorkspaceStorage = class {
|
|
104936
|
-
constructor({
|
|
104937
|
-
cacheName,
|
|
104938
|
-
workspaceRoot
|
|
104939
|
-
}) {
|
|
104940
|
-
this.cacheDir = findCacheDirectory({
|
|
104941
|
-
name: "storm",
|
|
104942
|
-
cacheName,
|
|
104943
|
-
workspaceRoot,
|
|
104944
|
-
create: true
|
|
104945
|
-
});
|
|
104946
|
-
}
|
|
104947
|
-
/**
|
|
104948
|
-
* Get item from cache
|
|
104949
|
-
*
|
|
104950
|
-
* @param key - The key to get
|
|
104951
|
-
* @returns The value of the key
|
|
104952
|
-
*/
|
|
104953
|
-
getItem(key) {
|
|
104954
|
-
const cacheFile = (0, import_node_path2.join)(this.cacheDir, key);
|
|
104955
|
-
if ((0, import_node_fs2.existsSync)(cacheFile)) {
|
|
104956
|
-
return (0, import_node_fs2.readFileSync)(cacheFile, "utf-8");
|
|
104957
|
-
}
|
|
104958
|
-
return void 0;
|
|
104959
|
-
}
|
|
104960
|
-
/**
|
|
104961
|
-
* Set item to cache
|
|
104962
|
-
*
|
|
104963
|
-
* @param key - The key to set
|
|
104964
|
-
* @param value - The value to set
|
|
104965
|
-
*/
|
|
104966
|
-
setItem(key, value) {
|
|
104967
|
-
(0, import_node_fs2.writeFileSync)((0, import_node_path2.join)(this.cacheDir, key), value, { encoding: "utf-8" });
|
|
104968
|
-
}
|
|
104969
|
-
/**
|
|
104970
|
-
* Remove item from cache
|
|
104971
|
-
*
|
|
104972
|
-
* @param key - The key to remove
|
|
104973
|
-
*/
|
|
104974
|
-
removeItem(key) {
|
|
104975
|
-
(0, import_node_fs2.rmSync)((0, import_node_path2.join)(this.cacheDir, key), { force: true, recursive: true });
|
|
104976
|
-
}
|
|
104977
|
-
/**
|
|
104978
|
-
* Clear the cache
|
|
104979
|
-
*/
|
|
104980
|
-
clear() {
|
|
104981
|
-
(0, import_node_fs2.readdirSync)(this.cacheDir).forEach((cacheFile) => {
|
|
104982
|
-
(0, import_node_fs2.rmSync)(cacheFile, { force: true, recursive: true });
|
|
104983
|
-
});
|
|
104984
|
-
}
|
|
104985
|
-
/**
|
|
104986
|
-
* Get the key at the index
|
|
104987
|
-
*
|
|
104988
|
-
* @param index - The index to get
|
|
104989
|
-
* @returns The key at the index
|
|
104990
|
-
*/
|
|
104991
|
-
key(index) {
|
|
104992
|
-
const files = (0, import_node_fs2.readdirSync)(this.cacheDir);
|
|
104993
|
-
if (index < files.length && index >= 0) {
|
|
104994
|
-
return files[index];
|
|
104995
|
-
}
|
|
104996
|
-
return void 0;
|
|
104997
|
-
}
|
|
104998
|
-
};
|
|
104999
|
-
|
|
105000
|
-
// packages/workspace-tools/src/executors/tsup/get-config.ts
|
|
105001
104857
|
function modernConfig({
|
|
105002
104858
|
entry,
|
|
105003
104859
|
outDir,
|
|
@@ -105013,8 +104869,7 @@ function modernConfig({
|
|
|
105013
104869
|
docModel = true,
|
|
105014
104870
|
tsdocMetadata = true,
|
|
105015
104871
|
define: define2,
|
|
105016
|
-
env
|
|
105017
|
-
tsCdnStorage,
|
|
104872
|
+
env,
|
|
105018
104873
|
plugins,
|
|
105019
104874
|
dtsTsConfig
|
|
105020
104875
|
}) {
|
|
@@ -105044,7 +104899,7 @@ function modernConfig({
|
|
|
105044
104899
|
platform,
|
|
105045
104900
|
banner,
|
|
105046
104901
|
define: define2,
|
|
105047
|
-
env
|
|
104902
|
+
env,
|
|
105048
104903
|
dts: false,
|
|
105049
104904
|
experimentalDts: {
|
|
105050
104905
|
entry,
|
|
@@ -105061,7 +104916,6 @@ function modernConfig({
|
|
|
105061
104916
|
tsdocMetadata,
|
|
105062
104917
|
sourcemap: debug,
|
|
105063
104918
|
clean: false,
|
|
105064
|
-
tsCdnStorage,
|
|
105065
104919
|
plugins,
|
|
105066
104920
|
outExtension
|
|
105067
104921
|
};
|
|
@@ -105078,8 +104932,7 @@ function legacyConfig({
|
|
|
105078
104932
|
platform = "neutral",
|
|
105079
104933
|
verbose = false,
|
|
105080
104934
|
define: define2,
|
|
105081
|
-
env
|
|
105082
|
-
tsCdnStorage,
|
|
104935
|
+
env,
|
|
105083
104936
|
plugins,
|
|
105084
104937
|
dtsTsConfig
|
|
105085
104938
|
}) {
|
|
@@ -105101,7 +104954,7 @@ function legacyConfig({
|
|
|
105101
104954
|
platform,
|
|
105102
104955
|
banner,
|
|
105103
104956
|
define: define2,
|
|
105104
|
-
env
|
|
104957
|
+
env,
|
|
105105
104958
|
dts: false,
|
|
105106
104959
|
experimentalDts: {
|
|
105107
104960
|
entry,
|
|
@@ -105118,7 +104971,6 @@ function legacyConfig({
|
|
|
105118
104971
|
tsdocMetadata: false,
|
|
105119
104972
|
sourcemap: debug,
|
|
105120
104973
|
clean: false,
|
|
105121
|
-
tsCdnStorage,
|
|
105122
104974
|
plugins,
|
|
105123
104975
|
outExtension
|
|
105124
104976
|
};
|
|
@@ -105137,8 +104989,7 @@ function workerConfig({
|
|
|
105137
104989
|
docModel = true,
|
|
105138
104990
|
tsdocMetadata = true,
|
|
105139
104991
|
define: define2,
|
|
105140
|
-
env
|
|
105141
|
-
tsCdnStorage,
|
|
104992
|
+
env,
|
|
105142
104993
|
plugins,
|
|
105143
104994
|
dtsTsConfig
|
|
105144
104995
|
}) {
|
|
@@ -105154,13 +105005,13 @@ function workerConfig({
|
|
|
105154
105005
|
outDir: (0, import_path2.join)(outDir, "dist"),
|
|
105155
105006
|
silent: !verbose,
|
|
105156
105007
|
metafile: true,
|
|
105157
|
-
shims:
|
|
105008
|
+
shims: false,
|
|
105158
105009
|
minify: true,
|
|
105159
105010
|
external,
|
|
105160
105011
|
platform: "browser",
|
|
105161
105012
|
banner,
|
|
105162
105013
|
define: define2,
|
|
105163
|
-
env
|
|
105014
|
+
env,
|
|
105164
105015
|
dts: false,
|
|
105165
105016
|
experimentalDts: {
|
|
105166
105017
|
entry,
|
|
@@ -105177,7 +105028,6 @@ function workerConfig({
|
|
|
105177
105028
|
tsdocMetadata,
|
|
105178
105029
|
sourcemap: debug,
|
|
105179
105030
|
clean: false,
|
|
105180
|
-
tsCdnStorage,
|
|
105181
105031
|
plugins,
|
|
105182
105032
|
outExtension
|
|
105183
105033
|
};
|
|
@@ -105195,7 +105045,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
105195
105045
|
docModel,
|
|
105196
105046
|
tsdocMetadata,
|
|
105197
105047
|
define: define2,
|
|
105198
|
-
env
|
|
105048
|
+
env,
|
|
105199
105049
|
verbose,
|
|
105200
105050
|
dtsTsConfig,
|
|
105201
105051
|
plugins,
|
|
@@ -105236,11 +105086,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
105236
105086
|
docModel,
|
|
105237
105087
|
tsdocMetadata,
|
|
105238
105088
|
define: define2,
|
|
105239
|
-
env
|
|
105240
|
-
tsCdnStorage: new WorkspaceStorage({
|
|
105241
|
-
cacheName: "ts-libs",
|
|
105242
|
-
workspaceRoot
|
|
105243
|
-
}),
|
|
105089
|
+
env,
|
|
105244
105090
|
options,
|
|
105245
105091
|
plugins,
|
|
105246
105092
|
dtsTsConfig
|
|
@@ -105346,7 +105192,21 @@ ${Object.keys(options).map(
|
|
|
105346
105192
|
if (!result.success) {
|
|
105347
105193
|
throw new Error("The Build process failed trying to copy assets");
|
|
105348
105194
|
}
|
|
105195
|
+
const workspacePackageJson = (0, import_devkit.readJsonFile)(
|
|
105196
|
+
(0, import_path3.join)(workspaceRoot, "package.json")
|
|
105197
|
+
);
|
|
105349
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
|
+
}
|
|
105350
105210
|
const externalDependencies = options.external.reduce((acc, name) => {
|
|
105351
105211
|
const externalNode = context.projectGraph.externalNodes[`npm:${name}`];
|
|
105352
105212
|
if (externalNode) {
|
|
@@ -105355,6 +105215,15 @@ ${Object.keys(options).map(
|
|
|
105355
105215
|
outputs: [],
|
|
105356
105216
|
node: externalNode
|
|
105357
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
|
+
}
|
|
105358
105227
|
}
|
|
105359
105228
|
return acc;
|
|
105360
105229
|
}, []);
|
|
@@ -105362,7 +105231,7 @@ ${Object.keys(options).map(
|
|
|
105362
105231
|
${externalDependencies.map((dep) => {
|
|
105363
105232
|
return `name: ${dep.name}, node: ${dep.node}, outputs: ${dep.outputs}`;
|
|
105364
105233
|
}).join("\n")}`);
|
|
105365
|
-
if (
|
|
105234
|
+
if (options.bundle === false) {
|
|
105366
105235
|
for (const thirdPartyDependency of (0, import_get_extra_dependencies.getExtraDependencies)(
|
|
105367
105236
|
context.projectName,
|
|
105368
105237
|
context.projectGraph
|
|
@@ -105377,21 +105246,16 @@ ${externalDependencies.map((dep) => {
|
|
|
105377
105246
|
const projectGraph = await (0, import_project_graph.buildProjectGraphWithoutDaemon)();
|
|
105378
105247
|
const pathToPackageJson = (0, import_path3.join)(context.root, projectRoot, "package.json");
|
|
105379
105248
|
const packageJson = (0, import_fileutils.fileExists)(pathToPackageJson) ? (0, import_devkit.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
|
|
105380
|
-
|
|
105381
|
-
(0, import_path3.join)(workspaceRoot, "package.json")
|
|
105382
|
-
);
|
|
105249
|
+
delete packageJson.dependencies;
|
|
105383
105250
|
externalDependencies.forEach((entry) => {
|
|
105384
105251
|
const packageConfig = entry.node.data;
|
|
105385
|
-
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])) {
|
|
105386
105253
|
const { packageName, version } = packageConfig;
|
|
105387
|
-
if (
|
|
105388
|
-
return;
|
|
105389
|
-
}
|
|
105390
|
-
if (workspacePackageJson.dependencies?.[packageName]) {
|
|
105254
|
+
if (workspacePackageJson.dependencies?.[packageName] || workspacePackageJson.devDependencies?.[packageName]) {
|
|
105391
105255
|
return;
|
|
105392
105256
|
}
|
|
105393
105257
|
packageJson.dependencies ??= {};
|
|
105394
|
-
packageJson.dependencies[packageName] = version;
|
|
105258
|
+
packageJson.dependencies[packageName] = !!projectGraph.nodes[entry.node.name] ? "latest" : version;
|
|
105395
105259
|
}
|
|
105396
105260
|
});
|
|
105397
105261
|
packageJson.type = "module";
|
|
@@ -105430,7 +105294,7 @@ ${externalDependencies.map((dep) => {
|
|
|
105430
105294
|
if (distSrc.startsWith("/")) {
|
|
105431
105295
|
distSrc = distSrc.substring(1);
|
|
105432
105296
|
}
|
|
105433
|
-
packageJson.source ??=
|
|
105297
|
+
packageJson.source ??= `${(0, import_path3.join)(distSrc, "index.ts").replaceAll(
|
|
105434
105298
|
"\\",
|
|
105435
105299
|
"/"
|
|
105436
105300
|
)}`;
|
|
@@ -105497,11 +105361,6 @@ ${(0, import_fs2.readFileSync)(file, "utf-8")}`,
|
|
|
105497
105361
|
cwd: workspaceRoot
|
|
105498
105362
|
})
|
|
105499
105363
|
);
|
|
105500
|
-
const eventEmitter = new import_node_events.EventEmitter({ captureRejections: true });
|
|
105501
|
-
eventEmitter.on("message", (event) => {
|
|
105502
|
-
console.log(`\u{1F4E2} Tsup build message:
|
|
105503
|
-
`, event);
|
|
105504
|
-
});
|
|
105505
105364
|
const config = getConfig(context.root, projectRoot, sourceRoot, {
|
|
105506
105365
|
...options,
|
|
105507
105366
|
dtsTsConfig: getNormalizedTsConfig(
|
|
@@ -105596,6 +105455,28 @@ var isPrimitive = (value) => {
|
|
|
105596
105455
|
|
|
105597
105456
|
// packages/workspace-tools/src/generators/init/init.ts
|
|
105598
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
|
|
105599
105480
|
async function stormInitGenerator(tree, schema) {
|
|
105600
105481
|
const task = (0, import_devkit2.addDependenciesToPackageJson)(
|
|
105601
105482
|
tree,
|