@storm-software/workspace-tools 1.11.1 → 1.12.1

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 CHANGED
@@ -1,3 +1,17 @@
1
+ # [1.12.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.11.1...workspace-tools-v1.12.0) (2023-11-25)
2
+
3
+
4
+ ### Features
5
+
6
+ * **workspace-tools:** Added the `includeSrc` option to the tsup build executor ([be66e22](https://github.com/storm-software/storm-ops/commit/be66e222af773fb741cfa719f883bfb921ff8a68))
7
+
8
+ ## [1.11.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.11.0...workspace-tools-v1.11.1) (2023-11-25)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **workspace-tools:** Update include paths in tsconfig used in tsup builder ([99e651d](https://github.com/storm-software/storm-ops/commit/99e651d42f770bc29e7e76f7533abe519e29b9a4))
14
+
1
15
  # [1.11.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.10.20...workspace-tools-v1.11.0) (2023-11-25)
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=ern7pjpfwxhrvg43ny7xz5rwvu_@microsoft+api-extractor@7.38.3_@swc+core@1._njdlrjkfcocb344y47h2ugwrmq/node_modules/tsup/dist/chunk-EPAEWGCP.js
408393
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=7jigj2h7ragpry4m2qhgbx4ykm_@microsoft+api-extractor@7.38.3_@swc+core@1._ycurayfw6gnzdv2rl6moedvaca/node_modules/tsup/dist/chunk-EPAEWGCP.js
408394
408394
  var require_chunk_EPAEWGCP = __commonJS({
408395
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=ern7pjpfwxhrvg43ny7xz5rwvu_@microsoft+api-extractor@7.38.3_@swc+core@1._njdlrjkfcocb344y47h2ugwrmq/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
408395
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=7jigj2h7ragpry4m2qhgbx4ykm_@microsoft+api-extractor@7.38.3_@swc+core@1._ycurayfw6gnzdv2rl6moedvaca/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=ern7pjpfwxhrvg43ny7xz5rwvu_@microsoft+api-extractor@7.38.3_@swc+core@1._njdlrjkfcocb344y47h2ugwrmq/node_modules/tsup/dist/chunk-GQ77QZBO.js
410042
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=7jigj2h7ragpry4m2qhgbx4ykm_@microsoft+api-extractor@7.38.3_@swc+core@1._ycurayfw6gnzdv2rl6moedvaca/node_modules/tsup/dist/chunk-GQ77QZBO.js
410043
410043
  var require_chunk_GQ77QZBO = __commonJS({
410044
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=ern7pjpfwxhrvg43ny7xz5rwvu_@microsoft+api-extractor@7.38.3_@swc+core@1._njdlrjkfcocb344y47h2ugwrmq/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
410044
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=7jigj2h7ragpry4m2qhgbx4ykm_@microsoft+api-extractor@7.38.3_@swc+core@1._ycurayfw6gnzdv2rl6moedvaca/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) {
@@ -410319,9 +410319,9 @@ var require_chunk_GQ77QZBO = __commonJS({
410319
410319
  }
410320
410320
  });
410321
410321
 
410322
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=ern7pjpfwxhrvg43ny7xz5rwvu_@microsoft+api-extractor@7.38.3_@swc+core@1._njdlrjkfcocb344y47h2ugwrmq/node_modules/tsup/dist/chunk-UIX4URMV.js
410322
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=7jigj2h7ragpry4m2qhgbx4ykm_@microsoft+api-extractor@7.38.3_@swc+core@1._ycurayfw6gnzdv2rl6moedvaca/node_modules/tsup/dist/chunk-UIX4URMV.js
410323
410323
  var require_chunk_UIX4URMV = __commonJS({
410324
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=ern7pjpfwxhrvg43ny7xz5rwvu_@microsoft+api-extractor@7.38.3_@swc+core@1._njdlrjkfcocb344y47h2ugwrmq/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
410324
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=7jigj2h7ragpry4m2qhgbx4ykm_@microsoft+api-extractor@7.38.3_@swc+core@1._ycurayfw6gnzdv2rl6moedvaca/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
410325
410325
  "use strict";
410326
410326
  Object.defineProperty(exports, "__esModule", { value: true });
410327
410327
  function _interopRequireWildcard(obj) {
@@ -411255,9 +411255,9 @@ var require_dist2 = __commonJS({
411255
411255
  }
411256
411256
  });
411257
411257
 
411258
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=ern7pjpfwxhrvg43ny7xz5rwvu_@microsoft+api-extractor@7.38.3_@swc+core@1._njdlrjkfcocb344y47h2ugwrmq/node_modules/tsup/dist/chunk-7G76EW2R.js
411258
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=7jigj2h7ragpry4m2qhgbx4ykm_@microsoft+api-extractor@7.38.3_@swc+core@1._ycurayfw6gnzdv2rl6moedvaca/node_modules/tsup/dist/chunk-7G76EW2R.js
411259
411259
  var require_chunk_7G76EW2R = __commonJS({
411260
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=ern7pjpfwxhrvg43ny7xz5rwvu_@microsoft+api-extractor@7.38.3_@swc+core@1._njdlrjkfcocb344y47h2ugwrmq/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
411260
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=7jigj2h7ragpry4m2qhgbx4ykm_@microsoft+api-extractor@7.38.3_@swc+core@1._ycurayfw6gnzdv2rl6moedvaca/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
411261
411261
  "use strict";
411262
411262
  Object.defineProperty(exports, "__esModule", { value: true });
411263
411263
  function _interopRequireDefault(obj) {
@@ -465063,9 +465063,9 @@ var require_chokidar = __commonJS({
465063
465063
  }
465064
465064
  });
465065
465065
 
465066
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=ern7pjpfwxhrvg43ny7xz5rwvu_@microsoft+api-extractor@7.38.3_@swc+core@1._njdlrjkfcocb344y47h2ugwrmq/node_modules/tsup/dist/index.js
465066
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=7jigj2h7ragpry4m2qhgbx4ykm_@microsoft+api-extractor@7.38.3_@swc+core@1._ycurayfw6gnzdv2rl6moedvaca/node_modules/tsup/dist/index.js
465067
465067
  var require_dist5 = __commonJS({
465068
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=ern7pjpfwxhrvg43ny7xz5rwvu_@microsoft+api-extractor@7.38.3_@swc+core@1._njdlrjkfcocb344y47h2ugwrmq/node_modules/tsup/dist/index.js"(exports) {
465068
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=7jigj2h7ragpry4m2qhgbx4ykm_@microsoft+api-extractor@7.38.3_@swc+core@1._ycurayfw6gnzdv2rl6moedvaca/node_modules/tsup/dist/index.js"(exports) {
465069
465069
  "use strict";
465070
465070
  Object.defineProperty(exports, "__esModule", { value: true });
465071
465071
  function _interopRequireDefault(obj) {
@@ -467294,13 +467294,13 @@ var require_dist5 = __commonJS({
467294
467294
  }
467295
467295
  return program.getRootFileNames().flatMap(extractExports);
467296
467296
  }
467297
- function emitDtsFiles(program, host) {
467297
+ function emitDtsFiles(program, host, options) {
467298
467298
  let fileMapping = /* @__PURE__ */ new Map();
467299
467299
  let writeFile = (fileName, text, writeByteOrderMark, onError, sourceFiles, data) => {
467300
467300
  const sourceFile = _optionalChain([sourceFiles, "optionalAccess", (_14) => _14[0]]);
467301
467301
  let sourceFileName = _optionalChain([sourceFile, "optionalAccess", (_15) => _15.fileName]);
467302
467302
  if (sourceFileName && !fileName.endsWith(".map")) {
467303
- const cwd = program.getCurrentDirectory();
467303
+ const cwd = options.workspaceRoot ? options.workspaceRoot : program.getCurrentDirectory();
467304
467304
  fileMapping.set(
467305
467305
  _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName, cwd),
467306
467306
  _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, fileName, cwd)
@@ -467315,6 +467315,7 @@ var require_dist5 = __commonJS({
467315
467315
  data
467316
467316
  );
467317
467317
  };
467318
+ logger.info("tsc", "Emitting DTS files");
467318
467319
  let emitResult = program.emit(void 0, writeFile, void 0, true);
467319
467320
  let diagnostics = _typescript2.default.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
467320
467321
  let diagnosticMessages = [];
@@ -467367,14 +467368,15 @@ var require_dist5 = __commonJS({
467367
467368
  }
467368
467369
  logger.info("tsc", "Getting temporary declaration directory");
467369
467370
  let declarationDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0, options);
467370
- logger.info("tsc", declarationDir);
467371
+ logger.info("tsc", `Temporary declaration directory: ${declarationDir}`);
467372
+ logger.info("tsc", "Raw tsconfig.json: ");
467373
+ logger.info("tsc", rawTsconfig);
467371
467374
  logger.info("tsc", "Parsing tsconfig.json");
467372
467375
  let parsedTsconfig = _typescript2.default.parseJsonConfigFileContent(
467373
467376
  {
467374
467377
  ...rawTsconfig.data,
467375
467378
  compilerOptions: {
467376
467379
  ...rawTsconfig.data.compilerOptions,
467377
- ...compilerOptions,
467378
467380
  // Enable declaration emit and disable javascript emit
467379
467381
  outDir: options.outDir,
467380
467382
  noEmit: false,
@@ -467383,25 +467385,49 @@ var require_dist5 = __commonJS({
467383
467385
  declarationDir,
467384
467386
  emitDeclarationOnly: true
467385
467387
  },
467388
+ files: [
467389
+ ...rawTsconfig.data.files ?? [],
467390
+ ...rawTsconfig.files ?? []
467391
+ ],
467386
467392
  include: [
467387
- ...rawTsconfig.data.include?.map?.((include) => _path.join(options.projectRoot, include)) ?? {}
467393
+ ...rawTsconfig.data.include?.map?.((include) => _path.join(
467394
+ options.projectRoot,
467395
+ include
467396
+ )) ?? []
467388
467397
  ],
467389
467398
  exclude: [
467390
- ...rawTsconfig.data.exclude?.map?.((exclude) => _path.join(options.projectRoot, exclude)) ?? {}
467399
+ ...rawTsconfig.data.exclude?.map?.((exclude) => _path.join(
467400
+ options.projectRoot,
467401
+ exclude
467402
+ )) ?? []
467391
467403
  ]
467392
467404
  },
467393
467405
  _typescript2.default.sys,
467394
467406
  options.workspaceRoot ? options.workspaceRoot : tsconfig ? _path.dirname.call(void 0, tsconfig) : options.projectRoot
467395
467407
  );
467396
467408
  logger.info("tsc", parsedTsconfig);
467397
- let host = _typescript2.default.createCompilerHost(parsedTsconfig.options);
467409
+ let tsOptions = parsedTsconfig.options;
467410
+ if (parsedTsconfig.raw.include) {
467411
+ tsOptions.include = [
467412
+ ...tsOptions.include ?? [],
467413
+ ...parsedTsconfig.raw.include
467414
+ ];
467415
+ }
467416
+ if (parsedTsconfig.raw.exclude) {
467417
+ tsOptions.exclude = [
467418
+ ...tsOptions.exclude ?? [],
467419
+ ...parsedTsconfig.raw.exclude
467420
+ ];
467421
+ }
467422
+ let host = _typescript2.default.createCompilerHost(tsOptions);
467398
467423
  let program = _typescript2.default.createProgram(
467399
467424
  parsedTsconfig.fileNames,
467400
- parsedTsconfig.options,
467425
+ tsOptions,
467401
467426
  host
467402
467427
  );
467403
- logger.info("tsc", "Emitting DTS files");
467404
- let fileMapping = emitDtsFiles(program, host);
467428
+ logger.info("tsc", "Emitting DTS files with the following options: ");
467429
+ logger.info("tsc", tsOptions);
467430
+ let fileMapping = emitDtsFiles(program, host, options);
467405
467431
  logger.info("tsc", fileMapping);
467406
467432
  return getExports(options, program, fileMapping);
467407
467433
  }