Skip to content

Commit 7a84880

Browse files
committed
feat: the relative path argument caused a globbing failure
1 parent b059cb2 commit 7a84880

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# circular-dependency-scanner
22

3+
## 3.0.1
4+
5+
### Patch Changes
6+
7+
- fix: the relative path argument caused a globbing failure.
8+
39
## 3.0.0
410

511
### Major Changes
@@ -8,11 +14,10 @@
814

915
Since v3, this tool only support **Node.js v20+**.
1016

11-
The **graph detection core algorithm** is implemented in **`rust`** instead, to *save runtime memory and make it much faster*, that is compiled to **`wasm`** and integrated.
17+
The **graph detection core algorithm** is implemented in **`rust`** instead, to _save runtime memory and make it much faster_, that is compiled to **`wasm`** and integrated.
1218

1319
Prefer to check CHANGELOG history for more information.
1420

15-
1621
## 3.0.0-beta.0
1722

1823
### Major Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "circular-dependency-scanner",
33
"type": "module",
4-
"version": "3.0.0",
4+
"version": "3.0.1",
55
"packageManager": "pnpm@10.24.0",
66
"description": "Out-of-box and zero configuration circular dependencies detector, with both JavaScript API and Command Line Tool.",
77
"author": "情绪羊 <emosheep@qq.com>",

src/circle.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,15 @@ export async function circularDepsDetect(
5959

6060
/* ----------- Parameters pre-handle start ----------- */
6161

62+
cwd = path.resolve(cwd);
6263
ignore = [...new Set([...ignore, '**/{.git,node_modules,dist}/**'])];
6364

6465
/* ------------ Parameters pre-handle end ------------ */
6566

6667
const globPattern = `**/*.{${extensions.join(',')}}`;
6768

6869
logger.info(
69-
`Working directory is ${chalk.underline.cyan(path.resolve(cwd))}`,
70+
`Working directory is ${chalk.underline.cyan(cwd)}`,
7071
);
7172
logger.info(`Ignored paths: ${ignore.map((v) => chalk.yellow(v)).join(',')}`);
7273

0 commit comments

Comments
 (0)