Skip to content

Commit

Permalink
Run codemod: Change minimatch default imports to named imports
Browse files Browse the repository at this point in the history
  • Loading branch information
codemod-com-bot authored and mohebifar committed Oct 21, 2024
1 parent 9746d93 commit 52f4db1
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/build-utils/src/lambda.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import assert from 'assert';
import Sema from 'async-sema';
import { ZipFile } from 'yazl';
import minimatch from 'minimatch';
import { minimatch } from 'minimatch';
import { readlink } from 'fs-extra';
import { isSymbolicLink, isDirectory } from './fs/download';
import streamToBuffer from './fs/stream-to-buffer';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import fs from 'fs-extra';
import chalk from 'chalk';
import dotenv from 'dotenv';
import semver from 'semver';
import minimatch from 'minimatch';
import { minimatch } from 'minimatch';
import { join, normalize, relative, resolve, sep } from 'path';
import { frameworkList, type Framework } from '@vercel/frameworks';
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/util/build/static-builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import minimatch from 'minimatch';
import { minimatch } from 'minimatch';
import { shouldServe as defaultShouldServe } from '@vercel/build-utils';
import type { BuildV2, Files, ShouldServe } from '@vercel/build-utils';

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/util/dev/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from '@vercel/build-utils';
import { isStaticRuntime } from '@vercel/fs-detectors';
import plural from 'pluralize';
import minimatch from 'minimatch';
import { minimatch } from 'minimatch';

import { Output } from '../output';
import highlight from '../output/highlight';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/util/dev/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import fetch from 'node-fetch';
import plural from 'pluralize';
import rawBody from 'raw-body';
import { listen } from 'async-listen';
import minimatch from 'minimatch';
import { minimatch } from 'minimatch';
import httpProxy from 'http-proxy';
import { randomBytes } from 'crypto';
import serveHandler from 'serve-handler';
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/utils/readdir-recursive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ THE SOFTWARE.

import fs from 'fs';
import p from 'path';
import minimatch from 'minimatch';
import { minimatch } from 'minimatch';

function patternMatcher(pattern: string) {
return function (path: string, stats: fs.Stats) {
Expand Down
2 changes: 1 addition & 1 deletion packages/fs-detectors/src/detect-builders.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import minimatch from 'minimatch';
import { minimatch } from 'minimatch';
import { valid as validSemver } from 'semver';
import { parse as parsePath, extname } from 'path';
import type { Route, RouteWithSrc } from '@vercel/routing-utils';
Expand Down

0 comments on commit 52f4db1

Please sign in to comment.