@storm-software/workspace-tools 1.10.2 → 1.10.4
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 +35 -20
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +35 -20
- package/src/executors/tsup/get-config.js +35 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.10.3](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.10.2...workspace-tools-v1.10.3) (2023-11-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Add default tsconfig values for api-extractor ([ae43e3f](https://github.com/storm-software/storm-ops/commit/ae43e3f47636a8921ace3441da5d533fa9773fe1))
|
|
7
|
+
|
|
8
|
+
## [1.10.2](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.10.1...workspace-tools-v1.10.2) (2023-11-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **workspace-tools:** Update the `projectFolder` option passed to api-extractor ([fb0c939](https://github.com/storm-software/storm-ops/commit/fb0c939122c19947bebfbebdea153cbabc3335cc))
|
|
14
|
+
|
|
1
15
|
## [1.10.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.10.0...workspace-tools-v1.10.1) (2023-11-21)
|
|
2
16
|
|
|
3
17
|
|
package/index.js
CHANGED
|
@@ -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) {
|
|
@@ -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) {
|
|
@@ -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,
|
|
@@ -467562,7 +467566,15 @@ var require_dist5 = __commonJS({
|
|
|
467562
467566
|
tsconfigFilePath: _path2.default.join(
|
|
467563
467567
|
"<projectFolder>",
|
|
467564
467568
|
tsconfigFilePath.replace(options.workspaceRoot, "")
|
|
467565
|
-
)
|
|
467569
|
+
),
|
|
467570
|
+
overrideTsconfig: {
|
|
467571
|
+
"$schema": "http://json.schemastore.org/tsconfig",
|
|
467572
|
+
compilerOptions: {
|
|
467573
|
+
...options?.experimentalDts?.compilerOptions ?? {},
|
|
467574
|
+
noEmit: false
|
|
467575
|
+
},
|
|
467576
|
+
include: [`${pkgPath}/**/*`]
|
|
467577
|
+
}
|
|
467566
467578
|
},
|
|
467567
467579
|
projectFolder: "./"
|
|
467568
467580
|
};
|
|
@@ -467573,6 +467585,11 @@ var require_dist5 = __commonJS({
|
|
|
467573
467585
|
};
|
|
467574
467586
|
logger2.info("dts", `\u26A1 Current Directory: ${__dirname}`);
|
|
467575
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
|
+
);
|
|
467576
467593
|
const imported = _chunkGQ77QZBOjs.getApiExtractor.call(void 0);
|
|
467577
467594
|
if (!imported) {
|
|
467578
467595
|
throw new Error(
|
|
@@ -467606,7 +467623,6 @@ var require_dist5 = __commonJS({
|
|
|
467606
467623
|
"_tsup-dts-aggregation" + dtsExtension
|
|
467607
467624
|
);
|
|
467608
467625
|
dtsInputFilePath = dtsInputFilePath.replace(/\.d\.mts$/, ".dmts.d.ts").replace(/\.d\.cts$/, ".dcts.d.ts");
|
|
467609
|
-
let dtsOutputFilePath = _path2.default.join(outDir, "index" + dtsExtension);
|
|
467610
467626
|
_chunkGQ77QZBOjs.writeFileSync.call(
|
|
467611
467627
|
void 0,
|
|
467612
467628
|
dtsInputFilePath,
|
|
@@ -467618,11 +467634,7 @@ var require_dist5 = __commonJS({
|
|
|
467618
467634
|
"<projectFolder>",
|
|
467619
467635
|
dtsInputFilePath.replace(options.workspaceRoot, "")
|
|
467620
467636
|
),
|
|
467621
|
-
|
|
467622
|
-
"<projectFolder>",
|
|
467623
|
-
options.outDir,
|
|
467624
|
-
`index${dtsExtension}`
|
|
467625
|
-
),
|
|
467637
|
+
dtsExtension,
|
|
467626
467638
|
options.tsconfig || "tsconfig.json"
|
|
467627
467639
|
);
|
|
467628
467640
|
for (let [out, sourceFileName] of Object.entries(
|
|
@@ -467630,10 +467642,13 @@ var require_dist5 = __commonJS({
|
|
|
467630
467642
|
)) {
|
|
467631
467643
|
sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName);
|
|
467632
467644
|
const outFileName = _path2.default.join(outDir, out + dtsExtension);
|
|
467645
|
+
const currentExports = exports2.filter(
|
|
467646
|
+
(declaration) => declaration.sourceFileName === sourceFileName
|
|
467647
|
+
);
|
|
467633
467648
|
_chunkGQ77QZBOjs.writeFileSync.call(
|
|
467634
467649
|
void 0,
|
|
467635
467650
|
outFileName,
|
|
467636
|
-
formatDistributionExports(
|
|
467651
|
+
formatDistributionExports(currentExports, outFileName, outDir)
|
|
467637
467652
|
);
|
|
467638
467653
|
}
|
|
467639
467654
|
}
|