@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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.10.4](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.10.3...workspace-tools-v1.10.4) (2023-11-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Resolved issue with export generation after api-extractor ([2b9e593](https://github.com/storm-software/storm-ops/commit/2b9e593a72ee352531e5721c62e3a3d10e86ed47))
|
|
7
|
+
|
|
8
|
+
## [1.10.3](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.10.2...workspace-tools-v1.10.3) (2023-11-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **workspace-tools:** Add default tsconfig values for api-extractor ([ae43e3f](https://github.com/storm-software/storm-ops/commit/ae43e3f47636a8921ace3441da5d533fa9773fe1))
|
|
14
|
+
|
|
1
15
|
## [1.10.2](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.10.1...workspace-tools-v1.10.2) (2023-11-22)
|
|
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,
|
|
@@ -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
|
}
|