@d1g1tal/tsbuild 1.3.1 → 1.3.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.
@@ -2091,7 +2091,7 @@ var _TypeScriptProject = class _TypeScriptProject {
2091
2091
  return Files.empty(this.buildConfiguration.outDir);
2092
2092
  }
2093
2093
  async build() {
2094
- Logger.header(`\u{1F680} tsbuild v${"1.3.1"}${this.configuration.compilerOptions.incremental ? " [incremental]" : ""}`);
2094
+ Logger.header(`\u{1F680} tsbuild v${"1.3.2"}${this.configuration.compilerOptions.incremental ? " [incremental]" : ""}`);
2095
2095
  try {
2096
2096
  const processes = [];
2097
2097
  const filesWereEmitted = await this.typeCheck();
@@ -2322,7 +2322,11 @@ var _TypeScriptProject = class _TypeScriptProject {
2322
2322
  try {
2323
2323
  const pkgJson = JSON.parse(packageJsonContent);
2324
2324
  const outDir = typeScriptOptions.compilerOptions?.outDir ?? configResult.config.compilerOptions?.outDir ?? defaultOutDirectory;
2325
+ const hasExportFields = pkgJson.exports !== void 0 || pkgJson.bin !== void 0 || pkgJson.main !== void 0 || pkgJson.module !== void 0;
2325
2326
  inferredEntryPoints = inferEntryPoints(pkgJson, outDir);
2327
+ if (hasExportFields && inferredEntryPoints === void 0) {
2328
+ Logger.warn(`Could not infer entry points from package.json exports (output paths do not match outDir "${outDir}"). Add explicit entryPoints to your tsconfig.json tsbuild configuration.`);
2329
+ }
2326
2330
  } catch {
2327
2331
  }
2328
2332
  }
@@ -2389,7 +2393,7 @@ var _TypeScriptProject = class _TypeScriptProject {
2389
2393
  } else if (await Paths.isFile(resolvedPath)) {
2390
2394
  expandedEntryPoints[name] = resolvedPath;
2391
2395
  } else {
2392
- throw new ConfigurationError(`Entry point does not exist: ${entryPoint}`);
2396
+ throw new ConfigurationError(`Entry point does not exist: ${entryPoint}. Add explicit entryPoints to your tsconfig.json tsbuild configuration.`);
2393
2397
  }
2394
2398
  }
2395
2399
  return expandedEntryPoints;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TypeScriptProject
3
- } from "./KY7JTF4C.js";
3
+ } from "./QG4L36TP.js";
4
4
  import "./7FPDHUPW.js";
5
5
  export {
6
6
  TypeScriptProject
package/dist/tsbuild.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BuildError,
4
4
  TypeScriptProject
5
- } from "./KY7JTF4C.js";
5
+ } from "./QG4L36TP.js";
6
6
  import "./7FPDHUPW.js";
7
7
 
8
8
  // src/tsbuild.ts
@@ -30,7 +30,7 @@ if (help) {
30
30
  process.exit(0);
31
31
  }
32
32
  if (version) {
33
- console.log("1.3.1");
33
+ console.log("1.3.2");
34
34
  process.exit(0);
35
35
  }
36
36
  var typeScriptOptions = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d1g1tal/tsbuild",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "packageManager": "pnpm@10.30.3",
5
5
  "description": "A fast, ESM-only TypeScript build tool combining the TypeScript API for type checking and declaration generation, esbuild for bundling, and SWC for decorator metadata.",
6
6
  "type": "module",