Skip to content

Commit

Permalink
Correct globby import
Browse files Browse the repository at this point in the history
  • Loading branch information
skovhus committed May 14, 2022
1 parent b79bf3a commit a0cb8eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

import chalk from 'chalk'
import globby from 'globby'
import { globbySync } from 'globby'
import inquirer from 'inquirer'
import meow from 'meow'
import updateNotifier from 'update-notifier'
Expand Down Expand Up @@ -157,7 +157,7 @@ function supportFailure(supportedItems) {

function expandFilePathsIfNeeded(filesBeforeExpansion) {
const shouldExpandFiles = filesBeforeExpansion.some((file) => file.includes('*'))
return shouldExpandFiles ? globby.sync(filesBeforeExpansion) : filesBeforeExpansion
return shouldExpandFiles ? globbySync(filesBeforeExpansion) : filesBeforeExpansion
}

inquirer
Expand Down

0 comments on commit a0cb8eb

Please sign in to comment.