Skip to content

Commit

Permalink
refactor: remove deprecated node version check
Browse files Browse the repository at this point in the history
  • Loading branch information
OzakIOne committed Sep 28, 2023
1 parent 3d5a263 commit 5a40573
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions admin/scripts/generateExamples.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a40573

Please sign in to comment.