@d1g1tal/tsbuild 1.1.2 → 1.1.3

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.
@@ -1039,23 +1039,29 @@ var DeclarationBundler = class {
1039
1039
  const sorted = [];
1040
1040
  const visited = /* @__PURE__ */ new Set();
1041
1041
  const visiting = /* @__PURE__ */ new Set();
1042
+ const visitStack = [];
1042
1043
  const visit = (path) => {
1043
1044
  if (visited.has(path)) {
1044
1045
  return;
1045
1046
  }
1046
1047
  if (visiting.has(path)) {
1047
- Logger.warn(`Circular dependency detected: ${Paths.relative(this.options.currentDirectory, path)}`);
1048
+ const cyclePath = [...visitStack.slice(visitStack.indexOf(path)), path].map((p) => Paths.relative(this.options.currentDirectory, p)).join(" -> ");
1049
+ Logger.warn(`Circular dependency detected: ${cyclePath}`);
1048
1050
  return;
1049
1051
  }
1050
1052
  visiting.add(path);
1053
+ visitStack.push(path);
1051
1054
  const module = modules.get(path);
1052
1055
  if (!module) {
1056
+ visiting.delete(path);
1057
+ visitStack.pop();
1053
1058
  return;
1054
1059
  }
1055
1060
  for (const importPath of module.imports) {
1056
1061
  visit(importPath);
1057
1062
  }
1058
1063
  visiting.delete(path);
1064
+ visitStack.pop();
1059
1065
  visited.add(path);
1060
1066
  sorted.push(module);
1061
1067
  };
@@ -2000,7 +2006,7 @@ var _TypeScriptProject = class _TypeScriptProject {
2000
2006
  return Files.empty(this.buildConfiguration.outDir);
2001
2007
  }
2002
2008
  async build() {
2003
- Logger.header(`\u{1F680} tsbuild v${"1.1.2"}${this.configuration.compilerOptions.incremental ? " [incremental]" : ""}`);
2009
+ Logger.header(`\u{1F680} tsbuild v${"1.1.3"}${this.configuration.compilerOptions.incremental ? " [incremental]" : ""}`);
2004
2010
  try {
2005
2011
  const processes = [];
2006
2012
  const filesWereEmitted = await this.typeCheck();
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TypeScriptProject
3
- } from "./3F6EMFXF.js";
3
+ } from "./6CSXJIEW.js";
4
4
  import "./VMWNQL2J.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 "./3F6EMFXF.js";
5
+ } from "./6CSXJIEW.js";
6
6
  import "./VMWNQL2J.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.1.2");
33
+ console.log("1.1.3");
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.1.2",
3
+ "version": "1.1.3",
4
4
  "packageManager": "pnpm@10.29.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",
@@ -64,8 +64,8 @@
64
64
  "@typescript-eslint/eslint-plugin": "^8.56.1",
65
65
  "@typescript-eslint/parser": "^8.56.1",
66
66
  "@vitest/coverage-v8": "4.0.18",
67
- "eslint": "^10.0.1",
68
- "eslint-plugin-jsdoc": "^62.7.0",
67
+ "eslint": "^10.0.2",
68
+ "eslint-plugin-jsdoc": "^62.7.1",
69
69
  "fs-monkey": "^1.1.0",
70
70
  "memfs": "^4.56.10",
71
71
  "tsx": "^4.21.0",