Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
Update src/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: RasPhilCo <[email protected]>
  • Loading branch information
sumwatshade and RasPhilCo authored Apr 12, 2021
1 parent a11a234 commit b8c7b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function checkCWD() {
}
}
function checkNodeVersion() {
const root = pkgDir.sync(__dirname) || '..'
const root = pkgDir.sync(__dirname) || path.join(__dirname, '..')
const pjson = require(path.join(root, 'package.json'))
if (!semver.satisfies(process.versions.node, pjson.engines.node)) {
process.stderr.write(`WARNING\nWARNING Node version must be ${pjson.engines.node} to use this CLI\nWARNING Current node version: ${process.versions.node}\nWARNING\n`)
Expand Down

0 comments on commit b8c7b57

Please sign in to comment.