Skip to content

replace join-path dependency with native path.join#546

Merged
bkendall merged 5 commits into
masterfrom
join-path
Jul 7, 2026
Merged

replace join-path dependency with native path.join#546
bkendall merged 5 commits into
masterfrom
join-path

Conversation

@bkendall

@bkendall bkendall commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Mirror of #532 which will let all the tests run :)

Closes #532.

@wiz-9635d3485b

wiz-9635d3485b Bot commented Jul 7, 2026

Copy link
Copy Markdown

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities -
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings 1 Medium 1 Low
Software Management Finding Software Management Findings -
Total 1 Medium 1 Low

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

@gemini-code-assist

Copy link
Copy Markdown

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@bkendall

bkendall commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

/gemini review

@bkendall
bkendall requested a review from joehan July 7, 2026 21:00

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the external join-path dependency and replaces its usage with the native Node.js path module. Feedback recommends using path.resolve instead of path.join in the CLI to properly handle absolute paths, and removing a now-redundant ESLint disable comment in the file system provider.

Comment thread src/cli/index.ts
Comment thread src/providers/fs.ts Outdated
Comment on lines +106 to +107
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
pathjoin(cwd, p, pathname),
path.join(cwd, p, pathname),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since path.join is typed to return a string, the @typescript-eslint/no-unsafe-return lint rule is no longer violated here. We can remove the redundant eslint-disable-next-line comment.

To also prevent any potential @typescript-eslint/no-unsafe-argument warnings (since cwd is typed as any from options), we can explicitly cast cwd as a string.

Suggested change
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
pathjoin(cwd, p, pathname),
path.join(cwd, p, pathname),
path.join(cwd as string, p, pathname),

@bkendall
bkendall merged commit c89b9bc into master Jul 7, 2026
24 checks passed
@bkendall
bkendall deleted the join-path branch July 8, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants