@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.7.30",
3
+ "version": "1.7.32",
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=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 : outExtension2,
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) {
@@ -474150,6 +474150,7 @@ var import_tsup = __toESM(require_dist5());
474150
474150
  function modernConfig({
474151
474151
  entry,
474152
474152
  outDir,
474153
+ projectRoot,
474153
474154
  tsconfig = "tsconfig.json",
474154
474155
  debug = false,
474155
474156
  external,
@@ -474174,6 +474175,7 @@ function modernConfig({
474174
474175
  "esnext"
474175
474176
  ] : ["esnext", "node18"],
474176
474177
  tsconfig,
474178
+ projectRoot,
474177
474179
  outDir: (0, import_devkit.joinPathFragments)(outDir, "dist", "modern"),
474178
474180
  silent: !verbose,
474179
474181
  metafile: true,
@@ -474199,6 +474201,7 @@ function modernConfig({
474199
474201
  function legacyConfig({
474200
474202
  entry,
474201
474203
  outDir,
474204
+ projectRoot,
474202
474205
  tsconfig = "tsconfig.json",
474203
474206
  debug = false,
474204
474207
  external,
@@ -474215,6 +474218,7 @@ function legacyConfig({
474215
474218
  format: platform !== "node" ? ["cjs", "esm", "iife"] : ["cjs", "esm"],
474216
474219
  target: ["es2022", "node18"],
474217
474220
  tsconfig,
474221
+ projectRoot,
474218
474222
  outDir: (0, import_devkit.joinPathFragments)(outDir, "dist", "legacy"),
474219
474223
  silent: !verbose,
474220
474224
  metafile: true,
@@ -474237,7 +474241,7 @@ function legacyConfig({
474237
474241
  outExtension
474238
474242
  };
474239
474243
  }
474240
- function getConfig(sourceRoot, {
474244
+ function getConfig(projectRoot, sourceRoot, {
474241
474245
  outputPath,
474242
474246
  tsConfig,
474243
474247
  debug,
@@ -474268,6 +474272,7 @@ function getConfig(sourceRoot, {
474268
474272
  modernConfig({
474269
474273
  entry,
474270
474274
  outDir: outputPath,
474275
+ projectRoot,
474271
474276
  tsconfig: tsConfig,
474272
474277
  debug,
474273
474278
  banner,
@@ -474281,6 +474286,7 @@ function getConfig(sourceRoot, {
474281
474286
  legacyConfig({
474282
474287
  entry,
474283
474288
  outDir: outputPath,
474289
+ projectRoot,
474284
474290
  tsconfig: tsConfig,
474285
474291
  debug,
474286
474292
  banner,
@@ -474321,7 +474327,7 @@ async function runExecutor(options, context) {
474321
474327
  try {
474322
474328
  console.log("\u{1F4E6} Running Storm build executor on the workspace");
474323
474329
  options.outputPath ??= "dist/{projectRoot}";
474324
- options.tsConfig ??= "{projectRoot}/tsconfig.json";
474330
+ options.tsConfig ??= "tsconfig.json";
474325
474331
  options.banner ??= process.env.STORM_FILE_BANNER;
474326
474332
  options.platform ??= "neutral";
474327
474333
  options.verbose ??= false;
@@ -474520,7 +474526,7 @@ ${(0, import_fs2.readFileSync)(file, "utf-8")}`,
474520
474526
  console.log(`\u{1F4E2} Tsup build message:
474521
474527
  `, event);
474522
474528
  });
474523
- const config = getConfig(sourceRoot, {
474529
+ const config = getConfig(projectRoot, sourceRoot, {
474524
474530
  ...options,
474525
474531
  banner: options.banner ? { js: `// ${options.banner}`, css: `/* ${options.banner} */` } : void 0,
474526
474532
  outputPath
@@ -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=6bjdeve7zvv2ofroihfhs7xrou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-EPAEWGCP.js
18386
+ // 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
18387
18387
  var require_chunk_EPAEWGCP = __commonJS({
18388
- "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) {
18388
+ "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) {
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=6bjdeve7zvv2ofroihfhs7xrou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GQ77QZBO.js
24322
+ // 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
24323
24323
  var require_chunk_GQ77QZBO = __commonJS({
24324
- "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) {
24324
+ "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) {
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=6bjdeve7zvv2ofroihfhs7xrou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-UIX4URMV.js
24603
+ // 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
24604
24604
  var require_chunk_UIX4URMV = __commonJS({
24605
- "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) {
24605
+ "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) {
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=6bjdeve7zvv2ofroihfhs7xrou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-7G76EW2R.js
25539
+ // 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
25540
25540
  var require_chunk_7G76EW2R = __commonJS({
25541
- "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) {
25541
+ "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) {
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=6bjdeve7zvv2ofroihfhs7xrou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
267224
+ // 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
267225
267225
  var require_dist5 = __commonJS({
267226
- "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) {
267226
+ "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) {
267227
267227
  "use strict";
267228
267228
  Object.defineProperty(exports, "__esModule", { value: true });
267229
267229
  function _interopRequireDefault(obj) {
@@ -268916,7 +268916,7 @@ var require_dist5 = __commonJS({
268916
268916
  target: options.target,
268917
268917
  banner,
268918
268918
  footer,
268919
- tsconfig: options.tsconfig,
268919
+ tsconfig: options.projectRoot ? _path2.default.join(options.projectRoot, options.tsconfig) : options.tsconfig,
268920
268920
  loader: {
268921
268921
  ".aac": "file",
268922
268922
  ".css": "file",
@@ -268965,7 +268965,7 @@ var require_dist5 = __commonJS({
268965
268965
  outExtension: options.legacyOutput ? void 0 : outExtension2,
268966
268966
  write: false,
268967
268967
  splitting,
268968
- logLevel: options.silent ? "error" : "info",
268968
+ logLevel: options.silent !== false ? "error" : "info",
268969
268969
  color: true,
268970
268970
  minify: options.minify === "terser" ? false : options.minify,
268971
268971
  minifyWhitespace: options.minifyWhitespace,
@@ -269499,11 +269499,11 @@ var require_dist5 = __commonJS({
269499
269499
  }
269500
269500
  return fileMapping;
269501
269501
  }
269502
- function emit(compilerOptions, tsconfig) {
269503
- let cwd = process.cwd();
269504
- let rawTsconfig = _bundlerequire.loadTsConfig.call(void 0, cwd, tsconfig);
269502
+ function emit(options, compilerOptions, tsconfig) {
269503
+ logger.info("tsc", `Trying to find ${tsconfig || "tsconfig.json"} in ${options.projectRoot}`);
269504
+ let rawTsconfig = _bundlerequire.loadTsConfig.call(void 0, options.projectRoot, tsconfig);
269505
269505
  if (!rawTsconfig) {
269506
- throw new Error(`Unable to find ${tsconfig || "tsconfig.json"} in ${cwd}`);
269506
+ throw new Error(`Unable to find ${tsconfig || "tsconfig.json"} in ${options.projectRoot}`);
269507
269507
  }
269508
269508
  let declarationDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0);
269509
269509
  let parsedTsconfig = _typescript2.default.parseJsonConfigFileContent(
@@ -269511,6 +269511,7 @@ var require_dist5 = __commonJS({
269511
269511
  ...rawTsconfig.data,
269512
269512
  compilerOptions: {
269513
269513
  ..._optionalChain([rawTsconfig, "access", (_16) => _16.data, "optionalAccess", (_17) => _17.compilerOptions]),
269514
+ ...compilerOptions,
269514
269515
  // Enable declaration emit and disable javascript emit
269515
269516
  noEmit: false,
269516
269517
  declaration: true,
@@ -269520,13 +269521,12 @@ var require_dist5 = __commonJS({
269520
269521
  }
269521
269522
  },
269522
269523
  _typescript2.default.sys,
269523
- tsconfig ? _path.dirname.call(void 0, tsconfig) : "./"
269524
+ tsconfig ? _path.join(options.projectRoot, _path.dirname.call(void 0, tsconfig)) : options.projectRoot
269524
269525
  );
269525
- let options = parsedTsconfig.options;
269526
- let host = _typescript2.default.createCompilerHost(options);
269526
+ let host = _typescript2.default.createCompilerHost(parsedTsconfig.options);
269527
269527
  let program = _typescript2.default.createProgram(
269528
269528
  parsedTsconfig.fileNames,
269529
- options,
269529
+ parsedTsconfig.options,
269530
269530
  host
269531
269531
  );
269532
269532
  let fileMapping = emitDtsFiles(program, host);
@@ -269540,7 +269540,7 @@ var require_dist5 = __commonJS({
269540
269540
  };
269541
269541
  logger.info("tsc", "Build start");
269542
269542
  const dtsOptions = options.experimentalDts;
269543
- const exports2 = emit(dtsOptions.compilerOptions, options.tsconfig);
269543
+ const exports2 = emit(options, dtsOptions.compilerOptions, options.tsconfig);
269544
269544
  logger.success("tsc", `\u26A1\uFE0F Build success in ${getDuration()}`);
269545
269545
  return exports2;
269546
269546
  } catch (error) {
@@ -276252,6 +276252,7 @@ var removeExtension = (filePath) => {
276252
276252
  function modernConfig({
276253
276253
  entry,
276254
276254
  outDir,
276255
+ projectRoot,
276255
276256
  tsconfig = "tsconfig.json",
276256
276257
  debug = false,
276257
276258
  external,
@@ -276276,6 +276277,7 @@ function modernConfig({
276276
276277
  "esnext"
276277
276278
  ] : ["esnext", "node18"],
276278
276279
  tsconfig,
276280
+ projectRoot,
276279
276281
  outDir: (0, import_devkit.joinPathFragments)(outDir, "dist", "modern"),
276280
276282
  silent: !verbose,
276281
276283
  metafile: true,
@@ -276301,6 +276303,7 @@ function modernConfig({
276301
276303
  function legacyConfig({
276302
276304
  entry,
276303
276305
  outDir,
276306
+ projectRoot,
276304
276307
  tsconfig = "tsconfig.json",
276305
276308
  debug = false,
276306
276309
  external,
@@ -276317,6 +276320,7 @@ function legacyConfig({
276317
276320
  format: platform !== "node" ? ["cjs", "esm", "iife"] : ["cjs", "esm"],
276318
276321
  target: ["es2022", "node18"],
276319
276322
  tsconfig,
276323
+ projectRoot,
276320
276324
  outDir: (0, import_devkit.joinPathFragments)(outDir, "dist", "legacy"),
276321
276325
  silent: !verbose,
276322
276326
  metafile: true,
@@ -276339,7 +276343,7 @@ function legacyConfig({
276339
276343
  outExtension
276340
276344
  };
276341
276345
  }
276342
- function getConfig(sourceRoot, {
276346
+ function getConfig(projectRoot, sourceRoot, {
276343
276347
  outputPath,
276344
276348
  tsConfig,
276345
276349
  debug,
@@ -276370,6 +276374,7 @@ function getConfig(sourceRoot, {
276370
276374
  modernConfig({
276371
276375
  entry,
276372
276376
  outDir: outputPath,
276377
+ projectRoot,
276373
276378
  tsconfig: tsConfig,
276374
276379
  debug,
276375
276380
  banner,
@@ -276383,6 +276388,7 @@ function getConfig(sourceRoot, {
276383
276388
  legacyConfig({
276384
276389
  entry,
276385
276390
  outDir: outputPath,
276391
+ projectRoot,
276386
276392
  tsconfig: tsConfig,
276387
276393
  debug,
276388
276394
  banner,
@@ -19,7 +19,7 @@
19
19
  "x-completion-type": "file",
20
20
  "x-completion-glob": "tsconfig.*.json",
21
21
  "x-priority": "important",
22
- "default": "{projectRoot}/tsconfig.json"
22
+ "default": "tsconfig.json"
23
23
  },
24
24
  "additionalEntryPoints": {
25
25
  "type": "array",