From 2e3b9552cc9b36b4136903e5f781d7e7bc5e701c Mon Sep 17 00:00:00 2001 From: Juan Picado Date: Fri, 3 Sep 2021 22:46:04 +0200 Subject: [PATCH] test release on npmjs as alpha tag (#2411) * node 14 as minimum for cli * Create perfect-emus-clean.md * Update utils.spec.ts --- .changeset/perfect-emus-clean.md | 5 +++++ packages/cli/src/utils.ts | 2 +- packages/cli/test/utils.spec.ts | 6 +----- 3 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 .changeset/perfect-emus-clean.md diff --git a/.changeset/perfect-emus-clean.md b/.changeset/perfect-emus-clean.md new file mode 100644 index 000000000000..f9dadda69f8d --- /dev/null +++ b/.changeset/perfect-emus-clean.md @@ -0,0 +1,5 @@ +--- +'@verdaccio/cli': major +--- + +feat: node 14 as minimum for running cli diff --git a/packages/cli/src/utils.ts b/packages/cli/src/utils.ts index cbb2ab5b7b1c..c991ba0bfe51 100644 --- a/packages/cli/src/utils.ts +++ b/packages/cli/src/utils.ts @@ -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}`); diff --git a/packages/cli/test/utils.spec.ts b/packages/cli/test/utils.spec.ts index 54add97d7f66..e7c027bd4651 100644 --- a/packages/cli/test/utils.spec.ts +++ b/packages/cli/test/utils.spec.ts @@ -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(); });