@storm-software/workspace-tools 1.7.30 → 1.7.32

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.7.31](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.7.30...workspace-tools-v1.7.31) (2023-11-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **workspace-tools:** Resovled issue with tsup dts tsconfig path ([eefb517](https://github.com/storm-software/storm-ops/commit/eefb517fc2369ab2411911c3810e51390a4689d9))
7
+
8
+ ## [1.7.30](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.7.29...workspace-tools-v1.7.30) (2023-11-20)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **workspace-tools:** Added code to default tsup build options and package.json path in api-extractor ([f79dbb1](https://github.com/storm-software/storm-ops/commit/f79dbb1d57ba7e2da054ae47483e98516739662b))
14
+
1
15
  ## [1.7.29](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.7.28...workspace-tools-v1.7.29) (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=6bjdeve7zvv2ofroihfhs7xrou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-EPAEWGCP.js
408393
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=ibquappyv47ndbwdas4vmkkf3u_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-EPAEWGCP.js
408394
408394
  var require_chunk_EPAEWGCP = __commonJS({
408395
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=6bjdeve7zvv2ofroihfhs7xrou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
408395
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=ibquappyv47ndbwdas4vmkkf3u_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/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=6bjdeve7zvv2ofroihfhs7xrou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GQ77QZBO.js
410042
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=ibquappyv47ndbwdas4vmkkf3u_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GQ77QZBO.js
410043
410043
  var require_chunk_GQ77QZBO = __commonJS({
410044
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=6bjdeve7zvv2ofroihfhs7xrou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
410044
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=ibquappyv47ndbwdas4vmkkf3u_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/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=6bjdeve7zvv2ofroihfhs7xrou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-UIX4URMV.js
410323
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=ibquappyv47ndbwdas4vmkkf3u_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-UIX4URMV.js
410324
410324
  var require_chunk_UIX4URMV = __commonJS({
410325
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=6bjdeve7zvv2ofroihfhs7xrou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
410325
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=ibquappyv47ndbwdas4vmkkf3u_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/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=6bjdeve7zvv2ofroihfhs7xrou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-7G76EW2R.js
411259
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=ibquappyv47ndbwdas4vmkkf3u_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-7G76EW2R.js
411260
411260
  var require_chunk_7G76EW2R = __commonJS({
411261
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=6bjdeve7zvv2ofroihfhs7xrou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
411261
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=ibquappyv47ndbwdas4vmkkf3u_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/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=6bjdeve7zvv2ofroihfhs7xrou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
465067
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=ibquappyv47ndbwdas4vmkkf3u_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
465068
465068
  var require_dist5 = __commonJS({
465069
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=6bjdeve7zvv2ofroihfhs7xrou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
465069
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=ibquappyv47ndbwdas4vmkkf3u_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
465070
465070
  "use strict";
465071
465071
  Object.defineProperty(exports, "__esModule", { value: true });
465072
465072
  function _interopRequireDefault(obj) {
@@ -466759,7 +466759,7 @@ var require_dist5 = __commonJS({
466759
466759
  target: options.target,
466760
466760
  banner,
466761
466761
  footer,
466762
- tsconfig: options.tsconfig,
466762
+ tsconfig: options.projectRoot ? _path2.default.join(options.projectRoot, options.tsconfig) : options.tsconfig,
466763
466763
  loader: {
466764
466764
  ".aac": "file",
466765
466765
  ".css": "file",
@@ -466808,7 +466808,7 @@ var require_dist5 = __commonJS({
466808
466808
  outExtension: options.legacyOutput ? void 0 : outExtension,
466809
466809
  write: false,
466810
466810
  splitting,
466811
- logLevel: options.silent ? "error" : "info",
466811
+ logLevel: options.silent !== false ? "error" : "info",
466812
466812
  color: true,
466813
466813
  minify: options.minify === "terser" ? false : options.minify,
466814
466814
  minifyWhitespace: options.minifyWhitespace,
@@ -467342,11 +467342,11 @@ var require_dist5 = __commonJS({
467342
467342
  }
467343
467343
  return fileMapping;
467344
467344
  }
467345
- function emit(compilerOptions, tsconfig) {
467346
- let cwd = process.cwd();
467347
- let rawTsconfig = _bundlerequire.loadTsConfig.call(void 0, cwd, tsconfig);
467345
+ function emit(options, compilerOptions, tsconfig) {
467346
+ logger.info("tsc", `Trying to find ${tsconfig || "tsconfig.json"} in ${options.projectRoot}`);
467347
+ let rawTsconfig = _bundlerequire.loadTsConfig.call(void 0, options.projectRoot, tsconfig);
467348
467348
  if (!rawTsconfig) {
467349
- throw new Error(`Unable to find ${tsconfig || "tsconfig.json"} in ${cwd}`);
467349
+ throw new Error(`Unable to find ${tsconfig || "tsconfig.json"} in ${options.projectRoot}`);
467350
467350
  }
467351
467351
  let declarationDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0);
467352
467352
  let parsedTsconfig = _typescript2.default.parseJsonConfigFileContent(
@@ -467354,6 +467354,7 @@ var require_dist5 = __commonJS({
467354
467354
  ...rawTsconfig.data,
467355
467355
  compilerOptions: {
467356
467356
  ..._optionalChain([rawTsconfig, "access", (_16) => _16.data, "optionalAccess", (_17) => _17.compilerOptions]),
467357
+ ...compilerOptions,
467357
467358
  // Enable declaration emit and disable javascript emit
467358
467359
  noEmit: false,
467359
467360
  declaration: true,
@@ -467363,13 +467364,12 @@ var require_dist5 = __commonJS({
467363
467364
  }
467364
467365
  },
467365
467366
  _typescript2.default.sys,
467366
- tsconfig ? _path.dirname.call(void 0, tsconfig) : "./"
467367
+ tsconfig ? _path.join(options.projectRoot, _path.dirname.call(void 0, tsconfig)) : options.projectRoot
467367
467368
  );
467368
- let options = parsedTsconfig.options;
467369
- let host = _typescript2.default.createCompilerHost(options);
467369
+ let host = _typescript2.default.createCompilerHost(parsedTsconfig.options);
467370
467370
  let program = _typescript2.default.createProgram(
467371
467371
  parsedTsconfig.fileNames,
467372
- options,
467372
+ parsedTsconfig.options,
467373
467373
  host
467374
467374
  );
467375
467375
  let fileMapping = emitDtsFiles(program, host);
@@ -467383,7 +467383,7 @@ var require_dist5 = __commonJS({
467383
467383
  };
467384
467384
  logger.info("tsc", "Build start");
467385
467385
  const dtsOptions = options.experimentalDts;
467386
- const exports2 = emit(dtsOptions.compilerOptions, options.tsconfig);
467386
+ const exports2 = emit(options, dtsOptions.compilerOptions, options.tsconfig);
467387
467387
  logger.success("tsc", `\u26A1\uFE0F Build success in ${getDuration()}`);
467388
467388
  return exports2;
467389
467389
  } catch (error) {