@storm-software/workspace-tools 1.7.37 → 1.8.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.7.37",
3
+ "version": "1.8.0",
4
4
  "private": false,
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "keywords": [
@@ -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=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-EPAEWGCP.js
408393
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/node_modules/tsup/dist/chunk-EPAEWGCP.js
408394
408394
  var require_chunk_EPAEWGCP = __commonJS({
408395
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
408395
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/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=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-GQ77QZBO.js
410042
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/node_modules/tsup/dist/chunk-GQ77QZBO.js
410043
410043
  var require_chunk_GQ77QZBO = __commonJS({
410044
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
410044
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/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=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-UIX4URMV.js
410323
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/node_modules/tsup/dist/chunk-UIX4URMV.js
410324
410324
  var require_chunk_UIX4URMV = __commonJS({
410325
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
410325
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/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=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-7G76EW2R.js
411259
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/node_modules/tsup/dist/chunk-7G76EW2R.js
411260
411260
  var require_chunk_7G76EW2R = __commonJS({
411261
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
411261
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/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=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/index.js
465067
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/node_modules/tsup/dist/index.js
465068
465068
  var require_dist5 = __commonJS({
465069
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/index.js"(exports) {
465069
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/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,27 +467500,59 @@ var require_dist5 = __commonJS({
467500
467500
  return "";
467501
467501
  }
467502
467502
  var logger2 = _chunk7G76EW2Rjs.createLogger.call(void 0);
467503
- function rollupDtsFile(inputFilePath, outputFilePath, tsconfigFilePath) {
467504
- let pkgPath = packageJsonSearch(outputFilePath, false, "dts", logger2);
467503
+ function rollupDtsFile(options, inputFilePath, outputFilePath, tsconfigFilePath) {
467504
+ let pkgPath = packageJsonSearch(outputFilePath, options.silent, "dts", logger2);
467505
+ if (pkgPath.endsWith("/")) {
467506
+ pkgPath = pkgPath.slice(0, -1);
467507
+ }
467505
467508
  logger2.info("dts", `\u26A1 Preparing to run API Extractor (DTS generate): ${pkgPath}`);
467506
- let packageJsonFullPath = _path2.default.join(pkgPath, "package.json");
467509
+ let packageJsonFullPath = options.workspaceRoot ? _path2.default.join(options.workspaceRoot, pkgPath, "package.json") : _path2.default.join(pkgPath, "package.json");
467510
+ const packageName = pkgPath.substring(pkgPath.lastIndexOf("/") ?? 0);
467511
+ const apiReferenceProjectDir = _path2.default.join(
467512
+ options.workspaceRoot,
467513
+ "docs",
467514
+ "api-report",
467515
+ options.projectRoot
467516
+ );
467507
467517
  let configObject = {
467508
467518
  mainEntryPointFilePath: inputFilePath,
467509
467519
  apiReport: {
467510
- enabled: false,
467511
- // `reportFileName` is not been used. It's just to fit the requirement of API Extractor.
467512
- reportFileName: "tsup-report.api.md"
467520
+ enabled: options.apiReport !== false,
467521
+ reportFileName: _path2.default.join(
467522
+ apiReferenceProjectDir,
467523
+ `${packageName}.api.md`
467524
+ )
467525
+ },
467526
+ docModel: {
467527
+ enabled: options.docModel !== false,
467528
+ apiJsonFilePath: _path2.default.join(
467529
+ apiReferenceProjectDir,
467530
+ `${packageName}.api.json`
467531
+ )
467513
467532
  },
467514
- docModel: { enabled: false },
467515
467533
  dtsRollup: {
467516
467534
  enabled: true,
467517
- untrimmedFilePath: outputFilePath
467535
+ untrimmedFilePath: outputFilePath,
467536
+ betaTrimmedFilePath: _path2.default.join(
467537
+ _path2.default.dirname(outputFilePath),
467538
+ `${packageName}-beta.d.ts`
467539
+ ),
467540
+ publicTrimmedFilePath: _path2.default.join(
467541
+ _path2.default.dirname(outputFilePath),
467542
+ `${packageName}-public.d.ts`
467543
+ )
467544
+ },
467545
+ tsdocMetadata: {
467546
+ enabled: options.tsdocMetadata !== false,
467547
+ tsdocMetadataFilePath: _path2.default.join(
467548
+ apiReferenceProjectDir,
467549
+ `${packageName}.api.tsdoc-metadata.json`
467550
+ )
467518
467551
  },
467519
- tsdocMetadata: { enabled: false },
467520
467552
  compiler: {
467521
467553
  tsconfigFilePath
467522
467554
  },
467523
- projectFolder: pkgPath
467555
+ projectFolder: options.projectRoot ?? pkgPath
467524
467556
  };
467525
467557
  const prepareOptions = {
467526
467558
  configObject,
@@ -467566,6 +467598,7 @@ var require_dist5 = __commonJS({
467566
467598
  formatAggregationExports(exports2, declarationDir)
467567
467599
  );
467568
467600
  rollupDtsFile(
467601
+ options,
467569
467602
  dtsInputFilePath,
467570
467603
  dtsOutputFilePath,
467571
467604
  options.tsconfig || "tsconfig.json"
@@ -474181,6 +474214,9 @@ function modernConfig({
474181
474214
  banner = {},
474182
474215
  platform = "neutral",
474183
474216
  verbose = false,
474217
+ apiReport = true,
474218
+ docModel = true,
474219
+ tsdocMetadata = true,
474184
474220
  define: define2,
474185
474221
  env,
474186
474222
  options
@@ -474218,6 +474254,9 @@ function modernConfig({
474218
474254
  noEmit: false
474219
474255
  }
474220
474256
  },
474257
+ apiReport,
474258
+ docModel,
474259
+ tsdocMetadata,
474221
474260
  sourcemap: debug,
474222
474261
  clean: false,
474223
474262
  outExtension
@@ -474263,6 +474302,9 @@ function legacyConfig({
474263
474302
  noEmit: false
474264
474303
  }
474265
474304
  },
474305
+ apiReport: false,
474306
+ docModel: false,
474307
+ tsdocMetadata: false,
474266
474308
  sourcemap: debug,
474267
474309
  clean: false,
474268
474310
  outExtension
@@ -474277,6 +474319,9 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
474277
474319
  external,
474278
474320
  options,
474279
474321
  additionalEntryPoints,
474322
+ apiReport,
474323
+ docModel,
474324
+ tsdocMetadata,
474280
474325
  define: define2,
474281
474326
  env,
474282
474327
  verbose
@@ -474307,6 +474352,9 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
474307
474352
  platform,
474308
474353
  external,
474309
474354
  verbose,
474355
+ apiReport,
474356
+ docModel,
474357
+ tsdocMetadata,
474310
474358
  define: define2,
474311
474359
  env,
474312
474360
  options
@@ -474367,6 +474415,9 @@ async function runExecutor(options, context) {
474367
474415
  options.bundle ??= true;
474368
474416
  options.debug ??= false;
474369
474417
  options.watch ??= false;
474418
+ options.apiReport ??= true;
474419
+ options.docModel ??= true;
474420
+ options.tsdocMetadata ??= true;
474370
474421
  options.define ??= {};
474371
474422
  options.env ??= {};
474372
474423
  options.verbose && console.log(
@@ -18383,9 +18383,9 @@ var require_brace_expansion2 = __commonJS({
18383
18383
  }
18384
18384
  });
18385
18385
 
18386
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-EPAEWGCP.js
18386
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/node_modules/tsup/dist/chunk-EPAEWGCP.js
18387
18387
  var require_chunk_EPAEWGCP = __commonJS({
18388
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
18388
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
18389
18389
  "use strict";
18390
18390
  Object.defineProperty(exports, "__esModule", { value: true });
18391
18391
  var version = "8.0.0";
@@ -24319,9 +24319,9 @@ var require_resolve_from = __commonJS({
24319
24319
  }
24320
24320
  });
24321
24321
 
24322
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-GQ77QZBO.js
24322
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/node_modules/tsup/dist/chunk-GQ77QZBO.js
24323
24323
  var require_chunk_GQ77QZBO = __commonJS({
24324
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
24324
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
24325
24325
  "use strict";
24326
24326
  Object.defineProperty(exports, "__esModule", { value: true });
24327
24327
  function _interopRequireDefault(obj) {
@@ -24600,9 +24600,9 @@ var require_chunk_GQ77QZBO = __commonJS({
24600
24600
  }
24601
24601
  });
24602
24602
 
24603
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-UIX4URMV.js
24603
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/node_modules/tsup/dist/chunk-UIX4URMV.js
24604
24604
  var require_chunk_UIX4URMV = __commonJS({
24605
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
24605
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
24606
24606
  "use strict";
24607
24607
  Object.defineProperty(exports, "__esModule", { value: true });
24608
24608
  function _interopRequireWildcard(obj) {
@@ -25536,9 +25536,9 @@ var require_dist2 = __commonJS({
25536
25536
  }
25537
25537
  });
25538
25538
 
25539
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-7G76EW2R.js
25539
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/node_modules/tsup/dist/chunk-7G76EW2R.js
25540
25540
  var require_chunk_7G76EW2R = __commonJS({
25541
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
25541
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
25542
25542
  "use strict";
25543
25543
  Object.defineProperty(exports, "__esModule", { value: true });
25544
25544
  function _interopRequireDefault(obj) {
@@ -267221,9 +267221,9 @@ var require_chokidar = __commonJS({
267221
267221
  }
267222
267222
  });
267223
267223
 
267224
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/index.js
267224
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/node_modules/tsup/dist/index.js
267225
267225
  var require_dist5 = __commonJS({
267226
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=mbej3fsdqjmxhdiqcxx3ntmck4_@microsoft+api-extractor@7.38.3_@swc+core@1._ra4m2fiwlqoxwr5xcfgfxijlw4/node_modules/tsup/dist/index.js"(exports) {
267226
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=2v4fky65jj4pujmlx466park5u_@microsoft+api-extractor@7.38.3_@swc+core@1._rc2bfzduky2ejpdzccn7idgcny/node_modules/tsup/dist/index.js"(exports) {
267227
267227
  "use strict";
267228
267228
  Object.defineProperty(exports, "__esModule", { value: true });
267229
267229
  function _interopRequireDefault(obj) {
@@ -269657,27 +269657,59 @@ var require_dist5 = __commonJS({
269657
269657
  return "";
269658
269658
  }
269659
269659
  var logger2 = _chunk7G76EW2Rjs.createLogger.call(void 0);
269660
- function rollupDtsFile(inputFilePath, outputFilePath, tsconfigFilePath) {
269661
- let pkgPath = packageJsonSearch(outputFilePath, false, "dts", logger2);
269660
+ function rollupDtsFile(options, inputFilePath, outputFilePath, tsconfigFilePath) {
269661
+ let pkgPath = packageJsonSearch(outputFilePath, options.silent, "dts", logger2);
269662
+ if (pkgPath.endsWith("/")) {
269663
+ pkgPath = pkgPath.slice(0, -1);
269664
+ }
269662
269665
  logger2.info("dts", `\u26A1 Preparing to run API Extractor (DTS generate): ${pkgPath}`);
269663
- let packageJsonFullPath = _path2.default.join(pkgPath, "package.json");
269666
+ let packageJsonFullPath = options.workspaceRoot ? _path2.default.join(options.workspaceRoot, pkgPath, "package.json") : _path2.default.join(pkgPath, "package.json");
269667
+ const packageName = pkgPath.substring(pkgPath.lastIndexOf("/") ?? 0);
269668
+ const apiReferenceProjectDir = _path2.default.join(
269669
+ options.workspaceRoot,
269670
+ "docs",
269671
+ "api-report",
269672
+ options.projectRoot
269673
+ );
269664
269674
  let configObject = {
269665
269675
  mainEntryPointFilePath: inputFilePath,
269666
269676
  apiReport: {
269667
- enabled: false,
269668
- // `reportFileName` is not been used. It's just to fit the requirement of API Extractor.
269669
- reportFileName: "tsup-report.api.md"
269677
+ enabled: options.apiReport !== false,
269678
+ reportFileName: _path2.default.join(
269679
+ apiReferenceProjectDir,
269680
+ `${packageName}.api.md`
269681
+ )
269682
+ },
269683
+ docModel: {
269684
+ enabled: options.docModel !== false,
269685
+ apiJsonFilePath: _path2.default.join(
269686
+ apiReferenceProjectDir,
269687
+ `${packageName}.api.json`
269688
+ )
269670
269689
  },
269671
- docModel: { enabled: false },
269672
269690
  dtsRollup: {
269673
269691
  enabled: true,
269674
- untrimmedFilePath: outputFilePath
269692
+ untrimmedFilePath: outputFilePath,
269693
+ betaTrimmedFilePath: _path2.default.join(
269694
+ _path2.default.dirname(outputFilePath),
269695
+ `${packageName}-beta.d.ts`
269696
+ ),
269697
+ publicTrimmedFilePath: _path2.default.join(
269698
+ _path2.default.dirname(outputFilePath),
269699
+ `${packageName}-public.d.ts`
269700
+ )
269701
+ },
269702
+ tsdocMetadata: {
269703
+ enabled: options.tsdocMetadata !== false,
269704
+ tsdocMetadataFilePath: _path2.default.join(
269705
+ apiReferenceProjectDir,
269706
+ `${packageName}.api.tsdoc-metadata.json`
269707
+ )
269675
269708
  },
269676
- tsdocMetadata: { enabled: false },
269677
269709
  compiler: {
269678
269710
  tsconfigFilePath
269679
269711
  },
269680
- projectFolder: pkgPath
269712
+ projectFolder: options.projectRoot ?? pkgPath
269681
269713
  };
269682
269714
  const prepareOptions = {
269683
269715
  configObject,
@@ -269723,6 +269755,7 @@ var require_dist5 = __commonJS({
269723
269755
  formatAggregationExports(exports2, declarationDir)
269724
269756
  );
269725
269757
  rollupDtsFile(
269758
+ options,
269726
269759
  dtsInputFilePath,
269727
269760
  dtsOutputFilePath,
269728
269761
  options.tsconfig || "tsconfig.json"
@@ -276283,6 +276316,9 @@ function modernConfig({
276283
276316
  banner = {},
276284
276317
  platform = "neutral",
276285
276318
  verbose = false,
276319
+ apiReport = true,
276320
+ docModel = true,
276321
+ tsdocMetadata = true,
276286
276322
  define: define2,
276287
276323
  env,
276288
276324
  options
@@ -276320,6 +276356,9 @@ function modernConfig({
276320
276356
  noEmit: false
276321
276357
  }
276322
276358
  },
276359
+ apiReport,
276360
+ docModel,
276361
+ tsdocMetadata,
276323
276362
  sourcemap: debug,
276324
276363
  clean: false,
276325
276364
  outExtension
@@ -276365,6 +276404,9 @@ function legacyConfig({
276365
276404
  noEmit: false
276366
276405
  }
276367
276406
  },
276407
+ apiReport: false,
276408
+ docModel: false,
276409
+ tsdocMetadata: false,
276368
276410
  sourcemap: debug,
276369
276411
  clean: false,
276370
276412
  outExtension
@@ -276379,6 +276421,9 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
276379
276421
  external,
276380
276422
  options,
276381
276423
  additionalEntryPoints,
276424
+ apiReport,
276425
+ docModel,
276426
+ tsdocMetadata,
276382
276427
  define: define2,
276383
276428
  env,
276384
276429
  verbose
@@ -276409,6 +276454,9 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
276409
276454
  platform,
276410
276455
  external,
276411
276456
  verbose,
276457
+ apiReport,
276458
+ docModel,
276459
+ tsdocMetadata,
276412
276460
  define: define2,
276413
276461
  env,
276414
276462
  options
@@ -23,4 +23,7 @@ export type TsupExecutorSchema = Omit<
23
23
  verbose: boolean;
24
24
  define?: Record<string, string>;
25
25
  env?: Record<string, string>;
26
+ apiReport?: boolean;
27
+ docModel?: boolean;
28
+ tsdocMetadata?: boolean;
26
29
  };
@@ -91,6 +91,21 @@
91
91
  "description": "Define environment variables that can be used in the source code. The value will be converted into a stringified JSON.",
92
92
  "additionalProperties": true
93
93
  },
94
+ "apiReport": {
95
+ "type": "boolean",
96
+ "description": "Should API Extractor generate an API Report file.",
97
+ "default": true
98
+ },
99
+ "docModel": {
100
+ "type": "boolean",
101
+ "description": "Should API Extractor generate an Doc Model markdown file.",
102
+ "default": true
103
+ },
104
+ "tsdocMetadata": {
105
+ "type": "boolean",
106
+ "description": "Should API Extractor generate an TSDoc Metadata file.",
107
+ "default": true
108
+ },
94
109
  "options": {
95
110
  "type": "object",
96
111
  "description": "Additional options to pass to tsup. See https://paka.dev/npm/tsup@7.2.0/api#d35d54aca71eb26e.",