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(); });