Skip to content

Commit

Permalink
test release on npmjs as alpha tag (verdaccio#2411)
Browse files Browse the repository at this point in the history
* node 14 as minimum for cli

* Create perfect-emus-clean.md

* Update utils.spec.ts
  • Loading branch information
juanpicado authored Sep 3, 2021
1 parent b6e8554 commit 2e3b955
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/perfect-emus-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@verdaccio/cli': major
---

feat: node 14 as minimum for running cli
2 changes: 1 addition & 1 deletion packages/cli/src/utils.ts
Original file line number Diff line number Diff line change
@@ -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}`);
Expand Down
6 changes: 1 addition & 5 deletions packages/cli/test/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

0 comments on commit 2e3b955

Please sign in to comment.