Skip to content

Commit

Permalink
build: update node/npm version checking
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyan0205 committed Mar 16, 2019
1 parent ffa90f6 commit 190c955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/check-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ const versionRequirements = [
{
name: 'node',
currentVersion: semver.clean(process.version),
versionRequirement: packageConfig.engines.node
versionRequirement: packageConfig.engines ? packageConfig.engines : '>= 8.15.0'
}
]

if (shell.which('npm')) {
versionRequirements.push({
name: 'npm',
currentVersion: exec('npm --version'),
versionRequirement: packageConfig.engines.npm
versionRequirement: packageConfig.engines ? packageConfig.engines.npm : '>= 5.0.0'
})
}

Expand Down

0 comments on commit 190c955

Please sign in to comment.