Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency ignore to v7 #9738

Merged
merged 2 commits into from
Mar 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions packages/codemods/bin/apply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@ function createApplyAction(transformName: string) {
const log = logger.for(transformName);

log.debug('Running with options:', { targetGlobPattern: patterns, ...options });
// @ts-expect-error Ignore types don't work?
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
const ig = ignore()
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
.add(['**/*.d.ts', '**/node_modules/**/*', '**/dist/**/*', ...(options.ignore ?? [])]);
const ig = ignore().add(['**/*.d.ts', '**/node_modules/**/*', '**/dist/**/*', ...(options.ignore ?? [])]);

log.debug('Running for paths:', Bun.inspect(patterns));
if (options.dry) {
Expand Down Expand Up @@ -108,7 +104,6 @@ function createApplyAction(transformName: string) {
for (const pattern of patterns) {
const glob = new Bun.Glob(pattern);
for await (const filepath of glob.scan('.')) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
if (ig.ignores(path.join(filepath))) {
log.warn('Skipping ignored file:', filepath);
result.skipped++;
Expand Down
2 changes: 1 addition & 1 deletion packages/codemods/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"dependencies": {
"chalk": "^5.3.0",
"commander": "^13.1.0",
"ignore": "^5.3.2",
"ignore": "^7.0.3",
"jscodeshift": "^17.2.0",
"strip-ansi": "^7.1.0",
"typescript": "^5.8.2",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading