@storm-software/workspace-tools 1.10.3 → 1.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/index.js +29 -27
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +73 -64
- package/src/executors/tsup/get-config.js +71 -61
- package/src/executors/tsup/schema.d.ts +2 -0
- package/src/executors/tsup/schema.json +1 -2
|
@@ -5399,7 +5399,7 @@ var require_common = __commonJS({
|
|
|
5399
5399
|
var fs = require("fs");
|
|
5400
5400
|
var path2 = require("path");
|
|
5401
5401
|
var minimatch2 = require_minimatch();
|
|
5402
|
-
var
|
|
5402
|
+
var isAbsolute2 = require_path_is_absolute();
|
|
5403
5403
|
var Minimatch2 = minimatch2.Minimatch;
|
|
5404
5404
|
function alphasort(a, b) {
|
|
5405
5405
|
return a.localeCompare(b, "en");
|
|
@@ -5469,7 +5469,7 @@ var require_common = __commonJS({
|
|
|
5469
5469
|
self2.root = path2.resolve(self2.root);
|
|
5470
5470
|
if (process.platform === "win32")
|
|
5471
5471
|
self2.root = self2.root.replace(/\\/g, "/");
|
|
5472
|
-
self2.cwdAbs =
|
|
5472
|
+
self2.cwdAbs = isAbsolute2(self2.cwd) ? self2.cwd : makeAbs(self2, self2.cwd);
|
|
5473
5473
|
if (process.platform === "win32")
|
|
5474
5474
|
self2.cwdAbs = self2.cwdAbs.replace(/\\/g, "/");
|
|
5475
5475
|
self2.nomount = !!options.nomount;
|
|
@@ -5549,7 +5549,7 @@ var require_common = __commonJS({
|
|
|
5549
5549
|
var abs = f;
|
|
5550
5550
|
if (f.charAt(0) === "/") {
|
|
5551
5551
|
abs = path2.join(self2.root, f);
|
|
5552
|
-
} else if (
|
|
5552
|
+
} else if (isAbsolute2(f) || f === "") {
|
|
5553
5553
|
abs = f;
|
|
5554
5554
|
} else if (self2.changedCwd) {
|
|
5555
5555
|
abs = path2.resolve(self2.cwd, f);
|
|
@@ -5589,7 +5589,7 @@ var require_sync = __commonJS({
|
|
|
5589
5589
|
var util = require("util");
|
|
5590
5590
|
var path2 = require("path");
|
|
5591
5591
|
var assert = require("assert");
|
|
5592
|
-
var
|
|
5592
|
+
var isAbsolute2 = require_path_is_absolute();
|
|
5593
5593
|
var common = require_common();
|
|
5594
5594
|
var setopts = common.setopts;
|
|
5595
5595
|
var ownProp = common.ownProp;
|
|
@@ -5661,10 +5661,10 @@ var require_sync = __commonJS({
|
|
|
5661
5661
|
var read;
|
|
5662
5662
|
if (prefix === null)
|
|
5663
5663
|
read = ".";
|
|
5664
|
-
else if (
|
|
5664
|
+
else if (isAbsolute2(prefix) || isAbsolute2(pattern.map(function(p) {
|
|
5665
5665
|
return typeof p === "string" ? p : "[*]";
|
|
5666
5666
|
}).join("/"))) {
|
|
5667
|
-
if (!prefix || !
|
|
5667
|
+
if (!prefix || !isAbsolute2(prefix))
|
|
5668
5668
|
prefix = "/" + prefix;
|
|
5669
5669
|
read = prefix;
|
|
5670
5670
|
} else
|
|
@@ -5861,7 +5861,7 @@ var require_sync = __commonJS({
|
|
|
5861
5861
|
this.matches[index] = /* @__PURE__ */ Object.create(null);
|
|
5862
5862
|
if (!exists)
|
|
5863
5863
|
return;
|
|
5864
|
-
if (prefix &&
|
|
5864
|
+
if (prefix && isAbsolute2(prefix) && !this.nomount) {
|
|
5865
5865
|
var trail = /[\/\\]$/.test(prefix);
|
|
5866
5866
|
if (prefix.charAt(0) === "/") {
|
|
5867
5867
|
prefix = path2.join(this.root, prefix);
|
|
@@ -6063,7 +6063,7 @@ var require_glob = __commonJS({
|
|
|
6063
6063
|
var EE = require("events").EventEmitter;
|
|
6064
6064
|
var path2 = require("path");
|
|
6065
6065
|
var assert = require("assert");
|
|
6066
|
-
var
|
|
6066
|
+
var isAbsolute2 = require_path_is_absolute();
|
|
6067
6067
|
var globSync2 = require_sync();
|
|
6068
6068
|
var common = require_common();
|
|
6069
6069
|
var setopts = common.setopts;
|
|
@@ -6285,10 +6285,10 @@ var require_glob = __commonJS({
|
|
|
6285
6285
|
var read;
|
|
6286
6286
|
if (prefix === null)
|
|
6287
6287
|
read = ".";
|
|
6288
|
-
else if (
|
|
6288
|
+
else if (isAbsolute2(prefix) || isAbsolute2(pattern.map(function(p) {
|
|
6289
6289
|
return typeof p === "string" ? p : "[*]";
|
|
6290
6290
|
}).join("/"))) {
|
|
6291
|
-
if (!prefix || !
|
|
6291
|
+
if (!prefix || !isAbsolute2(prefix))
|
|
6292
6292
|
prefix = "/" + prefix;
|
|
6293
6293
|
read = prefix;
|
|
6294
6294
|
} else
|
|
@@ -6373,7 +6373,7 @@ var require_glob = __commonJS({
|
|
|
6373
6373
|
this._emitQueue.push([index, e]);
|
|
6374
6374
|
return;
|
|
6375
6375
|
}
|
|
6376
|
-
var abs =
|
|
6376
|
+
var abs = isAbsolute2(e) ? e : this._makeAbs(e);
|
|
6377
6377
|
if (this.mark)
|
|
6378
6378
|
e = this._mark(e);
|
|
6379
6379
|
if (this.absolute)
|
|
@@ -6528,7 +6528,7 @@ var require_glob = __commonJS({
|
|
|
6528
6528
|
this.matches[index] = /* @__PURE__ */ Object.create(null);
|
|
6529
6529
|
if (!exists)
|
|
6530
6530
|
return cb();
|
|
6531
|
-
if (prefix &&
|
|
6531
|
+
if (prefix && isAbsolute2(prefix) && !this.nomount) {
|
|
6532
6532
|
var trail = /[\/\\]$/.test(prefix);
|
|
6533
6533
|
if (prefix.charAt(0) === "/") {
|
|
6534
6534
|
prefix = path2.join(this.root, prefix);
|
|
@@ -18383,9 +18383,9 @@ var require_brace_expansion2 = __commonJS({
|
|
|
18383
18383
|
}
|
|
18384
18384
|
});
|
|
18385
18385
|
|
|
18386
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
18386
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=m5d7qaigvbst7blv2cqvhcnqka_@microsoft+api-extractor@7.38.3_@swc+core@1._bdwxrrieyl7nvwx4mb2daqadl4/node_modules/tsup/dist/chunk-EPAEWGCP.js
|
|
18387
18387
|
var require_chunk_EPAEWGCP = __commonJS({
|
|
18388
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
18388
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=m5d7qaigvbst7blv2cqvhcnqka_@microsoft+api-extractor@7.38.3_@swc+core@1._bdwxrrieyl7nvwx4mb2daqadl4/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
|
|
18389
18389
|
"use strict";
|
|
18390
18390
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18391
18391
|
var version = "8.0.0";
|
|
@@ -24319,9 +24319,9 @@ var require_resolve_from = __commonJS({
|
|
|
24319
24319
|
}
|
|
24320
24320
|
});
|
|
24321
24321
|
|
|
24322
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
24322
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=m5d7qaigvbst7blv2cqvhcnqka_@microsoft+api-extractor@7.38.3_@swc+core@1._bdwxrrieyl7nvwx4mb2daqadl4/node_modules/tsup/dist/chunk-GQ77QZBO.js
|
|
24323
24323
|
var require_chunk_GQ77QZBO = __commonJS({
|
|
24324
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
24324
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=m5d7qaigvbst7blv2cqvhcnqka_@microsoft+api-extractor@7.38.3_@swc+core@1._bdwxrrieyl7nvwx4mb2daqadl4/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
|
|
24325
24325
|
"use strict";
|
|
24326
24326
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24327
24327
|
function _interopRequireDefault(obj) {
|
|
@@ -24600,9 +24600,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
24600
24600
|
}
|
|
24601
24601
|
});
|
|
24602
24602
|
|
|
24603
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
24603
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=m5d7qaigvbst7blv2cqvhcnqka_@microsoft+api-extractor@7.38.3_@swc+core@1._bdwxrrieyl7nvwx4mb2daqadl4/node_modules/tsup/dist/chunk-UIX4URMV.js
|
|
24604
24604
|
var require_chunk_UIX4URMV = __commonJS({
|
|
24605
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
24605
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=m5d7qaigvbst7blv2cqvhcnqka_@microsoft+api-extractor@7.38.3_@swc+core@1._bdwxrrieyl7nvwx4mb2daqadl4/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
|
|
24606
24606
|
"use strict";
|
|
24607
24607
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24608
24608
|
function _interopRequireWildcard(obj) {
|
|
@@ -25095,7 +25095,7 @@ var require_dist = __commonJS({
|
|
|
25095
25095
|
loadTsConfig: () => loadTsConfig2
|
|
25096
25096
|
});
|
|
25097
25097
|
module2.exports = __toCommonJS2(src_exports);
|
|
25098
|
-
var
|
|
25098
|
+
var import_path3 = __toESM2(require("path"), 1);
|
|
25099
25099
|
var import_fs2 = __toESM2(require("fs"), 1);
|
|
25100
25100
|
var singleComment = Symbol("singleComment");
|
|
25101
25101
|
var multiComment = Symbol("multiComment");
|
|
@@ -25191,10 +25191,10 @@ var require_dist = __commonJS({
|
|
|
25191
25191
|
}
|
|
25192
25192
|
}
|
|
25193
25193
|
var req = false ? createRequire(import_meta.url) : require;
|
|
25194
|
-
var findUp = (name, startDir, stopDir =
|
|
25194
|
+
var findUp = (name, startDir, stopDir = import_path3.default.parse(startDir).root) => {
|
|
25195
25195
|
let dir = startDir;
|
|
25196
25196
|
while (dir !== stopDir) {
|
|
25197
|
-
const file =
|
|
25197
|
+
const file = import_path3.default.join(dir, name);
|
|
25198
25198
|
if (import_fs2.default.existsSync(file))
|
|
25199
25199
|
return file;
|
|
25200
25200
|
if (!file.endsWith(".json")) {
|
|
@@ -25202,17 +25202,17 @@ var require_dist = __commonJS({
|
|
|
25202
25202
|
if (import_fs2.default.existsSync(fileWithExt))
|
|
25203
25203
|
return fileWithExt;
|
|
25204
25204
|
}
|
|
25205
|
-
dir =
|
|
25205
|
+
dir = import_path3.default.dirname(dir);
|
|
25206
25206
|
}
|
|
25207
25207
|
return null;
|
|
25208
25208
|
};
|
|
25209
25209
|
var resolveTsConfigFromFile = (cwd, filename) => {
|
|
25210
|
-
if (
|
|
25210
|
+
if (import_path3.default.isAbsolute(filename))
|
|
25211
25211
|
return import_fs2.default.existsSync(filename) ? filename : null;
|
|
25212
25212
|
return findUp(filename, cwd);
|
|
25213
25213
|
};
|
|
25214
25214
|
var resolveTsConfigFromExtends = (cwd, name) => {
|
|
25215
|
-
if (
|
|
25215
|
+
if (import_path3.default.isAbsolute(name))
|
|
25216
25216
|
return import_fs2.default.existsSync(name) ? name : null;
|
|
25217
25217
|
if (name.startsWith("."))
|
|
25218
25218
|
return findUp(name, cwd);
|
|
@@ -25221,14 +25221,14 @@ var require_dist = __commonJS({
|
|
|
25221
25221
|
};
|
|
25222
25222
|
var loadTsConfigInternal = (dir = process.cwd(), name = "tsconfig.json", isExtends = false) => {
|
|
25223
25223
|
var _a, _b;
|
|
25224
|
-
dir =
|
|
25224
|
+
dir = import_path3.default.resolve(dir);
|
|
25225
25225
|
const id = isExtends ? resolveTsConfigFromExtends(dir, name) : resolveTsConfigFromFile(dir, name);
|
|
25226
25226
|
if (!id)
|
|
25227
25227
|
return null;
|
|
25228
25228
|
const data = jsoncParse(import_fs2.default.readFileSync(id, "utf-8"));
|
|
25229
|
-
const configDir =
|
|
25229
|
+
const configDir = import_path3.default.dirname(id);
|
|
25230
25230
|
if ((_a = data.compilerOptions) == null ? void 0 : _a.baseUrl) {
|
|
25231
|
-
data.compilerOptions.baseUrl =
|
|
25231
|
+
data.compilerOptions.baseUrl = import_path3.default.join(
|
|
25232
25232
|
configDir,
|
|
25233
25233
|
data.compilerOptions.baseUrl
|
|
25234
25234
|
);
|
|
@@ -25306,7 +25306,7 @@ var require_dist2 = __commonJS({
|
|
|
25306
25306
|
});
|
|
25307
25307
|
module2.exports = __toCommonJS2(src_exports);
|
|
25308
25308
|
var import_fs2 = __toESM2(require("fs"), 1);
|
|
25309
|
-
var
|
|
25309
|
+
var import_path22 = __toESM2(require("path"), 1);
|
|
25310
25310
|
var import_url3 = require("url");
|
|
25311
25311
|
var import_esbuild = require("esbuild");
|
|
25312
25312
|
var import_load_tsconfig = require_dist();
|
|
@@ -25381,7 +25381,7 @@ var require_dist2 = __commonJS({
|
|
|
25381
25381
|
name: "bundle-require:external",
|
|
25382
25382
|
setup(ctx) {
|
|
25383
25383
|
ctx.onResolve({ filter: /.*/ }, async (args) => {
|
|
25384
|
-
if (args.path[0] === "." ||
|
|
25384
|
+
if (args.path[0] === "." || import_path22.default.isAbsolute(args.path)) {
|
|
25385
25385
|
return;
|
|
25386
25386
|
}
|
|
25387
25387
|
if (match2(args.path, external)) {
|
|
@@ -25414,7 +25414,7 @@ var require_dist2 = __commonJS({
|
|
|
25414
25414
|
const injectLines = [
|
|
25415
25415
|
`const ${FILENAME_VAR_NAME} = ${JSON.stringify(args.path)};`,
|
|
25416
25416
|
`const ${DIRNAME_VAR_NAME} = ${JSON.stringify(
|
|
25417
|
-
|
|
25417
|
+
import_path22.default.dirname(args.path)
|
|
25418
25418
|
)};`,
|
|
25419
25419
|
`const ${IMPORT_META_URL_VAR_NAME} = ${JSON.stringify(
|
|
25420
25420
|
(0, import_url3.pathToFileURL)(args.path).href
|
|
@@ -25422,7 +25422,7 @@ var require_dist2 = __commonJS({
|
|
|
25422
25422
|
];
|
|
25423
25423
|
return {
|
|
25424
25424
|
contents: injectLines.join("") + contents,
|
|
25425
|
-
loader: inferLoader(
|
|
25425
|
+
loader: inferLoader(import_path22.default.extname(args.path))
|
|
25426
25426
|
};
|
|
25427
25427
|
});
|
|
25428
25428
|
}
|
|
@@ -25536,9 +25536,9 @@ var require_dist2 = __commonJS({
|
|
|
25536
25536
|
}
|
|
25537
25537
|
});
|
|
25538
25538
|
|
|
25539
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
25539
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=m5d7qaigvbst7blv2cqvhcnqka_@microsoft+api-extractor@7.38.3_@swc+core@1._bdwxrrieyl7nvwx4mb2daqadl4/node_modules/tsup/dist/chunk-7G76EW2R.js
|
|
25540
25540
|
var require_chunk_7G76EW2R = __commonJS({
|
|
25541
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
25541
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=m5d7qaigvbst7blv2cqvhcnqka_@microsoft+api-extractor@7.38.3_@swc+core@1._bdwxrrieyl7nvwx4mb2daqadl4/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
|
|
25542
25542
|
"use strict";
|
|
25543
25543
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25544
25544
|
function _interopRequireDefault(obj) {
|
|
@@ -53111,7 +53111,7 @@ ${indicator}`;
|
|
|
53111
53111
|
};
|
|
53112
53112
|
var ABSOLUTE_PATH_REGEX = /^(?:\/|(?:[A-Za-z]:)?[/\\|])/;
|
|
53113
53113
|
var RELATIVE_PATH_REGEX = /^\.?\.(\/|$)/;
|
|
53114
|
-
function
|
|
53114
|
+
function isAbsolute2(path2) {
|
|
53115
53115
|
return ABSOLUTE_PATH_REGEX.test(path2);
|
|
53116
53116
|
}
|
|
53117
53117
|
function isRelative(path2) {
|
|
@@ -53156,12 +53156,12 @@ ${indicator}`;
|
|
|
53156
53156
|
return base.slice(0, Math.max(0, base.length - node_path.extname(id).length));
|
|
53157
53157
|
}
|
|
53158
53158
|
function relativeId(id) {
|
|
53159
|
-
if (!
|
|
53159
|
+
if (!isAbsolute2(id))
|
|
53160
53160
|
return id;
|
|
53161
53161
|
return relative(node_path.resolve(), id);
|
|
53162
53162
|
}
|
|
53163
53163
|
function isPathFragment(name) {
|
|
53164
|
-
return name[0] === "/" || name[0] === "." && (name[1] === "/" || name[1] === ".") ||
|
|
53164
|
+
return name[0] === "/" || name[0] === "." && (name[1] === "/" || name[1] === ".") || isAbsolute2(name);
|
|
53165
53165
|
}
|
|
53166
53166
|
var UPPER_DIR_REGEX = /^(\.\.\/)*\.\.$/;
|
|
53167
53167
|
function getImportPath(importerId, targetPath, stripJsExtension, ensureFileName) {
|
|
@@ -55268,7 +55268,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
55268
55268
|
exports.getAliasName = getAliasName;
|
|
55269
55269
|
exports.getImportPath = getImportPath;
|
|
55270
55270
|
exports.getRollupUrl = getRollupUrl;
|
|
55271
|
-
exports.isAbsolute =
|
|
55271
|
+
exports.isAbsolute = isAbsolute2;
|
|
55272
55272
|
exports.isPathFragment = isPathFragment;
|
|
55273
55273
|
exports.isRelative = isRelative;
|
|
55274
55274
|
exports.isValidUrl = isValidUrl;
|
|
@@ -77085,7 +77085,7 @@ var require_util4 = __commonJS({
|
|
|
77085
77085
|
}
|
|
77086
77086
|
path2 = url.path;
|
|
77087
77087
|
}
|
|
77088
|
-
var
|
|
77088
|
+
var isAbsolute2 = exports.isAbsolute(path2);
|
|
77089
77089
|
var parts = path2.split(/\/+/);
|
|
77090
77090
|
for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
|
|
77091
77091
|
part = parts[i];
|
|
@@ -77105,7 +77105,7 @@ var require_util4 = __commonJS({
|
|
|
77105
77105
|
}
|
|
77106
77106
|
path2 = parts.join("/");
|
|
77107
77107
|
if (path2 === "") {
|
|
77108
|
-
path2 =
|
|
77108
|
+
path2 = isAbsolute2 ? "/" : ".";
|
|
77109
77109
|
}
|
|
77110
77110
|
if (url) {
|
|
77111
77111
|
url.path = path2;
|
|
@@ -267221,9 +267221,9 @@ var require_chokidar = __commonJS({
|
|
|
267221
267221
|
}
|
|
267222
267222
|
});
|
|
267223
267223
|
|
|
267224
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
267224
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=m5d7qaigvbst7blv2cqvhcnqka_@microsoft+api-extractor@7.38.3_@swc+core@1._bdwxrrieyl7nvwx4mb2daqadl4/node_modules/tsup/dist/index.js
|
|
267225
267225
|
var require_dist5 = __commonJS({
|
|
267226
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
267226
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=m5d7qaigvbst7blv2cqvhcnqka_@microsoft+api-extractor@7.38.3_@swc+core@1._bdwxrrieyl7nvwx4mb2daqadl4/node_modules/tsup/dist/index.js"(exports) {
|
|
267227
267227
|
"use strict";
|
|
267228
267228
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267229
267229
|
function _interopRequireDefault(obj) {
|
|
@@ -269657,7 +269657,7 @@ var require_dist5 = __commonJS({
|
|
|
269657
269657
|
return "";
|
|
269658
269658
|
}
|
|
269659
269659
|
var logger2 = _chunk7G76EW2Rjs.createLogger.call(void 0);
|
|
269660
|
-
function rollupDtsFile(options, inputFilePath,
|
|
269660
|
+
function rollupDtsFile(options, inputFilePath, dtsExtension, tsconfigFilePath) {
|
|
269661
269661
|
let pkgPath = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
|
|
269662
269662
|
if (pkgPath.endsWith("/")) {
|
|
269663
269663
|
pkgPath = pkgPath.slice(0, -1);
|
|
@@ -269696,7 +269696,11 @@ var require_dist5 = __commonJS({
|
|
|
269696
269696
|
},
|
|
269697
269697
|
dtsRollup: {
|
|
269698
269698
|
enabled: true,
|
|
269699
|
-
untrimmedFilePath:
|
|
269699
|
+
untrimmedFilePath: _path2.default.join(
|
|
269700
|
+
"<projectFolder>",
|
|
269701
|
+
options.outDir,
|
|
269702
|
+
`index${dtsExtension}`
|
|
269703
|
+
),
|
|
269700
269704
|
betaTrimmedFilePath: _path2.default.join(
|
|
269701
269705
|
"<projectFolder>",
|
|
269702
269706
|
options.outDir,
|
|
@@ -269723,15 +269727,10 @@ var require_dist5 = __commonJS({
|
|
|
269723
269727
|
overrideTsconfig: {
|
|
269724
269728
|
"$schema": "http://json.schemastore.org/tsconfig",
|
|
269725
269729
|
compilerOptions: {
|
|
269726
|
-
|
|
269727
|
-
|
|
269728
|
-
sourceMap: true,
|
|
269729
|
-
declarationMap: true,
|
|
269730
|
-
allowJs: true,
|
|
269731
|
-
resolveJsonModule: true,
|
|
269732
|
-
esModuleInterop: true
|
|
269730
|
+
...options?.experimentalDts?.compilerOptions ?? {},
|
|
269731
|
+
noEmit: false
|
|
269733
269732
|
},
|
|
269734
|
-
include: [
|
|
269733
|
+
include: [`${pkgPath}/**/*`]
|
|
269735
269734
|
}
|
|
269736
269735
|
},
|
|
269737
269736
|
projectFolder: "./"
|
|
@@ -269743,6 +269742,11 @@ var require_dist5 = __commonJS({
|
|
|
269743
269742
|
};
|
|
269744
269743
|
logger2.info("dts", `\u26A1 Current Directory: ${__dirname}`);
|
|
269745
269744
|
logger2.info("dts", "\u26A1 Running API Extractor with the following config: \n", prepareOptions);
|
|
269745
|
+
logger2.info(
|
|
269746
|
+
"dts",
|
|
269747
|
+
"\u26A1 Using the following compiler options: \n",
|
|
269748
|
+
JSON.stringify(prepareOptions.configObject?.compiler)
|
|
269749
|
+
);
|
|
269746
269750
|
const imported = _chunkGQ77QZBOjs.getApiExtractor.call(void 0);
|
|
269747
269751
|
if (!imported) {
|
|
269748
269752
|
throw new Error(
|
|
@@ -269776,7 +269780,6 @@ var require_dist5 = __commonJS({
|
|
|
269776
269780
|
"_tsup-dts-aggregation" + dtsExtension
|
|
269777
269781
|
);
|
|
269778
269782
|
dtsInputFilePath = dtsInputFilePath.replace(/\.d\.mts$/, ".dmts.d.ts").replace(/\.d\.cts$/, ".dcts.d.ts");
|
|
269779
|
-
let dtsOutputFilePath = _path2.default.join(outDir, "index" + dtsExtension);
|
|
269780
269783
|
_chunkGQ77QZBOjs.writeFileSync.call(
|
|
269781
269784
|
void 0,
|
|
269782
269785
|
dtsInputFilePath,
|
|
@@ -269788,11 +269791,7 @@ var require_dist5 = __commonJS({
|
|
|
269788
269791
|
"<projectFolder>",
|
|
269789
269792
|
dtsInputFilePath.replace(options.workspaceRoot, "")
|
|
269790
269793
|
),
|
|
269791
|
-
|
|
269792
|
-
"<projectFolder>",
|
|
269793
|
-
options.outDir,
|
|
269794
|
-
`index${dtsExtension}`
|
|
269795
|
-
),
|
|
269794
|
+
dtsExtension,
|
|
269796
269795
|
options.tsconfig || "tsconfig.json"
|
|
269797
269796
|
);
|
|
269798
269797
|
for (let [out, sourceFileName] of Object.entries(
|
|
@@ -269800,10 +269799,13 @@ var require_dist5 = __commonJS({
|
|
|
269800
269799
|
)) {
|
|
269801
269800
|
sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName);
|
|
269802
269801
|
const outFileName = _path2.default.join(outDir, out + dtsExtension);
|
|
269802
|
+
const currentExports = exports2.filter(
|
|
269803
|
+
(declaration) => declaration.sourceFileName === sourceFileName
|
|
269804
|
+
);
|
|
269803
269805
|
_chunkGQ77QZBOjs.writeFileSync.call(
|
|
269804
269806
|
void 0,
|
|
269805
269807
|
outFileName,
|
|
269806
|
-
formatDistributionExports(
|
|
269808
|
+
formatDistributionExports(currentExports, outFileName, outDir)
|
|
269807
269809
|
);
|
|
269808
269810
|
}
|
|
269809
269811
|
}
|
|
@@ -276332,6 +276334,7 @@ var glob = Object.assign(glob_, {
|
|
|
276332
276334
|
glob.glob = glob;
|
|
276333
276335
|
|
|
276334
276336
|
// packages/workspace-tools/src/executors/tsup/get-config.ts
|
|
276337
|
+
var import_path2 = require("path");
|
|
276335
276338
|
var import_tsup = __toESM(require_dist5());
|
|
276336
276339
|
|
|
276337
276340
|
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
@@ -276464,9 +276467,16 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
276464
276467
|
env,
|
|
276465
276468
|
verbose
|
|
276466
276469
|
}) {
|
|
276467
|
-
const
|
|
276468
|
-
|
|
276469
|
-
|
|
276470
|
+
const entryPath = main ? main : sourceRoot;
|
|
276471
|
+
const entry = globSync(
|
|
276472
|
+
[
|
|
276473
|
+
(0, import_path2.isAbsolute)(entryPath) ? entryPath : (0, import_devkit.joinPathFragments)(workspaceRoot, entryPath),
|
|
276474
|
+
...additionalEntryPoints ?? []
|
|
276475
|
+
],
|
|
276476
|
+
{
|
|
276477
|
+
withFileTypes: true
|
|
276478
|
+
}
|
|
276479
|
+
).reduce((ret, filePath) => {
|
|
276470
276480
|
ret[removeExtension(filePath.name)] = (0, import_devkit.joinPathFragments)(
|
|
276471
276481
|
filePath.path,
|
|
276472
276482
|
filePath.name
|
|
@@ -3,6 +3,7 @@ import { Options } from "tsup";
|
|
|
3
3
|
|
|
4
4
|
export type TsupExecutorSchema = Omit<
|
|
5
5
|
EsBuildExecutorOptions,
|
|
6
|
+
| "main"
|
|
6
7
|
| "outputFileName"
|
|
7
8
|
| "metafile"
|
|
8
9
|
| "generatePackageJson"
|
|
@@ -15,6 +16,7 @@ export type TsupExecutorSchema = Omit<
|
|
|
15
16
|
| "esbuildOptions"
|
|
16
17
|
| "esbuildConfig"
|
|
17
18
|
> & {
|
|
19
|
+
main?: string;
|
|
18
20
|
options: Options;
|
|
19
21
|
clean: boolean;
|
|
20
22
|
debug: boolean;
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
"properties": {
|
|
9
9
|
"main": {
|
|
10
10
|
"type": "string",
|
|
11
|
-
"description": "The path to the entry file, relative to project."
|
|
12
|
-
"default": "src/index.ts"
|
|
11
|
+
"description": "The path to the entry file, relative to project."
|
|
13
12
|
},
|
|
14
13
|
"outputPath": {
|
|
15
14
|
"type": "string",
|