@storm-software/workspace-tools 1.10.6 → 1.10.8
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 +14 -24
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +48 -63
- package/src/executors/tsup/get-config.js +46 -61
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 isAbsolute = 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 = isAbsolute(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 (isAbsolute(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 isAbsolute = 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 (isAbsolute(prefix) || isAbsolute(pattern.map(function(p) {
|
|
5665
5665
|
return typeof p === "string" ? p : "[*]";
|
|
5666
5666
|
}).join("/"))) {
|
|
5667
|
-
if (!prefix || !
|
|
5667
|
+
if (!prefix || !isAbsolute(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 && isAbsolute(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 isAbsolute = 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 (isAbsolute(prefix) || isAbsolute(pattern.map(function(p) {
|
|
6289
6289
|
return typeof p === "string" ? p : "[*]";
|
|
6290
6290
|
}).join("/"))) {
|
|
6291
|
-
if (!prefix || !
|
|
6291
|
+
if (!prefix || !isAbsolute(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 = isAbsolute(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 && isAbsolute(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 isAbsolute = 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 = isAbsolute ? "/" : ".";
|
|
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=hrccgmyv26c3fkxt4kxqzjc2mm_@microsoft+api-extractor@7.38.3_@swc+core@1._kzecm632qhdtkqdovk2vtm4lqa/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=hrccgmyv26c3fkxt4kxqzjc2mm_@microsoft+api-extractor@7.38.3_@swc+core@1._kzecm632qhdtkqdovk2vtm4lqa/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=hrccgmyv26c3fkxt4kxqzjc2mm_@microsoft+api-extractor@7.38.3_@swc+core@1._kzecm632qhdtkqdovk2vtm4lqa/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=hrccgmyv26c3fkxt4kxqzjc2mm_@microsoft+api-extractor@7.38.3_@swc+core@1._kzecm632qhdtkqdovk2vtm4lqa/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=hrccgmyv26c3fkxt4kxqzjc2mm_@microsoft+api-extractor@7.38.3_@swc+core@1._kzecm632qhdtkqdovk2vtm4lqa/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=hrccgmyv26c3fkxt4kxqzjc2mm_@microsoft+api-extractor@7.38.3_@swc+core@1._kzecm632qhdtkqdovk2vtm4lqa/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_path3 = __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_path3.default.parse(startDir).root) => {
|
|
410915
410915
|
let dir = startDir;
|
|
410916
410916
|
while (dir !== stopDir) {
|
|
410917
|
-
const file =
|
|
410917
|
+
const file = import_path3.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_path3.default.dirname(dir);
|
|
410926
410926
|
}
|
|
410927
410927
|
return null;
|
|
410928
410928
|
};
|
|
410929
410929
|
var resolveTsConfigFromFile = (cwd, filename) => {
|
|
410930
|
-
if (
|
|
410930
|
+
if (import_path3.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_path3.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_path3.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_path3.default.dirname(id);
|
|
410950
410950
|
if ((_a = data.compilerOptions) == null ? void 0 : _a.baseUrl) {
|
|
410951
|
-
data.compilerOptions.baseUrl =
|
|
410951
|
+
data.compilerOptions.baseUrl = import_path3.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_path3 = __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_path3.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_path3.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=hrccgmyv26c3fkxt4kxqzjc2mm_@microsoft+api-extractor@7.38.3_@swc+core@1._kzecm632qhdtkqdovk2vtm4lqa/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=hrccgmyv26c3fkxt4kxqzjc2mm_@microsoft+api-extractor@7.38.3_@swc+core@1._kzecm632qhdtkqdovk2vtm4lqa/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 isAbsolute(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 (!isAbsolute(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] === ".") || isAbsolute(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 = isAbsolute;
|
|
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=hrccgmyv26c3fkxt4kxqzjc2mm_@microsoft+api-extractor@7.38.3_@swc+core@1._kzecm632qhdtkqdovk2vtm4lqa/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=hrccgmyv26c3fkxt4kxqzjc2mm_@microsoft+api-extractor@7.38.3_@swc+core@1._kzecm632qhdtkqdovk2vtm4lqa/node_modules/tsup/dist/index.js"(exports) {
|
|
465070
465070
|
"use strict";
|
|
465071
465071
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
465072
465072
|
function _interopRequireDefault(obj) {
|
|
@@ -467563,18 +467563,7 @@ var require_dist5 = __commonJS({
|
|
|
467563
467563
|
)
|
|
467564
467564
|
},
|
|
467565
467565
|
compiler: {
|
|
467566
|
-
tsconfigFilePath
|
|
467567
|
-
"<projectFolder>",
|
|
467568
|
-
tsconfigFilePath.replace(options.workspaceRoot, "")
|
|
467569
|
-
),
|
|
467570
|
-
overrideTsconfig: {
|
|
467571
|
-
"$schema": "http://json.schemastore.org/tsconfig",
|
|
467572
|
-
compilerOptions: {
|
|
467573
|
-
...options?.experimentalDts?.compilerOptions ?? {},
|
|
467574
|
-
noEmit: false
|
|
467575
|
-
},
|
|
467576
|
-
include: [_path2.default.join(pkgPath, "/**/*")]
|
|
467577
|
-
}
|
|
467566
|
+
tsconfigFilePath
|
|
467578
467567
|
},
|
|
467579
467568
|
projectFolder: "./"
|
|
467580
467569
|
};
|
|
@@ -467623,7 +467612,8 @@ var require_dist5 = __commonJS({
|
|
|
467623
467612
|
let declarationDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0);
|
|
467624
467613
|
let outDir = options.outDir || "dist";
|
|
467625
467614
|
let pkgPath = packageJsonSearch(outDir, options.silent, "dts", logger2);
|
|
467626
|
-
logger2.info("dts", `\u26A1 Preparing to run Rollup (DTS generate): ${pkgPath}`);
|
|
467615
|
+
!options.silent && logger2.info("dts", `\u26A1 Preparing to run Rollup (DTS generate): ${pkgPath}`);
|
|
467616
|
+
!options.silent && logger2.info("dts", `\u26A1 Exports list to use in generation: ${exports2.map((e) => JSON.stringify(e)).join("\n")}`);
|
|
467627
467617
|
let pkg = await _chunk7G76EW2Rjs.loadPkg.call(void 0, pkgPath);
|
|
467628
467618
|
let dtsExtension = _chunkGQ77QZBOjs.defaultOutExtension.call(void 0, { format: format2, pkgType: pkg.type }).dts;
|
|
467629
467619
|
let dtsInputFilePath = _path2.default.join(
|
|
@@ -467650,7 +467640,7 @@ var require_dist5 = __commonJS({
|
|
|
467650
467640
|
options.experimentalDts.entry
|
|
467651
467641
|
)) {
|
|
467652
467642
|
sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName);
|
|
467653
|
-
const outFileName = _path2.default.join(outDir, out + dtsExtension);
|
|
467643
|
+
const outFileName = _path2.default.join(outDir, "decl", out + dtsExtension);
|
|
467654
467644
|
const currentExports = exports2.filter(
|
|
467655
467645
|
(declaration) => declaration.sourceFileName === sourceFileName
|
|
467656
467646
|
);
|
|
@@ -474192,7 +474182,7 @@ glob.glob = glob;
|
|
|
474192
474182
|
var import_node_events = require("node:events");
|
|
474193
474183
|
var import_project_graph = require("nx/src/project-graph/project-graph");
|
|
474194
474184
|
var import_fileutils = require("nx/src/utils/fileutils");
|
|
474195
|
-
var
|
|
474185
|
+
var import_path2 = require("path");
|
|
474196
474186
|
var import_prettier = require("prettier");
|
|
474197
474187
|
var import_tsup2 = __toESM(require_dist5());
|
|
474198
474188
|
|
|
@@ -474248,7 +474238,6 @@ var removeExtension = (filePath) => {
|
|
|
474248
474238
|
|
|
474249
474239
|
// packages/workspace-tools/src/executors/tsup/get-config.ts
|
|
474250
474240
|
var import_devkit = __toESM(require_devkit());
|
|
474251
|
-
var import_path2 = require("path");
|
|
474252
474241
|
var import_tsup = __toESM(require_dist5());
|
|
474253
474242
|
function modernConfig({
|
|
474254
474243
|
entry,
|
|
@@ -474374,12 +474363,8 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
474374
474363
|
env,
|
|
474375
474364
|
verbose
|
|
474376
474365
|
}) {
|
|
474377
|
-
const entryPath = main ? main : sourceRoot;
|
|
474378
474366
|
const entry = globSync(
|
|
474379
|
-
[
|
|
474380
|
-
(0, import_path2.isAbsolute)(entryPath) ? entryPath : (0, import_devkit.joinPathFragments)(workspaceRoot, entryPath),
|
|
474381
|
-
...additionalEntryPoints ?? []
|
|
474382
|
-
],
|
|
474367
|
+
[main ? main : sourceRoot, ...additionalEntryPoints ?? []],
|
|
474383
474368
|
{
|
|
474384
474369
|
withFileTypes: true
|
|
474385
474370
|
}
|
|
@@ -474486,7 +474471,7 @@ ${Object.keys(options).map(
|
|
|
474486
474471
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
474487
474472
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
|
|
474488
474473
|
const outputPath = applyWorkspaceTokens(
|
|
474489
|
-
options.outputPath ? options.outputPath : (0,
|
|
474474
|
+
options.outputPath ? options.outputPath : (0, import_path2.join)(workspaceRoot, "dist", projectRoot),
|
|
474490
474475
|
context
|
|
474491
474476
|
);
|
|
474492
474477
|
if (options.clean !== false) {
|
|
@@ -474545,7 +474530,7 @@ ${externalDependencies.map((dep) => {
|
|
|
474545
474530
|
}
|
|
474546
474531
|
}
|
|
474547
474532
|
const projectGraph = await (0, import_project_graph.buildProjectGraphWithoutDaemon)();
|
|
474548
|
-
const pathToPackageJson = (0,
|
|
474533
|
+
const pathToPackageJson = (0, import_path2.join)(context.root, projectRoot, "package.json");
|
|
474549
474534
|
const packageJson = (0, import_fileutils.fileExists)(pathToPackageJson) ? (0, import_devkit2.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
|
|
474550
474535
|
const workspacePackageJson = (0, import_devkit2.readJsonFile)(
|
|
474551
474536
|
(0, import_devkit2.joinPathFragments)(workspaceRoot, "package.json")
|