Skip to content

Commit

Permalink
chore: replace find-up with find-up-simple (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Jul 5, 2024
1 parent 1b637e1 commit 5affd11
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion preferred-pm/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'
const findYarnWorkspaceRoot = require('find-yarn-workspace-root2')
const findUp = require('find-up')
const path = require('path')
const pathExists = require('path-exists')
const whichPM = require('which-pm')
Expand Down Expand Up @@ -39,6 +38,7 @@ module.exports = async function preferredPM (pkgPath) {
version: '*'
}
}
const { findUp } = await import('find-up-simple')
if (await findUp('pnpm-lock.yaml', { cwd: pkgPath })) {
return {
name: 'pnpm',
Expand Down
2 changes: 1 addition & 1 deletion preferred-pm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}
},
"dependencies": {
"find-up": "^5.0.0",
"find-up-simple": "^1.0.0",
"find-yarn-workspace-root2": "1.2.16",
"path-exists": "^4.0.0",
"which-pm": "workspace:^"
Expand Down

0 comments on commit 5affd11

Please sign in to comment.