Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

chore: set node 16 as minimum version #2806

Merged
merged 2 commits into from
May 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ git clone git@github.com:coilhq/web-monetization-projects.git
yarn
```

### Node >= 14
### Node >= 16

The TypeScript is compiled into es2020, so the minimum version of node required is v14 (currently the LTS)
The TypeScript is compiled into es2020 and the CI only tests 16 (currently the LTS) and on.
See [nvm](https://github.com/nvm-sh/nvm#install--update-script) for an easy way to manage multiple versions

### Visual Studio Code
Expand Down
2 changes: 1 addition & 1 deletion commands/yarn/check-node-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
factory: require => {
const version = process.version.replace(/[^0-9.]/g, '')
const major = Number(version.split('.')[0])
if (major < 14) {
if (major < 16 && !process.env.VERCEL) {
throw new Error(
`node version ${process.version} < minimum node version: v14`
)
Expand Down