@storm-software/workspace-tools 1.62.24 → 1.62.25
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 +12 -0
- package/index.js +34 -43
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +31 -40
- package/src/executors/tsup-browser/executor.js +31 -40
- package/src/executors/tsup-neutral/executor.js +31 -40
- package/src/executors/tsup-node/executor.js +31 -40
- package/src/utils/index.js +34 -44
package/package.json
CHANGED
|
@@ -112632,7 +112632,7 @@ ${frame}`;
|
|
|
112632
112632
|
},
|
|
112633
112633
|
/*istanbul ignore start*/
|
|
112634
112634
|
/*istanbul ignore end*/
|
|
112635
|
-
join: function
|
|
112635
|
+
join: function join22(chars) {
|
|
112636
112636
|
return chars.join("");
|
|
112637
112637
|
}
|
|
112638
112638
|
};
|
|
@@ -116902,7 +116902,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
116902
116902
|
var hardline3 = [hardlineWithoutBreakParent3, breakParent3];
|
|
116903
116903
|
var literalline2 = [literallineWithoutBreakParent2, breakParent3];
|
|
116904
116904
|
var cursor3 = { type: DOC_TYPE_CURSOR3 };
|
|
116905
|
-
function
|
|
116905
|
+
function join3(separator, docs) {
|
|
116906
116906
|
assertDoc3(separator);
|
|
116907
116907
|
assertDocArray3(docs);
|
|
116908
116908
|
const parts = [];
|
|
@@ -117300,7 +117300,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
117300
117300
|
return mapDoc3(doc, (currentDoc) => cleanDocFn3(currentDoc));
|
|
117301
117301
|
}
|
|
117302
117302
|
function replaceEndOfLine2(doc, replacement = literalline2) {
|
|
117303
|
-
return mapDoc3(doc, (currentDoc) => typeof currentDoc === "string" ?
|
|
117303
|
+
return mapDoc3(doc, (currentDoc) => typeof currentDoc === "string" ? join3(replacement, currentDoc.split("\n")) : currentDoc);
|
|
117304
117304
|
}
|
|
117305
117305
|
function canBreakFn2(doc) {
|
|
117306
117306
|
if (doc.type === DOC_TYPE_LINE3) {
|
|
@@ -117875,7 +117875,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
117875
117875
|
};
|
|
117876
117876
|
}
|
|
117877
117877
|
var builders2 = {
|
|
117878
|
-
join:
|
|
117878
|
+
join: join3,
|
|
117879
117879
|
line: line3,
|
|
117880
117880
|
softline: softline2,
|
|
117881
117881
|
hardline: hardline3,
|
|
@@ -143410,7 +143410,7 @@ var require_util2 = __commonJS({
|
|
|
143410
143410
|
return path14;
|
|
143411
143411
|
});
|
|
143412
143412
|
exports2.normalize = normalize2;
|
|
143413
|
-
function
|
|
143413
|
+
function join3(aRoot, aPath) {
|
|
143414
143414
|
if (aRoot === "") {
|
|
143415
143415
|
aRoot = ".";
|
|
143416
143416
|
}
|
|
@@ -143442,7 +143442,7 @@ var require_util2 = __commonJS({
|
|
|
143442
143442
|
}
|
|
143443
143443
|
return joined;
|
|
143444
143444
|
}
|
|
143445
|
-
exports2.join =
|
|
143445
|
+
exports2.join = join3;
|
|
143446
143446
|
exports2.isAbsolute = function(aPath) {
|
|
143447
143447
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
143448
143448
|
};
|
|
@@ -143615,7 +143615,7 @@ var require_util2 = __commonJS({
|
|
|
143615
143615
|
parsed.path = parsed.path.substring(0, index + 1);
|
|
143616
143616
|
}
|
|
143617
143617
|
}
|
|
143618
|
-
sourceURL =
|
|
143618
|
+
sourceURL = join3(urlGenerate(parsed), sourceURL);
|
|
143619
143619
|
}
|
|
143620
143620
|
return normalize2(sourceURL);
|
|
143621
143621
|
}
|
|
@@ -147307,14 +147307,14 @@ var require_path2 = __commonJS({
|
|
|
147307
147307
|
return normalize2(path15.slice(0, endIndex));
|
|
147308
147308
|
}
|
|
147309
147309
|
exports2.dirname = dirname4;
|
|
147310
|
-
function
|
|
147310
|
+
function join3(p12, ...others) {
|
|
147311
147311
|
if (others.length > 0) {
|
|
147312
147312
|
return normalize2((p12 ? p12 + exports2.NormalizedSep : "") + others.join(exports2.NormalizedSep));
|
|
147313
147313
|
} else {
|
|
147314
147314
|
return p12;
|
|
147315
147315
|
}
|
|
147316
147316
|
}
|
|
147317
|
-
exports2.join =
|
|
147317
|
+
exports2.join = join3;
|
|
147318
147318
|
function isAbsolute(p4) {
|
|
147319
147319
|
return p4.startsWith(exports2.NormalizedSep);
|
|
147320
147320
|
}
|
|
@@ -147349,7 +147349,7 @@ var require_path2 = __commonJS({
|
|
|
147349
147349
|
if (isAbsolute(p22)) {
|
|
147350
147350
|
return p22;
|
|
147351
147351
|
} else {
|
|
147352
|
-
return
|
|
147352
|
+
return join3(p12, p22);
|
|
147353
147353
|
}
|
|
147354
147354
|
}
|
|
147355
147355
|
exports2.resolve = resolve3;
|
|
@@ -164746,7 +164746,7 @@ var require_buffer_list = __commonJS({
|
|
|
164746
164746
|
}
|
|
164747
164747
|
}, {
|
|
164748
164748
|
key: "join",
|
|
164749
|
-
value: function
|
|
164749
|
+
value: function join3(s) {
|
|
164750
164750
|
if (this.length === 0)
|
|
164751
164751
|
return "";
|
|
164752
164752
|
var p4 = this.head;
|
|
@@ -172511,7 +172511,7 @@ var require_util4 = __commonJS({
|
|
|
172511
172511
|
return path14;
|
|
172512
172512
|
}
|
|
172513
172513
|
exports2.normalize = normalize2;
|
|
172514
|
-
function
|
|
172514
|
+
function join3(aRoot, aPath) {
|
|
172515
172515
|
if (aRoot === "") {
|
|
172516
172516
|
aRoot = ".";
|
|
172517
172517
|
}
|
|
@@ -172543,7 +172543,7 @@ var require_util4 = __commonJS({
|
|
|
172543
172543
|
}
|
|
172544
172544
|
return joined;
|
|
172545
172545
|
}
|
|
172546
|
-
exports2.join =
|
|
172546
|
+
exports2.join = join3;
|
|
172547
172547
|
exports2.isAbsolute = function(aPath) {
|
|
172548
172548
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
172549
172549
|
};
|
|
@@ -172716,7 +172716,7 @@ var require_util4 = __commonJS({
|
|
|
172716
172716
|
parsed.path = parsed.path.substring(0, index + 1);
|
|
172717
172717
|
}
|
|
172718
172718
|
}
|
|
172719
|
-
sourceURL =
|
|
172719
|
+
sourceURL = join3(urlGenerate(parsed), sourceURL);
|
|
172720
172720
|
}
|
|
172721
172721
|
return normalize2(sourceURL);
|
|
172722
172722
|
}
|
|
@@ -417753,7 +417753,7 @@ var require_util7 = __commonJS({
|
|
|
417753
417753
|
var normalize2 = createSafeHandler((url2) => {
|
|
417754
417754
|
});
|
|
417755
417755
|
exports2.normalize = normalize2;
|
|
417756
|
-
function
|
|
417756
|
+
function join3(aRoot, aPath) {
|
|
417757
417757
|
const pathType = getURLType(aPath);
|
|
417758
417758
|
const rootType = getURLType(aRoot);
|
|
417759
417759
|
aRoot = ensureDirectory(aRoot);
|
|
@@ -417779,7 +417779,7 @@ var require_util7 = __commonJS({
|
|
|
417779
417779
|
const newPath = withBase(aPath, withBase(aRoot, base));
|
|
417780
417780
|
return computeRelativeURL(base, newPath);
|
|
417781
417781
|
}
|
|
417782
|
-
exports2.join =
|
|
417782
|
+
exports2.join = join3;
|
|
417783
417783
|
function relative(rootURL, targetURL) {
|
|
417784
417784
|
const result = relativeIfPossible(rootURL, targetURL);
|
|
417785
417785
|
return typeof result === "string" ? result : normalize2(targetURL);
|
|
@@ -417809,9 +417809,9 @@ var require_util7 = __commonJS({
|
|
|
417809
417809
|
}
|
|
417810
417810
|
let url2 = normalize2(sourceURL || "");
|
|
417811
417811
|
if (sourceRoot)
|
|
417812
|
-
url2 =
|
|
417812
|
+
url2 = join3(sourceRoot, url2);
|
|
417813
417813
|
if (sourceMapURL)
|
|
417814
|
-
url2 =
|
|
417814
|
+
url2 = join3(trimFilename(sourceMapURL), url2);
|
|
417815
417815
|
return url2;
|
|
417816
417816
|
}
|
|
417817
417817
|
exports2.computeSourceURL = computeSourceURL;
|
|
@@ -419577,7 +419577,7 @@ var require_source_map3 = __commonJS({
|
|
|
419577
419577
|
var require_native = __commonJS({
|
|
419578
419578
|
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/native.js"(exports2, module2) {
|
|
419579
419579
|
var { existsSync } = require("node:fs");
|
|
419580
|
-
var { join:
|
|
419580
|
+
var { join: join3 } = require("node:path");
|
|
419581
419581
|
var { platform, arch, report } = require("node:process");
|
|
419582
419582
|
var isMusl = () => !report.getReport().header.glibcVersionRuntime;
|
|
419583
419583
|
var bindingsByPlatformAndArch = {
|
|
@@ -419651,7 +419651,7 @@ If this is important to you, please consider supporting Rollup to make a native
|
|
|
419651
419651
|
}
|
|
419652
419652
|
};
|
|
419653
419653
|
var { parse: parse6, parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } = requireWithFriendlyError(
|
|
419654
|
-
existsSync(
|
|
419654
|
+
existsSync(join3(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
|
|
419655
419655
|
);
|
|
419656
419656
|
module2.exports.parse = parse6;
|
|
419657
419657
|
module2.exports.parseAsync = parseAsync;
|
|
@@ -453244,26 +453244,16 @@ ${options8.banner}
|
|
|
453244
453244
|
};
|
|
453245
453245
|
function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
453246
453246
|
const config = (0, import_typescript.readConfigFile)(options8.tsConfig, import_typescript.sys.readFile).config;
|
|
453247
|
-
const tsConfig = (0, import_typescript.parseJsonConfigFileContent)(
|
|
453248
|
-
|
|
453249
|
-
|
|
453250
|
-
|
|
453251
|
-
|
|
453252
|
-
|
|
453253
|
-
|
|
453254
|
-
|
|
453255
|
-
|
|
453256
|
-
|
|
453257
|
-
emitDeclarationOnly: true,
|
|
453258
|
-
declaration: true,
|
|
453259
|
-
declarationMap: true,
|
|
453260
|
-
declarationDir: (0, import_devkit2.joinPathFragments)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
453261
|
-
},
|
|
453262
|
-
include: ["**/*"]
|
|
453263
|
-
},
|
|
453264
|
-
import_typescript.sys,
|
|
453265
|
-
(0, import_node_path.dirname)(options8.tsConfig)
|
|
453266
|
-
);
|
|
453247
|
+
const tsConfig = (0, import_typescript.parseJsonConfigFileContent)(config, import_typescript.sys, (0, import_node_path.dirname)(options8.tsConfig), {
|
|
453248
|
+
outDir: outputPath,
|
|
453249
|
+
noEmit: false,
|
|
453250
|
+
esModuleInterop: true,
|
|
453251
|
+
noUnusedLocals: false,
|
|
453252
|
+
emitDeclarationOnly: true,
|
|
453253
|
+
declaration: true,
|
|
453254
|
+
declarationMap: true,
|
|
453255
|
+
declarationDir: (0, import_node_path.join)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
453256
|
+
});
|
|
453267
453257
|
tsConfig.options.pathsBasePath = workspaceRoot;
|
|
453268
453258
|
if ((config.compilerOptions?.incremental || tsConfig.options.incremental) && !tsConfig.options.tsBuildInfoFile) {
|
|
453269
453259
|
tsConfig.options.tsBuildInfoFile = (0, import_devkit2.joinPathFragments)(outputPath, "tsconfig.tsbuildinfo");
|
|
@@ -453606,6 +453596,7 @@ ${externalDependencies.map((dep) => {
|
|
|
453606
453596
|
(0, import_devkit3.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.js"),
|
|
453607
453597
|
(0, import_devkit3.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.jsx")
|
|
453608
453598
|
]);
|
|
453599
|
+
options8.verbose = options8.verbose || getLogLevel(config?.logLevel) >= LogLevel.DEBUG;
|
|
453609
453600
|
await Promise.allSettled(
|
|
453610
453601
|
files.map(
|
|
453611
453602
|
async (file) => (0, import_fs_extra.writeFile)(
|
|
@@ -761,7 +761,7 @@ var require_util = __commonJS({
|
|
|
761
761
|
return path14;
|
|
762
762
|
}
|
|
763
763
|
exports2.normalize = normalize2;
|
|
764
|
-
function
|
|
764
|
+
function join3(aRoot, aPath) {
|
|
765
765
|
if (aRoot === "") {
|
|
766
766
|
aRoot = ".";
|
|
767
767
|
}
|
|
@@ -793,7 +793,7 @@ var require_util = __commonJS({
|
|
|
793
793
|
}
|
|
794
794
|
return joined;
|
|
795
795
|
}
|
|
796
|
-
exports2.join =
|
|
796
|
+
exports2.join = join3;
|
|
797
797
|
exports2.isAbsolute = function(aPath) {
|
|
798
798
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
799
799
|
};
|
|
@@ -966,7 +966,7 @@ var require_util = __commonJS({
|
|
|
966
966
|
parsed.path = parsed.path.substring(0, index + 1);
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
|
-
sourceURL =
|
|
969
|
+
sourceURL = join3(urlGenerate(parsed), sourceURL);
|
|
970
970
|
}
|
|
971
971
|
return normalize2(sourceURL);
|
|
972
972
|
}
|
|
@@ -315541,7 +315541,7 @@ ${frame}`;
|
|
|
315541
315541
|
},
|
|
315542
315542
|
/*istanbul ignore start*/
|
|
315543
315543
|
/*istanbul ignore end*/
|
|
315544
|
-
join: function
|
|
315544
|
+
join: function join22(chars) {
|
|
315545
315545
|
return chars.join("");
|
|
315546
315546
|
}
|
|
315547
315547
|
};
|
|
@@ -319811,7 +319811,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
319811
319811
|
var hardline3 = [hardlineWithoutBreakParent3, breakParent3];
|
|
319812
319812
|
var literalline2 = [literallineWithoutBreakParent2, breakParent3];
|
|
319813
319813
|
var cursor3 = { type: DOC_TYPE_CURSOR3 };
|
|
319814
|
-
function
|
|
319814
|
+
function join3(separator, docs) {
|
|
319815
319815
|
assertDoc3(separator);
|
|
319816
319816
|
assertDocArray3(docs);
|
|
319817
319817
|
const parts = [];
|
|
@@ -320209,7 +320209,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
320209
320209
|
return mapDoc3(doc, (currentDoc) => cleanDocFn3(currentDoc));
|
|
320210
320210
|
}
|
|
320211
320211
|
function replaceEndOfLine2(doc, replacement = literalline2) {
|
|
320212
|
-
return mapDoc3(doc, (currentDoc) => typeof currentDoc === "string" ?
|
|
320212
|
+
return mapDoc3(doc, (currentDoc) => typeof currentDoc === "string" ? join3(replacement, currentDoc.split("\n")) : currentDoc);
|
|
320213
320213
|
}
|
|
320214
320214
|
function canBreakFn2(doc) {
|
|
320215
320215
|
if (doc.type === DOC_TYPE_LINE3) {
|
|
@@ -320784,7 +320784,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
320784
320784
|
};
|
|
320785
320785
|
}
|
|
320786
320786
|
var builders2 = {
|
|
320787
|
-
join:
|
|
320787
|
+
join: join3,
|
|
320788
320788
|
line: line3,
|
|
320789
320789
|
softline: softline2,
|
|
320790
320790
|
hardline: hardline3,
|
|
@@ -346319,7 +346319,7 @@ var require_util3 = __commonJS({
|
|
|
346319
346319
|
return path14;
|
|
346320
346320
|
});
|
|
346321
346321
|
exports2.normalize = normalize2;
|
|
346322
|
-
function
|
|
346322
|
+
function join3(aRoot, aPath) {
|
|
346323
346323
|
if (aRoot === "") {
|
|
346324
346324
|
aRoot = ".";
|
|
346325
346325
|
}
|
|
@@ -346351,7 +346351,7 @@ var require_util3 = __commonJS({
|
|
|
346351
346351
|
}
|
|
346352
346352
|
return joined;
|
|
346353
346353
|
}
|
|
346354
|
-
exports2.join =
|
|
346354
|
+
exports2.join = join3;
|
|
346355
346355
|
exports2.isAbsolute = function(aPath) {
|
|
346356
346356
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
346357
346357
|
};
|
|
@@ -346524,7 +346524,7 @@ var require_util3 = __commonJS({
|
|
|
346524
346524
|
parsed.path = parsed.path.substring(0, index + 1);
|
|
346525
346525
|
}
|
|
346526
346526
|
}
|
|
346527
|
-
sourceURL =
|
|
346527
|
+
sourceURL = join3(urlGenerate(parsed), sourceURL);
|
|
346528
346528
|
}
|
|
346529
346529
|
return normalize2(sourceURL);
|
|
346530
346530
|
}
|
|
@@ -350216,14 +350216,14 @@ var require_path2 = __commonJS({
|
|
|
350216
350216
|
return normalize2(path15.slice(0, endIndex));
|
|
350217
350217
|
}
|
|
350218
350218
|
exports2.dirname = dirname4;
|
|
350219
|
-
function
|
|
350219
|
+
function join3(p12, ...others) {
|
|
350220
350220
|
if (others.length > 0) {
|
|
350221
350221
|
return normalize2((p12 ? p12 + exports2.NormalizedSep : "") + others.join(exports2.NormalizedSep));
|
|
350222
350222
|
} else {
|
|
350223
350223
|
return p12;
|
|
350224
350224
|
}
|
|
350225
350225
|
}
|
|
350226
|
-
exports2.join =
|
|
350226
|
+
exports2.join = join3;
|
|
350227
350227
|
function isAbsolute(p4) {
|
|
350228
350228
|
return p4.startsWith(exports2.NormalizedSep);
|
|
350229
350229
|
}
|
|
@@ -350258,7 +350258,7 @@ var require_path2 = __commonJS({
|
|
|
350258
350258
|
if (isAbsolute(p22)) {
|
|
350259
350259
|
return p22;
|
|
350260
350260
|
} else {
|
|
350261
|
-
return
|
|
350261
|
+
return join3(p12, p22);
|
|
350262
350262
|
}
|
|
350263
350263
|
}
|
|
350264
350264
|
exports2.resolve = resolve3;
|
|
@@ -367655,7 +367655,7 @@ var require_buffer_list = __commonJS({
|
|
|
367655
367655
|
}
|
|
367656
367656
|
}, {
|
|
367657
367657
|
key: "join",
|
|
367658
|
-
value: function
|
|
367658
|
+
value: function join3(s) {
|
|
367659
367659
|
if (this.length === 0)
|
|
367660
367660
|
return "";
|
|
367661
367661
|
var p4 = this.head;
|
|
@@ -405613,7 +405613,7 @@ var require_util7 = __commonJS({
|
|
|
405613
405613
|
var normalize2 = createSafeHandler((url2) => {
|
|
405614
405614
|
});
|
|
405615
405615
|
exports2.normalize = normalize2;
|
|
405616
|
-
function
|
|
405616
|
+
function join3(aRoot, aPath) {
|
|
405617
405617
|
const pathType = getURLType(aPath);
|
|
405618
405618
|
const rootType = getURLType(aRoot);
|
|
405619
405619
|
aRoot = ensureDirectory(aRoot);
|
|
@@ -405639,7 +405639,7 @@ var require_util7 = __commonJS({
|
|
|
405639
405639
|
const newPath = withBase(aPath, withBase(aRoot, base));
|
|
405640
405640
|
return computeRelativeURL(base, newPath);
|
|
405641
405641
|
}
|
|
405642
|
-
exports2.join =
|
|
405642
|
+
exports2.join = join3;
|
|
405643
405643
|
function relative(rootURL, targetURL) {
|
|
405644
405644
|
const result = relativeIfPossible(rootURL, targetURL);
|
|
405645
405645
|
return typeof result === "string" ? result : normalize2(targetURL);
|
|
@@ -405669,9 +405669,9 @@ var require_util7 = __commonJS({
|
|
|
405669
405669
|
}
|
|
405670
405670
|
let url2 = normalize2(sourceURL || "");
|
|
405671
405671
|
if (sourceRoot)
|
|
405672
|
-
url2 =
|
|
405672
|
+
url2 = join3(sourceRoot, url2);
|
|
405673
405673
|
if (sourceMapURL)
|
|
405674
|
-
url2 =
|
|
405674
|
+
url2 = join3(trimFilename(sourceMapURL), url2);
|
|
405675
405675
|
return url2;
|
|
405676
405676
|
}
|
|
405677
405677
|
exports2.computeSourceURL = computeSourceURL;
|
|
@@ -407437,7 +407437,7 @@ var require_source_map3 = __commonJS({
|
|
|
407437
407437
|
var require_native = __commonJS({
|
|
407438
407438
|
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/native.js"(exports2, module2) {
|
|
407439
407439
|
var { existsSync } = require("node:fs");
|
|
407440
|
-
var { join:
|
|
407440
|
+
var { join: join3 } = require("node:path");
|
|
407441
407441
|
var { platform, arch, report } = require("node:process");
|
|
407442
407442
|
var isMusl = () => !report.getReport().header.glibcVersionRuntime;
|
|
407443
407443
|
var bindingsByPlatformAndArch = {
|
|
@@ -407511,7 +407511,7 @@ If this is important to you, please consider supporting Rollup to make a native
|
|
|
407511
407511
|
}
|
|
407512
407512
|
};
|
|
407513
407513
|
var { parse: parse6, parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } = requireWithFriendlyError(
|
|
407514
|
-
existsSync(
|
|
407514
|
+
existsSync(join3(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
|
|
407515
407515
|
);
|
|
407516
407516
|
module2.exports.parse = parse6;
|
|
407517
407517
|
module2.exports.parseAsync = parseAsync;
|
|
@@ -447060,26 +447060,16 @@ ${options8.banner}
|
|
|
447060
447060
|
};
|
|
447061
447061
|
function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
447062
447062
|
const config = (0, import_typescript.readConfigFile)(options8.tsConfig, import_typescript.sys.readFile).config;
|
|
447063
|
-
const tsConfig = (0, import_typescript.parseJsonConfigFileContent)(
|
|
447064
|
-
|
|
447065
|
-
|
|
447066
|
-
|
|
447067
|
-
|
|
447068
|
-
|
|
447069
|
-
|
|
447070
|
-
|
|
447071
|
-
|
|
447072
|
-
|
|
447073
|
-
emitDeclarationOnly: true,
|
|
447074
|
-
declaration: true,
|
|
447075
|
-
declarationMap: true,
|
|
447076
|
-
declarationDir: (0, import_devkit2.joinPathFragments)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
447077
|
-
},
|
|
447078
|
-
include: ["**/*"]
|
|
447079
|
-
},
|
|
447080
|
-
import_typescript.sys,
|
|
447081
|
-
(0, import_node_path.dirname)(options8.tsConfig)
|
|
447082
|
-
);
|
|
447063
|
+
const tsConfig = (0, import_typescript.parseJsonConfigFileContent)(config, import_typescript.sys, (0, import_node_path.dirname)(options8.tsConfig), {
|
|
447064
|
+
outDir: outputPath,
|
|
447065
|
+
noEmit: false,
|
|
447066
|
+
esModuleInterop: true,
|
|
447067
|
+
noUnusedLocals: false,
|
|
447068
|
+
emitDeclarationOnly: true,
|
|
447069
|
+
declaration: true,
|
|
447070
|
+
declarationMap: true,
|
|
447071
|
+
declarationDir: (0, import_node_path.join)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
447072
|
+
});
|
|
447083
447073
|
tsConfig.options.pathsBasePath = workspaceRoot;
|
|
447084
447074
|
if ((config.compilerOptions?.incremental || tsConfig.options.incremental) && !tsConfig.options.tsBuildInfoFile) {
|
|
447085
447075
|
tsConfig.options.tsBuildInfoFile = (0, import_devkit2.joinPathFragments)(outputPath, "tsconfig.tsbuildinfo");
|
|
@@ -453645,6 +453635,7 @@ ${externalDependencies.map((dep) => {
|
|
|
453645
453635
|
(0, import_devkit3.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.js"),
|
|
453646
453636
|
(0, import_devkit3.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.jsx")
|
|
453647
453637
|
]);
|
|
453638
|
+
options8.verbose = options8.verbose || getLogLevel(config?.logLevel) >= LogLevel.DEBUG;
|
|
453648
453639
|
await Promise.allSettled(
|
|
453649
453640
|
files.map(
|
|
453650
453641
|
async (file) => (0, import_fs_extra.writeFile)(
|
|
@@ -761,7 +761,7 @@ var require_util = __commonJS({
|
|
|
761
761
|
return path14;
|
|
762
762
|
}
|
|
763
763
|
exports2.normalize = normalize2;
|
|
764
|
-
function
|
|
764
|
+
function join3(aRoot, aPath) {
|
|
765
765
|
if (aRoot === "") {
|
|
766
766
|
aRoot = ".";
|
|
767
767
|
}
|
|
@@ -793,7 +793,7 @@ var require_util = __commonJS({
|
|
|
793
793
|
}
|
|
794
794
|
return joined;
|
|
795
795
|
}
|
|
796
|
-
exports2.join =
|
|
796
|
+
exports2.join = join3;
|
|
797
797
|
exports2.isAbsolute = function(aPath) {
|
|
798
798
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
799
799
|
};
|
|
@@ -966,7 +966,7 @@ var require_util = __commonJS({
|
|
|
966
966
|
parsed.path = parsed.path.substring(0, index + 1);
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
|
-
sourceURL =
|
|
969
|
+
sourceURL = join3(urlGenerate(parsed), sourceURL);
|
|
970
970
|
}
|
|
971
971
|
return normalize2(sourceURL);
|
|
972
972
|
}
|
|
@@ -315541,7 +315541,7 @@ ${frame}`;
|
|
|
315541
315541
|
},
|
|
315542
315542
|
/*istanbul ignore start*/
|
|
315543
315543
|
/*istanbul ignore end*/
|
|
315544
|
-
join: function
|
|
315544
|
+
join: function join22(chars) {
|
|
315545
315545
|
return chars.join("");
|
|
315546
315546
|
}
|
|
315547
315547
|
};
|
|
@@ -319811,7 +319811,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
319811
319811
|
var hardline3 = [hardlineWithoutBreakParent3, breakParent3];
|
|
319812
319812
|
var literalline2 = [literallineWithoutBreakParent2, breakParent3];
|
|
319813
319813
|
var cursor3 = { type: DOC_TYPE_CURSOR3 };
|
|
319814
|
-
function
|
|
319814
|
+
function join3(separator, docs) {
|
|
319815
319815
|
assertDoc3(separator);
|
|
319816
319816
|
assertDocArray3(docs);
|
|
319817
319817
|
const parts = [];
|
|
@@ -320209,7 +320209,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
320209
320209
|
return mapDoc3(doc, (currentDoc) => cleanDocFn3(currentDoc));
|
|
320210
320210
|
}
|
|
320211
320211
|
function replaceEndOfLine2(doc, replacement = literalline2) {
|
|
320212
|
-
return mapDoc3(doc, (currentDoc) => typeof currentDoc === "string" ?
|
|
320212
|
+
return mapDoc3(doc, (currentDoc) => typeof currentDoc === "string" ? join3(replacement, currentDoc.split("\n")) : currentDoc);
|
|
320213
320213
|
}
|
|
320214
320214
|
function canBreakFn2(doc) {
|
|
320215
320215
|
if (doc.type === DOC_TYPE_LINE3) {
|
|
@@ -320784,7 +320784,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
320784
320784
|
};
|
|
320785
320785
|
}
|
|
320786
320786
|
var builders2 = {
|
|
320787
|
-
join:
|
|
320787
|
+
join: join3,
|
|
320788
320788
|
line: line3,
|
|
320789
320789
|
softline: softline2,
|
|
320790
320790
|
hardline: hardline3,
|
|
@@ -346319,7 +346319,7 @@ var require_util3 = __commonJS({
|
|
|
346319
346319
|
return path14;
|
|
346320
346320
|
});
|
|
346321
346321
|
exports2.normalize = normalize2;
|
|
346322
|
-
function
|
|
346322
|
+
function join3(aRoot, aPath) {
|
|
346323
346323
|
if (aRoot === "") {
|
|
346324
346324
|
aRoot = ".";
|
|
346325
346325
|
}
|
|
@@ -346351,7 +346351,7 @@ var require_util3 = __commonJS({
|
|
|
346351
346351
|
}
|
|
346352
346352
|
return joined;
|
|
346353
346353
|
}
|
|
346354
|
-
exports2.join =
|
|
346354
|
+
exports2.join = join3;
|
|
346355
346355
|
exports2.isAbsolute = function(aPath) {
|
|
346356
346356
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
346357
346357
|
};
|
|
@@ -346524,7 +346524,7 @@ var require_util3 = __commonJS({
|
|
|
346524
346524
|
parsed.path = parsed.path.substring(0, index + 1);
|
|
346525
346525
|
}
|
|
346526
346526
|
}
|
|
346527
|
-
sourceURL =
|
|
346527
|
+
sourceURL = join3(urlGenerate(parsed), sourceURL);
|
|
346528
346528
|
}
|
|
346529
346529
|
return normalize2(sourceURL);
|
|
346530
346530
|
}
|
|
@@ -350216,14 +350216,14 @@ var require_path2 = __commonJS({
|
|
|
350216
350216
|
return normalize2(path15.slice(0, endIndex));
|
|
350217
350217
|
}
|
|
350218
350218
|
exports2.dirname = dirname4;
|
|
350219
|
-
function
|
|
350219
|
+
function join3(p12, ...others) {
|
|
350220
350220
|
if (others.length > 0) {
|
|
350221
350221
|
return normalize2((p12 ? p12 + exports2.NormalizedSep : "") + others.join(exports2.NormalizedSep));
|
|
350222
350222
|
} else {
|
|
350223
350223
|
return p12;
|
|
350224
350224
|
}
|
|
350225
350225
|
}
|
|
350226
|
-
exports2.join =
|
|
350226
|
+
exports2.join = join3;
|
|
350227
350227
|
function isAbsolute(p4) {
|
|
350228
350228
|
return p4.startsWith(exports2.NormalizedSep);
|
|
350229
350229
|
}
|
|
@@ -350258,7 +350258,7 @@ var require_path2 = __commonJS({
|
|
|
350258
350258
|
if (isAbsolute(p22)) {
|
|
350259
350259
|
return p22;
|
|
350260
350260
|
} else {
|
|
350261
|
-
return
|
|
350261
|
+
return join3(p12, p22);
|
|
350262
350262
|
}
|
|
350263
350263
|
}
|
|
350264
350264
|
exports2.resolve = resolve3;
|
|
@@ -367655,7 +367655,7 @@ var require_buffer_list = __commonJS({
|
|
|
367655
367655
|
}
|
|
367656
367656
|
}, {
|
|
367657
367657
|
key: "join",
|
|
367658
|
-
value: function
|
|
367658
|
+
value: function join3(s) {
|
|
367659
367659
|
if (this.length === 0)
|
|
367660
367660
|
return "";
|
|
367661
367661
|
var p4 = this.head;
|
|
@@ -405613,7 +405613,7 @@ var require_util7 = __commonJS({
|
|
|
405613
405613
|
var normalize2 = createSafeHandler((url2) => {
|
|
405614
405614
|
});
|
|
405615
405615
|
exports2.normalize = normalize2;
|
|
405616
|
-
function
|
|
405616
|
+
function join3(aRoot, aPath) {
|
|
405617
405617
|
const pathType = getURLType(aPath);
|
|
405618
405618
|
const rootType = getURLType(aRoot);
|
|
405619
405619
|
aRoot = ensureDirectory(aRoot);
|
|
@@ -405639,7 +405639,7 @@ var require_util7 = __commonJS({
|
|
|
405639
405639
|
const newPath = withBase(aPath, withBase(aRoot, base));
|
|
405640
405640
|
return computeRelativeURL(base, newPath);
|
|
405641
405641
|
}
|
|
405642
|
-
exports2.join =
|
|
405642
|
+
exports2.join = join3;
|
|
405643
405643
|
function relative(rootURL, targetURL) {
|
|
405644
405644
|
const result = relativeIfPossible(rootURL, targetURL);
|
|
405645
405645
|
return typeof result === "string" ? result : normalize2(targetURL);
|
|
@@ -405669,9 +405669,9 @@ var require_util7 = __commonJS({
|
|
|
405669
405669
|
}
|
|
405670
405670
|
let url2 = normalize2(sourceURL || "");
|
|
405671
405671
|
if (sourceRoot)
|
|
405672
|
-
url2 =
|
|
405672
|
+
url2 = join3(sourceRoot, url2);
|
|
405673
405673
|
if (sourceMapURL)
|
|
405674
|
-
url2 =
|
|
405674
|
+
url2 = join3(trimFilename(sourceMapURL), url2);
|
|
405675
405675
|
return url2;
|
|
405676
405676
|
}
|
|
405677
405677
|
exports2.computeSourceURL = computeSourceURL;
|
|
@@ -407437,7 +407437,7 @@ var require_source_map3 = __commonJS({
|
|
|
407437
407437
|
var require_native = __commonJS({
|
|
407438
407438
|
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/native.js"(exports2, module2) {
|
|
407439
407439
|
var { existsSync } = require("node:fs");
|
|
407440
|
-
var { join:
|
|
407440
|
+
var { join: join3 } = require("node:path");
|
|
407441
407441
|
var { platform, arch, report } = require("node:process");
|
|
407442
407442
|
var isMusl = () => !report.getReport().header.glibcVersionRuntime;
|
|
407443
407443
|
var bindingsByPlatformAndArch = {
|
|
@@ -407511,7 +407511,7 @@ If this is important to you, please consider supporting Rollup to make a native
|
|
|
407511
407511
|
}
|
|
407512
407512
|
};
|
|
407513
407513
|
var { parse: parse6, parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } = requireWithFriendlyError(
|
|
407514
|
-
existsSync(
|
|
407514
|
+
existsSync(join3(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
|
|
407515
407515
|
);
|
|
407516
407516
|
module2.exports.parse = parse6;
|
|
407517
407517
|
module2.exports.parseAsync = parseAsync;
|
|
@@ -447060,26 +447060,16 @@ ${options8.banner}
|
|
|
447060
447060
|
};
|
|
447061
447061
|
function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
447062
447062
|
const config = (0, import_typescript.readConfigFile)(options8.tsConfig, import_typescript.sys.readFile).config;
|
|
447063
|
-
const tsConfig = (0, import_typescript.parseJsonConfigFileContent)(
|
|
447064
|
-
|
|
447065
|
-
|
|
447066
|
-
|
|
447067
|
-
|
|
447068
|
-
|
|
447069
|
-
|
|
447070
|
-
|
|
447071
|
-
|
|
447072
|
-
|
|
447073
|
-
emitDeclarationOnly: true,
|
|
447074
|
-
declaration: true,
|
|
447075
|
-
declarationMap: true,
|
|
447076
|
-
declarationDir: (0, import_devkit2.joinPathFragments)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
447077
|
-
},
|
|
447078
|
-
include: ["**/*"]
|
|
447079
|
-
},
|
|
447080
|
-
import_typescript.sys,
|
|
447081
|
-
(0, import_node_path.dirname)(options8.tsConfig)
|
|
447082
|
-
);
|
|
447063
|
+
const tsConfig = (0, import_typescript.parseJsonConfigFileContent)(config, import_typescript.sys, (0, import_node_path.dirname)(options8.tsConfig), {
|
|
447064
|
+
outDir: outputPath,
|
|
447065
|
+
noEmit: false,
|
|
447066
|
+
esModuleInterop: true,
|
|
447067
|
+
noUnusedLocals: false,
|
|
447068
|
+
emitDeclarationOnly: true,
|
|
447069
|
+
declaration: true,
|
|
447070
|
+
declarationMap: true,
|
|
447071
|
+
declarationDir: (0, import_node_path.join)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
447072
|
+
});
|
|
447083
447073
|
tsConfig.options.pathsBasePath = workspaceRoot;
|
|
447084
447074
|
if ((config.compilerOptions?.incremental || tsConfig.options.incremental) && !tsConfig.options.tsBuildInfoFile) {
|
|
447085
447075
|
tsConfig.options.tsBuildInfoFile = (0, import_devkit2.joinPathFragments)(outputPath, "tsconfig.tsbuildinfo");
|
|
@@ -453645,6 +453635,7 @@ ${externalDependencies.map((dep) => {
|
|
|
453645
453635
|
(0, import_devkit3.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.js"),
|
|
453646
453636
|
(0, import_devkit3.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.jsx")
|
|
453647
453637
|
]);
|
|
453638
|
+
options8.verbose = options8.verbose || getLogLevel(config?.logLevel) >= LogLevel.DEBUG;
|
|
453648
453639
|
await Promise.allSettled(
|
|
453649
453640
|
files.map(
|
|
453650
453641
|
async (file) => (0, import_fs_extra.writeFile)(
|