Skip to content

Commit

Permalink
fix: use tinyglobby to drop 21 dependencies (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Jul 24, 2024
1 parent eb963e4 commit 390e466
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 7 deletions.
2 changes: 1 addition & 1 deletion fixtures/9-outside/spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// require a built-in module plus something from node_modules
const fs = require('fs')
const globby = require('globby')
const tinyglobby = require('tinyglobby')
65 changes: 63 additions & 2 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"debug": "^4.3.4",
"deep-equal": "^2.2.3",
"dependency-tree": "^11.0.0",
"globby": "^11.1.0",
"lazy-ass": "^2.0.3"
"lazy-ass": "^2.0.3",
"tinyglobby": "^0.2.0"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const dependencyTree = require('dependency-tree')
const path = require('path')
const { lazyAss: la } = require('lazy-ass')
const debug = require('debug')('spec-change')
const globby = require('globby')
const tinyglobby = require('tinyglobby')
const fs = require('fs')
const deepEqual = require('deep-equal')

Expand Down Expand Up @@ -195,7 +195,7 @@ function getDependsInFolder(options) {
}

const started = +new Date()
const files = globby.sync(fileMask, {
const files = tinyglobby.globSync([fileMask], {
cwd: folder,
absolute: true,
})
Expand Down

0 comments on commit 390e466

Please sign in to comment.