Skip to content

Commit 904c30e

Browse files
codemod-com-botmohebifar
authored andcommitted
Run codemod: Change minimatch default imports to named imports
1 parent fc50f3b commit 904c30e

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

packages/build-utils/src/lambda.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'assert';
22
import Sema from 'async-sema';
33
import { ZipFile } from 'yazl';
4-
import minimatch from 'minimatch';
4+
import { minimatch } from 'minimatch';
55
import { readlink } from 'fs-extra';
66
import { isSymbolicLink, isDirectory } from './fs/download';
77
import streamToBuffer from './fs/stream-to-buffer';

packages/cli/src/commands/build/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from 'fs-extra';
22
import chalk from 'chalk';
33
import dotenv from 'dotenv';
44
import semver from 'semver';
5-
import minimatch from 'minimatch';
5+
import { minimatch } from 'minimatch';
66
import { join, normalize, relative, resolve, sep } from 'path';
77
import { frameworkList, type Framework } from '@vercel/frameworks';
88
import {

packages/cli/src/util/build/static-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import minimatch from 'minimatch';
1+
import { minimatch } from 'minimatch';
22
import { shouldServe as defaultShouldServe } from '@vercel/build-utils';
33
import type { BuildV2, Files, ShouldServe } from '@vercel/build-utils';
44

packages/cli/src/util/dev/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
} from '@vercel/build-utils';
1818
import { isStaticRuntime } from '@vercel/fs-detectors';
1919
import plural from 'pluralize';
20-
import minimatch from 'minimatch';
20+
import { minimatch } from 'minimatch';
2121

2222
import { Output } from '../output';
2323
import highlight from '../output/highlight';

packages/cli/src/util/dev/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import fetch from 'node-fetch';
77
import plural from 'pluralize';
88
import rawBody from 'raw-body';
99
import { listen } from 'async-listen';
10-
import minimatch from 'minimatch';
10+
import { minimatch } from 'minimatch';
1111
import httpProxy from 'http-proxy';
1212
import { randomBytes } from 'crypto';
1313
import serveHandler from 'serve-handler';

packages/client/src/utils/readdir-recursive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ THE SOFTWARE.
3030

3131
import fs from 'fs';
3232
import p from 'path';
33-
import minimatch from 'minimatch';
33+
import { minimatch } from 'minimatch';
3434

3535
function patternMatcher(pattern: string) {
3636
return function (path: string, stats: fs.Stats) {

packages/fs-detectors/src/detect-builders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import minimatch from 'minimatch';
1+
import { minimatch } from 'minimatch';
22
import { valid as validSemver } from 'semver';
33
import { parse as parsePath, extname } from 'path';
44
import type { Route, RouteWithSrc } from '@vercel/routing-utils';

0 commit comments

Comments
 (0)