0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-03-11 02:15:57 -05:00

test release on npmjs as alpha tag (#2411)

* node 14 as minimum for cli

* Create perfect-emus-clean.md

* Update utils.spec.ts
This commit is contained in:
Juan Picado 2021-09-03 22:46:04 +02:00 committed by GitHub
parent b6e8554764
commit 2e3b9552cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View file

@ -0,0 +1,5 @@
---
'@verdaccio/cli': major
---
feat: node 14 as minimum for running cli

View file

@ -1,6 +1,6 @@
import semver from 'semver';
export const MIN_NODE_VERSION = '12';
export const MIN_NODE_VERSION = '14';
export function isVersionValid(version) {
return semver.satisfies(version, `>=${MIN_NODE_VERSION}`);

View file

@ -5,9 +5,5 @@ test('valid version node.js', () => {
});
test('is invalid version node.js', () => {
expect(isVersionValid('11.0.0')).toBeFalsy();
});
test('Node 12 should valid version node.js', () => {
expect(isVersionValid('12.0.0')).toBeTruthy();
expect(isVersionValid('13.0.0')).toBeFalsy();
});