Skip to content

Commit

Permalink
fix: replace bash-glob with fast-glob to omit cross-spawn from prod d…
Browse files Browse the repository at this point in the history
…eps tree
  • Loading branch information
antongolub committed Nov 29, 2024
1 parent b19870e commit 4b555d7
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 143 deletions.
6 changes: 3 additions & 3 deletions lib/lockfileV2/workspace.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const glob = require('bash-glob')
const glob = require('fast-glob')
const { sep, resolve } = require('path')

module.exports = {
Expand All @@ -15,8 +15,8 @@ module.exports = {
packages.map((p) => p.replace(/\/?$/, '/package.json')),
{
cwd: resolve(cwd),
realpath: true,
ignore: '**/node_modules/**'
absolute: true,
ignore: ['**/node_modules/**']
}
)
},
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@
},
"dependencies": {
"@yarnpkg/lockfile": "^1.1.0",
"bash-glob": "^2.0.0",
"fast-glob": "^3.3.2",
"colors": "1.4.0",
"commander": "^7.2.0",
"eol": "^0.9.1",
"eol": "^0.10.0",
"lodash": "4.17.21",
"nmtree": "^1.0.6",
"semver": "^7.6.0",
"semver": "^7.6.3",
"sort-object-keys": "^1.1.3"
},
"devDependencies": {
"nyc": "15.1.0",
"sinon": "^9.2.4",
"standard": "^16.0.4",
"tape": "^5.7.5",
"tape": "^5.9.0",
"rimraf": "^3.0.2"
}
}
Loading

0 comments on commit 4b555d7

Please sign in to comment.