@storm-software/workspace-tools 1.8.0 → 1.8.2
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 +31 -20
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +31 -20
- package/src/executors/tsup/get-config.js +31 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.8.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.8.0...workspace-tools-v1.8.1) (2023-11-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Updated the api-reports docs path in tsup executor ([7ba4b1d](https://github.com/storm-software/storm-ops/commit/7ba4b1d6969d6de7f77ca9f1b99a53426ed659fb))
|
|
7
|
+
|
|
8
|
+
# [1.8.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.7.37...workspace-tools-v1.8.0) (2023-11-20)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **workspace-tools:** Update tsup executor to generate API Report file, Doc Model, and TSDoc Metadata ([fb4cda5](https://github.com/storm-software/storm-ops/commit/fb4cda5807005d2ae412d637fa5247ebad09abf7))
|
|
14
|
+
|
|
1
15
|
## [1.7.37](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.7.36...workspace-tools-v1.7.37) (2023-11-20)
|
|
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=zzrfxgmewxygrkqigjnsq2hmda_@microsoft+api-extractor@7.38.3_@swc+core@1._cuu3vpww74ghwsgkw7xci7s7hi/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=zzrfxgmewxygrkqigjnsq2hmda_@microsoft+api-extractor@7.38.3_@swc+core@1._cuu3vpww74ghwsgkw7xci7s7hi/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=zzrfxgmewxygrkqigjnsq2hmda_@microsoft+api-extractor@7.38.3_@swc+core@1._cuu3vpww74ghwsgkw7xci7s7hi/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=zzrfxgmewxygrkqigjnsq2hmda_@microsoft+api-extractor@7.38.3_@swc+core@1._cuu3vpww74ghwsgkw7xci7s7hi/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=zzrfxgmewxygrkqigjnsq2hmda_@microsoft+api-extractor@7.38.3_@swc+core@1._cuu3vpww74ghwsgkw7xci7s7hi/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=zzrfxgmewxygrkqigjnsq2hmda_@microsoft+api-extractor@7.38.3_@swc+core@1._cuu3vpww74ghwsgkw7xci7s7hi/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=zzrfxgmewxygrkqigjnsq2hmda_@microsoft+api-extractor@7.38.3_@swc+core@1._cuu3vpww74ghwsgkw7xci7s7hi/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=zzrfxgmewxygrkqigjnsq2hmda_@microsoft+api-extractor@7.38.3_@swc+core@1._cuu3vpww74ghwsgkw7xci7s7hi/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=zzrfxgmewxygrkqigjnsq2hmda_@microsoft+api-extractor@7.38.3_@swc+core@1._cuu3vpww74ghwsgkw7xci7s7hi/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=zzrfxgmewxygrkqigjnsq2hmda_@microsoft+api-extractor@7.38.3_@swc+core@1._cuu3vpww74ghwsgkw7xci7s7hi/node_modules/tsup/dist/index.js"(exports) {
|
|
465070
465070
|
"use strict";
|
|
465071
465071
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
465072
465072
|
function _interopRequireDefault(obj) {
|
|
@@ -467501,26 +467501,33 @@ var require_dist5 = __commonJS({
|
|
|
467501
467501
|
}
|
|
467502
467502
|
var logger2 = _chunk7G76EW2Rjs.createLogger.call(void 0);
|
|
467503
467503
|
function rollupDtsFile(options, inputFilePath, outputFilePath, tsconfigFilePath) {
|
|
467504
|
-
let pkgPath = packageJsonSearch(
|
|
467504
|
+
let pkgPath = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
|
|
467505
467505
|
if (pkgPath.endsWith("/")) {
|
|
467506
467506
|
pkgPath = pkgPath.slice(0, -1);
|
|
467507
467507
|
}
|
|
467508
467508
|
logger2.info("dts", `\u26A1 Preparing to run API Extractor (DTS generate): ${pkgPath}`);
|
|
467509
467509
|
let packageJsonFullPath = options.workspaceRoot ? _path2.default.join(options.workspaceRoot, pkgPath, "package.json") : _path2.default.join(pkgPath, "package.json");
|
|
467510
|
-
const
|
|
467510
|
+
const splits = pkgPath.split("/");
|
|
467511
|
+
let packageName = pkgPath;
|
|
467512
|
+
if (splits.length > 1) {
|
|
467513
|
+
packageName = splits[splits.length - 1];
|
|
467514
|
+
}
|
|
467511
467515
|
const apiReferenceProjectDir = _path2.default.join(
|
|
467512
|
-
|
|
467516
|
+
"<projectFolder>",
|
|
467513
467517
|
"docs",
|
|
467514
|
-
"api-
|
|
467518
|
+
"api-reports",
|
|
467515
467519
|
options.projectRoot
|
|
467516
467520
|
);
|
|
467517
467521
|
let configObject = {
|
|
467518
467522
|
mainEntryPointFilePath: inputFilePath,
|
|
467519
467523
|
apiReport: {
|
|
467520
467524
|
enabled: options.apiReport !== false,
|
|
467521
|
-
reportFileName:
|
|
467522
|
-
|
|
467523
|
-
|
|
467525
|
+
reportFileName: `${packageName}.api.md`,
|
|
467526
|
+
reportFolder: apiReferenceProjectDir,
|
|
467527
|
+
reportTempFolder: _path2.default.join(
|
|
467528
|
+
"<projectFolder>",
|
|
467529
|
+
"tmp",
|
|
467530
|
+
"api-reports"
|
|
467524
467531
|
)
|
|
467525
467532
|
},
|
|
467526
467533
|
docModel: {
|
|
@@ -467534,17 +467541,20 @@ var require_dist5 = __commonJS({
|
|
|
467534
467541
|
enabled: true,
|
|
467535
467542
|
untrimmedFilePath: outputFilePath,
|
|
467536
467543
|
betaTrimmedFilePath: _path2.default.join(
|
|
467537
|
-
|
|
467544
|
+
"<projectFolder>",
|
|
467545
|
+
pkgPath,
|
|
467538
467546
|
`${packageName}-beta.d.ts`
|
|
467539
467547
|
),
|
|
467540
467548
|
publicTrimmedFilePath: _path2.default.join(
|
|
467541
|
-
|
|
467549
|
+
"<projectFolder>",
|
|
467550
|
+
pkgPath,
|
|
467542
467551
|
`${packageName}-public.d.ts`
|
|
467543
467552
|
)
|
|
467544
467553
|
},
|
|
467545
467554
|
tsdocMetadata: {
|
|
467546
467555
|
enabled: options.tsdocMetadata !== false,
|
|
467547
467556
|
tsdocMetadataFilePath: _path2.default.join(
|
|
467557
|
+
"<projectFolder>",
|
|
467548
467558
|
apiReferenceProjectDir,
|
|
467549
467559
|
`${packageName}.api.tsdoc-metadata.json`
|
|
467550
467560
|
)
|
|
@@ -467552,13 +467562,14 @@ var require_dist5 = __commonJS({
|
|
|
467552
467562
|
compiler: {
|
|
467553
467563
|
tsconfigFilePath
|
|
467554
467564
|
},
|
|
467555
|
-
projectFolder: options.
|
|
467565
|
+
projectFolder: options.workspaceRoot
|
|
467556
467566
|
};
|
|
467557
467567
|
const prepareOptions = {
|
|
467558
467568
|
configObject,
|
|
467559
467569
|
configObjectFullPath: void 0,
|
|
467560
467570
|
packageJsonFullPath
|
|
467561
467571
|
};
|
|
467572
|
+
logger2.info("dts", "\u26A1 Running API Extractor with the following config: \n", prepareOptions);
|
|
467562
467573
|
const imported = _chunkGQ77QZBOjs.getApiExtractor.call(void 0);
|
|
467563
467574
|
if (!imported) {
|
|
467564
467575
|
throw new Error(
|