From 5a40573d06c3ae63a46881a2b7f735aaad28b38a Mon Sep 17 00:00:00 2001 From: ozakione <29860391+OzakIOne@users.noreply.github.com> Date: Thu, 28 Sep 2023 16:05:07 +0200 Subject: [PATCH] refactor: remove deprecated node version check --- admin/scripts/generateExamples.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/admin/scripts/generateExamples.js b/admin/scripts/generateExamples.js index a7b648786cb3..1bb3646d63f7 100644 --- a/admin/scripts/generateExamples.js +++ b/admin/scripts/generateExamples.js @@ -10,16 +10,6 @@ import fs from 'fs-extra'; import shell from 'shelljs'; -const NODE_MAJOR_VERSION = parseInt( - /** @type {string} */ (process.versions.node.split('.')[0]), - 10, -); -if (NODE_MAJOR_VERSION < 16) { - throw new Error( - 'This generateExamples Docusaurus script requires at least Node.js 16 and npm 7. See why here: https://github.com/facebook/docusaurus/pull/5722#issuecomment-948847891', - ); -} - /** * Generate one example per init template * We use those generated examples as CodeSandbox projects