@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
package/package.json
CHANGED
|
@@ -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);
|
|
@@ -20351,7 +20351,7 @@ var require_util2 = __commonJS({
|
|
|
20351
20351
|
}
|
|
20352
20352
|
path2 = url.path;
|
|
20353
20353
|
}
|
|
20354
|
-
var
|
|
20354
|
+
var isAbsolute2 = exports.isAbsolute(path2);
|
|
20355
20355
|
var parts = path2.split(/\/+/);
|
|
20356
20356
|
for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
|
|
20357
20357
|
part = parts[i];
|
|
@@ -20371,7 +20371,7 @@ var require_util2 = __commonJS({
|
|
|
20371
20371
|
}
|
|
20372
20372
|
path2 = parts.join("/");
|
|
20373
20373
|
if (path2 === "") {
|
|
20374
|
-
path2 =
|
|
20374
|
+
path2 = isAbsolute2 ? "/" : ".";
|
|
20375
20375
|
}
|
|
20376
20376
|
if (url) {
|
|
20377
20377
|
url.path = path2;
|
|
@@ -408390,9 +408390,9 @@ var require_brace_expansion2 = __commonJS({
|
|
|
408390
408390
|
}
|
|
408391
408391
|
});
|
|
408392
408392
|
|
|
408393
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
408393
|
+
// 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
|
|
408394
408394
|
var require_chunk_EPAEWGCP = __commonJS({
|
|
408395
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
408395
|
+
"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) {
|
|
408396
408396
|
"use strict";
|
|
408397
408397
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
408398
408398
|
var version = "8.0.0";
|
|
@@ -410039,9 +410039,9 @@ var require_resolve_from = __commonJS({
|
|
|
410039
410039
|
}
|
|
410040
410040
|
});
|
|
410041
410041
|
|
|
410042
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
410042
|
+
// 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
|
|
410043
410043
|
var require_chunk_GQ77QZBO = __commonJS({
|
|
410044
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
410044
|
+
"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) {
|
|
410045
410045
|
"use strict";
|
|
410046
410046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
410047
410047
|
function _interopRequireDefault(obj) {
|
|
@@ -410320,9 +410320,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
410320
410320
|
}
|
|
410321
410321
|
});
|
|
410322
410322
|
|
|
410323
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
410323
|
+
// 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
|
|
410324
410324
|
var require_chunk_UIX4URMV = __commonJS({
|
|
410325
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
410325
|
+
"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) {
|
|
410326
410326
|
"use strict";
|
|
410327
410327
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
410328
410328
|
function _interopRequireWildcard(obj) {
|
|
@@ -410815,7 +410815,7 @@ var require_dist = __commonJS({
|
|
|
410815
410815
|
loadTsConfig: () => loadTsConfig2
|
|
410816
410816
|
});
|
|
410817
410817
|
module2.exports = __toCommonJS2(src_exports);
|
|
410818
|
-
var
|
|
410818
|
+
var import_path4 = __toESM2(require("path"), 1);
|
|
410819
410819
|
var import_fs3 = __toESM2(require("fs"), 1);
|
|
410820
410820
|
var singleComment = Symbol("singleComment");
|
|
410821
410821
|
var multiComment = Symbol("multiComment");
|
|
@@ -410911,10 +410911,10 @@ var require_dist = __commonJS({
|
|
|
410911
410911
|
}
|
|
410912
410912
|
}
|
|
410913
410913
|
var req = false ? createRequire(import_meta.url) : require;
|
|
410914
|
-
var findUp = (name, startDir, stopDir =
|
|
410914
|
+
var findUp = (name, startDir, stopDir = import_path4.default.parse(startDir).root) => {
|
|
410915
410915
|
let dir = startDir;
|
|
410916
410916
|
while (dir !== stopDir) {
|
|
410917
|
-
const file =
|
|
410917
|
+
const file = import_path4.default.join(dir, name);
|
|
410918
410918
|
if (import_fs3.default.existsSync(file))
|
|
410919
410919
|
return file;
|
|
410920
410920
|
if (!file.endsWith(".json")) {
|
|
@@ -410922,17 +410922,17 @@ var require_dist = __commonJS({
|
|
|
410922
410922
|
if (import_fs3.default.existsSync(fileWithExt))
|
|
410923
410923
|
return fileWithExt;
|
|
410924
410924
|
}
|
|
410925
|
-
dir =
|
|
410925
|
+
dir = import_path4.default.dirname(dir);
|
|
410926
410926
|
}
|
|
410927
410927
|
return null;
|
|
410928
410928
|
};
|
|
410929
410929
|
var resolveTsConfigFromFile = (cwd, filename) => {
|
|
410930
|
-
if (
|
|
410930
|
+
if (import_path4.default.isAbsolute(filename))
|
|
410931
410931
|
return import_fs3.default.existsSync(filename) ? filename : null;
|
|
410932
410932
|
return findUp(filename, cwd);
|
|
410933
410933
|
};
|
|
410934
410934
|
var resolveTsConfigFromExtends = (cwd, name) => {
|
|
410935
|
-
if (
|
|
410935
|
+
if (import_path4.default.isAbsolute(name))
|
|
410936
410936
|
return import_fs3.default.existsSync(name) ? name : null;
|
|
410937
410937
|
if (name.startsWith("."))
|
|
410938
410938
|
return findUp(name, cwd);
|
|
@@ -410941,14 +410941,14 @@ var require_dist = __commonJS({
|
|
|
410941
410941
|
};
|
|
410942
410942
|
var loadTsConfigInternal = (dir = process.cwd(), name = "tsconfig.json", isExtends = false) => {
|
|
410943
410943
|
var _a, _b;
|
|
410944
|
-
dir =
|
|
410944
|
+
dir = import_path4.default.resolve(dir);
|
|
410945
410945
|
const id = isExtends ? resolveTsConfigFromExtends(dir, name) : resolveTsConfigFromFile(dir, name);
|
|
410946
410946
|
if (!id)
|
|
410947
410947
|
return null;
|
|
410948
410948
|
const data = jsoncParse(import_fs3.default.readFileSync(id, "utf-8"));
|
|
410949
|
-
const configDir =
|
|
410949
|
+
const configDir = import_path4.default.dirname(id);
|
|
410950
410950
|
if ((_a = data.compilerOptions) == null ? void 0 : _a.baseUrl) {
|
|
410951
|
-
data.compilerOptions.baseUrl =
|
|
410951
|
+
data.compilerOptions.baseUrl = import_path4.default.join(
|
|
410952
410952
|
configDir,
|
|
410953
410953
|
data.compilerOptions.baseUrl
|
|
410954
410954
|
);
|
|
@@ -411031,11 +411031,11 @@ var require_dist2 = __commonJS({
|
|
|
411031
411031
|
var import_esbuild = require("esbuild");
|
|
411032
411032
|
var import_load_tsconfig = require_dist();
|
|
411033
411033
|
var import_fs3 = __toESM2(require("fs"), 1);
|
|
411034
|
-
var
|
|
411034
|
+
var import_path4 = __toESM2(require("path"), 1);
|
|
411035
411035
|
var getPkgType = () => {
|
|
411036
411036
|
try {
|
|
411037
411037
|
const pkg = JSON.parse(
|
|
411038
|
-
import_fs3.default.readFileSync(
|
|
411038
|
+
import_fs3.default.readFileSync(import_path4.default.resolve("package.json"), "utf-8")
|
|
411039
411039
|
);
|
|
411040
411040
|
return pkg.type;
|
|
411041
411041
|
} catch (error) {
|
|
@@ -411044,7 +411044,7 @@ var require_dist2 = __commonJS({
|
|
|
411044
411044
|
function guessFormat(inputFile) {
|
|
411045
411045
|
if (!usingDynamicImport)
|
|
411046
411046
|
return "cjs";
|
|
411047
|
-
const ext2 =
|
|
411047
|
+
const ext2 = import_path4.default.extname(inputFile);
|
|
411048
411048
|
const type = getPkgType();
|
|
411049
411049
|
if (ext2 === ".js") {
|
|
411050
411050
|
return type === "module" ? "esm" : "cjs";
|
|
@@ -411256,9 +411256,9 @@ var require_dist2 = __commonJS({
|
|
|
411256
411256
|
}
|
|
411257
411257
|
});
|
|
411258
411258
|
|
|
411259
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
411259
|
+
// 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
|
|
411260
411260
|
var require_chunk_7G76EW2R = __commonJS({
|
|
411261
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
411261
|
+
"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) {
|
|
411262
411262
|
"use strict";
|
|
411263
411263
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
411264
411264
|
function _interopRequireDefault(obj) {
|
|
@@ -438831,7 +438831,7 @@ ${indicator}`;
|
|
|
438831
438831
|
};
|
|
438832
438832
|
var ABSOLUTE_PATH_REGEX = /^(?:\/|(?:[A-Za-z]:)?[/\\|])/;
|
|
438833
438833
|
var RELATIVE_PATH_REGEX = /^\.?\.(\/|$)/;
|
|
438834
|
-
function
|
|
438834
|
+
function isAbsolute2(path2) {
|
|
438835
438835
|
return ABSOLUTE_PATH_REGEX.test(path2);
|
|
438836
438836
|
}
|
|
438837
438837
|
function isRelative(path2) {
|
|
@@ -438876,12 +438876,12 @@ ${indicator}`;
|
|
|
438876
438876
|
return base.slice(0, Math.max(0, base.length - node_path.extname(id).length));
|
|
438877
438877
|
}
|
|
438878
438878
|
function relativeId(id) {
|
|
438879
|
-
if (!
|
|
438879
|
+
if (!isAbsolute2(id))
|
|
438880
438880
|
return id;
|
|
438881
438881
|
return relative(node_path.resolve(), id);
|
|
438882
438882
|
}
|
|
438883
438883
|
function isPathFragment(name) {
|
|
438884
|
-
return name[0] === "/" || name[0] === "." && (name[1] === "/" || name[1] === ".") ||
|
|
438884
|
+
return name[0] === "/" || name[0] === "." && (name[1] === "/" || name[1] === ".") || isAbsolute2(name);
|
|
438885
438885
|
}
|
|
438886
438886
|
var UPPER_DIR_REGEX = /^(\.\.\/)*\.\.$/;
|
|
438887
438887
|
function getImportPath(importerId, targetPath, stripJsExtension, ensureFileName) {
|
|
@@ -440988,7 +440988,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
440988
440988
|
exports.getAliasName = getAliasName;
|
|
440989
440989
|
exports.getImportPath = getImportPath;
|
|
440990
440990
|
exports.getRollupUrl = getRollupUrl;
|
|
440991
|
-
exports.isAbsolute =
|
|
440991
|
+
exports.isAbsolute = isAbsolute2;
|
|
440992
440992
|
exports.isPathFragment = isPathFragment;
|
|
440993
440993
|
exports.isRelative = isRelative;
|
|
440994
440994
|
exports.isValidUrl = isValidUrl;
|
|
@@ -465064,9 +465064,9 @@ var require_chokidar = __commonJS({
|
|
|
465064
465064
|
}
|
|
465065
465065
|
});
|
|
465066
465066
|
|
|
465067
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
465067
|
+
// 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
|
|
465068
465068
|
var require_dist5 = __commonJS({
|
|
465069
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
465069
|
+
"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) {
|
|
465070
465070
|
"use strict";
|
|
465071
465071
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
465072
465072
|
function _interopRequireDefault(obj) {
|
|
@@ -467500,7 +467500,7 @@ var require_dist5 = __commonJS({
|
|
|
467500
467500
|
return "";
|
|
467501
467501
|
}
|
|
467502
467502
|
var logger2 = _chunk7G76EW2Rjs.createLogger.call(void 0);
|
|
467503
|
-
function rollupDtsFile(options, inputFilePath,
|
|
467503
|
+
function rollupDtsFile(options, inputFilePath, dtsExtension, tsconfigFilePath) {
|
|
467504
467504
|
let pkgPath = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
|
|
467505
467505
|
if (pkgPath.endsWith("/")) {
|
|
467506
467506
|
pkgPath = pkgPath.slice(0, -1);
|
|
@@ -467539,7 +467539,11 @@ var require_dist5 = __commonJS({
|
|
|
467539
467539
|
},
|
|
467540
467540
|
dtsRollup: {
|
|
467541
467541
|
enabled: true,
|
|
467542
|
-
untrimmedFilePath:
|
|
467542
|
+
untrimmedFilePath: _path2.default.join(
|
|
467543
|
+
"<projectFolder>",
|
|
467544
|
+
options.outDir,
|
|
467545
|
+
`index${dtsExtension}`
|
|
467546
|
+
),
|
|
467543
467547
|
betaTrimmedFilePath: _path2.default.join(
|
|
467544
467548
|
"<projectFolder>",
|
|
467545
467549
|
options.outDir,
|
|
@@ -467566,15 +467570,10 @@ var require_dist5 = __commonJS({
|
|
|
467566
467570
|
overrideTsconfig: {
|
|
467567
467571
|
"$schema": "http://json.schemastore.org/tsconfig",
|
|
467568
467572
|
compilerOptions: {
|
|
467569
|
-
|
|
467570
|
-
|
|
467571
|
-
sourceMap: true,
|
|
467572
|
-
declarationMap: true,
|
|
467573
|
-
allowJs: true,
|
|
467574
|
-
resolveJsonModule: true,
|
|
467575
|
-
esModuleInterop: true
|
|
467573
|
+
...options?.experimentalDts?.compilerOptions ?? {},
|
|
467574
|
+
noEmit: false
|
|
467576
467575
|
},
|
|
467577
|
-
include: [
|
|
467576
|
+
include: [`${pkgPath}/**/*`]
|
|
467578
467577
|
}
|
|
467579
467578
|
},
|
|
467580
467579
|
projectFolder: "./"
|
|
@@ -467586,6 +467585,11 @@ var require_dist5 = __commonJS({
|
|
|
467586
467585
|
};
|
|
467587
467586
|
logger2.info("dts", `\u26A1 Current Directory: ${__dirname}`);
|
|
467588
467587
|
logger2.info("dts", "\u26A1 Running API Extractor with the following config: \n", prepareOptions);
|
|
467588
|
+
logger2.info(
|
|
467589
|
+
"dts",
|
|
467590
|
+
"\u26A1 Using the following compiler options: \n",
|
|
467591
|
+
JSON.stringify(prepareOptions.configObject?.compiler)
|
|
467592
|
+
);
|
|
467589
467593
|
const imported = _chunkGQ77QZBOjs.getApiExtractor.call(void 0);
|
|
467590
467594
|
if (!imported) {
|
|
467591
467595
|
throw new Error(
|
|
@@ -467619,7 +467623,6 @@ var require_dist5 = __commonJS({
|
|
|
467619
467623
|
"_tsup-dts-aggregation" + dtsExtension
|
|
467620
467624
|
);
|
|
467621
467625
|
dtsInputFilePath = dtsInputFilePath.replace(/\.d\.mts$/, ".dmts.d.ts").replace(/\.d\.cts$/, ".dcts.d.ts");
|
|
467622
|
-
let dtsOutputFilePath = _path2.default.join(outDir, "index" + dtsExtension);
|
|
467623
467626
|
_chunkGQ77QZBOjs.writeFileSync.call(
|
|
467624
467627
|
void 0,
|
|
467625
467628
|
dtsInputFilePath,
|
|
@@ -467631,11 +467634,7 @@ var require_dist5 = __commonJS({
|
|
|
467631
467634
|
"<projectFolder>",
|
|
467632
467635
|
dtsInputFilePath.replace(options.workspaceRoot, "")
|
|
467633
467636
|
),
|
|
467634
|
-
|
|
467635
|
-
"<projectFolder>",
|
|
467636
|
-
options.outDir,
|
|
467637
|
-
`index${dtsExtension}`
|
|
467638
|
-
),
|
|
467637
|
+
dtsExtension,
|
|
467639
467638
|
options.tsconfig || "tsconfig.json"
|
|
467640
467639
|
);
|
|
467641
467640
|
for (let [out, sourceFileName] of Object.entries(
|
|
@@ -467643,10 +467642,13 @@ var require_dist5 = __commonJS({
|
|
|
467643
467642
|
)) {
|
|
467644
467643
|
sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName);
|
|
467645
467644
|
const outFileName = _path2.default.join(outDir, out + dtsExtension);
|
|
467645
|
+
const currentExports = exports2.filter(
|
|
467646
|
+
(declaration) => declaration.sourceFileName === sourceFileName
|
|
467647
|
+
);
|
|
467646
467648
|
_chunkGQ77QZBOjs.writeFileSync.call(
|
|
467647
467649
|
void 0,
|
|
467648
467650
|
outFileName,
|
|
467649
|
-
formatDistributionExports(
|
|
467651
|
+
formatDistributionExports(currentExports, outFileName, outDir)
|
|
467650
467652
|
);
|
|
467651
467653
|
}
|
|
467652
467654
|
}
|
|
@@ -474181,7 +474183,7 @@ glob.glob = glob;
|
|
|
474181
474183
|
var import_node_events = require("node:events");
|
|
474182
474184
|
var import_project_graph = require("nx/src/project-graph/project-graph");
|
|
474183
474185
|
var import_fileutils = require("nx/src/utils/fileutils");
|
|
474184
|
-
var
|
|
474186
|
+
var import_path3 = require("path");
|
|
474185
474187
|
var import_prettier = require("prettier");
|
|
474186
474188
|
var import_tsup2 = __toESM(require_dist5());
|
|
474187
474189
|
|
|
@@ -474237,6 +474239,7 @@ var removeExtension = (filePath) => {
|
|
|
474237
474239
|
|
|
474238
474240
|
// packages/workspace-tools/src/executors/tsup/get-config.ts
|
|
474239
474241
|
var import_devkit = __toESM(require_devkit());
|
|
474242
|
+
var import_path2 = require("path");
|
|
474240
474243
|
var import_tsup = __toESM(require_dist5());
|
|
474241
474244
|
function modernConfig({
|
|
474242
474245
|
entry,
|
|
@@ -474362,9 +474365,16 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
474362
474365
|
env,
|
|
474363
474366
|
verbose
|
|
474364
474367
|
}) {
|
|
474365
|
-
const
|
|
474366
|
-
|
|
474367
|
-
|
|
474368
|
+
const entryPath = main ? main : sourceRoot;
|
|
474369
|
+
const entry = globSync(
|
|
474370
|
+
[
|
|
474371
|
+
(0, import_path2.isAbsolute)(entryPath) ? entryPath : (0, import_devkit.joinPathFragments)(workspaceRoot, entryPath),
|
|
474372
|
+
...additionalEntryPoints ?? []
|
|
474373
|
+
],
|
|
474374
|
+
{
|
|
474375
|
+
withFileTypes: true
|
|
474376
|
+
}
|
|
474377
|
+
).reduce((ret, filePath) => {
|
|
474368
474378
|
ret[removeExtension(filePath.name)] = (0, import_devkit.joinPathFragments)(
|
|
474369
474379
|
filePath.path,
|
|
474370
474380
|
filePath.name
|
|
@@ -474434,7 +474444,6 @@ var outExtension = ({ options, format: format2, pkgType }) => {
|
|
|
474434
474444
|
async function runExecutor(options, context) {
|
|
474435
474445
|
try {
|
|
474436
474446
|
console.log("\u{1F4E6} Running Storm build executor on the workspace");
|
|
474437
|
-
options.main ??= "src/index.ts";
|
|
474438
474447
|
options.outputPath ??= "dist/{projectRoot}";
|
|
474439
474448
|
options.tsConfig ??= "tsconfig.json";
|
|
474440
474449
|
options.banner ??= process.env.STORM_FILE_BANNER;
|
|
@@ -474468,7 +474477,7 @@ ${Object.keys(options).map(
|
|
|
474468
474477
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
474469
474478
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
|
|
474470
474479
|
const outputPath = applyWorkspaceTokens(
|
|
474471
|
-
options.outputPath ? options.outputPath : (0,
|
|
474480
|
+
options.outputPath ? options.outputPath : (0, import_path3.join)(workspaceRoot, "dist", projectRoot),
|
|
474472
474481
|
context
|
|
474473
474482
|
);
|
|
474474
474483
|
if (options.clean !== false) {
|
|
@@ -474527,7 +474536,7 @@ ${externalDependencies.map((dep) => {
|
|
|
474527
474536
|
}
|
|
474528
474537
|
}
|
|
474529
474538
|
const projectGraph = await (0, import_project_graph.buildProjectGraphWithoutDaemon)();
|
|
474530
|
-
const pathToPackageJson = (0,
|
|
474539
|
+
const pathToPackageJson = (0, import_path3.join)(context.root, projectRoot, "package.json");
|
|
474531
474540
|
const packageJson = (0, import_fileutils.fileExists)(pathToPackageJson) ? (0, import_devkit2.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
|
|
474532
474541
|
const workspacePackageJson = (0, import_devkit2.readJsonFile)(
|
|
474533
474542
|
(0, import_devkit2.joinPathFragments)(workspaceRoot, "package.json")
|