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:
parent
b6e8554764
commit
2e3b9552cc
3 changed files with 7 additions and 6 deletions
5
.changeset/perfect-emus-clean.md
Normal file
5
.changeset/perfect-emus-clean.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@verdaccio/cli': major
|
||||
---
|
||||
|
||||
feat: node 14 as minimum for running cli
|
|
@ -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}`);
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue