Skip to content

Commit

Permalink
Use fast-glob as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
t27duck committed Jun 1, 2023
1 parent 86dc769 commit 93c2b12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"esbuild": "*"
},
"dependencies": {
"glob": "^10.0.0"
"fast-glob": "^3.2.12"
}
}
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path')
const { globSync } = require('glob')
const fg = require('fast-glob')

// This plugin adds support for globs like "./**/*" to import an entire directory
// We can use this to import arbitrary files or Stimulus controllers and ActionCable channels
Expand Down Expand Up @@ -27,7 +27,7 @@ const railsPlugin = (options = { matcher: /.+\..+/ }) => ({
// Get a list of all files in the directory
// [ 'accounts_controller.js', ... ]
let files = (
globSync(args.pluginData.path, {
fg.globSync(args.pluginData.path, {
cwd: args.pluginData.resolveDir,
})
)
Expand Down

0 comments on commit 93c2b12

Please sign in to comment.