From 5409f76f2a8a5fe24835b396979ce3b9b9acccb6 Mon Sep 17 00:00:00 2001 From: bluwy Date: Sun, 19 Jun 2022 22:58:43 +0800 Subject: [PATCH] feat: bump minimum node version to 14.18.0 --- .eslintrc.cjs | 4 ++-- docs/guide/index.md | 2 +- package.json | 2 +- packages/create-vite/README.md | 2 +- packages/create-vite/package.json | 2 +- packages/plugin-legacy/package.json | 2 +- packages/plugin-react/package.json | 2 +- packages/plugin-vue-jsx/package.json | 2 +- packages/plugin-vue/package.json | 2 +- packages/vite/package.json | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index f0b3be9e03a8bb..7411edbf846b98 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -137,13 +137,13 @@ module.exports = defineConfig({ 'node/no-unsupported-features/es-builtins': [ 'error', { - version: '>=14.6.0' + version: '>=14.18.0' } ], 'node/no-unsupported-features/node-builtins': [ 'error', { - version: '>=14.6.0' + version: '>=14.18.0' } ] } diff --git a/docs/guide/index.md b/docs/guide/index.md index 50d3a843c72dc3..3ced5c248c4b78 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -38,7 +38,7 @@ The supported template presets are: ## Scaffolding Your First Vite Project ::: tip Compatibility Note -Vite requires [Node.js](https://nodejs.org/en/) version >=14.6.0. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it. +Vite requires [Node.js](https://nodejs.org/en/) version >=14.18.0. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it. ::: With NPM: diff --git a/package.json b/package.json index d9923fa7b80bf4..25589352091283 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vite-monorepo", "private": true, "engines": { - "node": ">=14.6.0" + "node": ">=14.18.0" }, "homepage": "https://vitejs.dev/", "keywords": [ diff --git a/packages/create-vite/README.md b/packages/create-vite/README.md index 7c753d212bd302..dd00043cac4b09 100644 --- a/packages/create-vite/README.md +++ b/packages/create-vite/README.md @@ -3,7 +3,7 @@ ## Scaffolding Your First Vite Project > **Compatibility Note:** -> Vite requires [Node.js](https://nodejs.org/en/) version >=14.6.0. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it. +> Vite requires [Node.js](https://nodejs.org/en/) version >=14.18.0. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it. With NPM: diff --git a/packages/create-vite/package.json b/packages/create-vite/package.json index 72ff43d862de66..87ff4af835b962 100644 --- a/packages/create-vite/package.json +++ b/packages/create-vite/package.json @@ -14,7 +14,7 @@ ], "main": "index.js", "engines": { - "node": ">=14.6.0" + "node": ">=14.18.0" }, "repository": { "type": "git", diff --git a/packages/plugin-legacy/package.json b/packages/plugin-legacy/package.json index 721b5d2cfea5c7..23f5c022a63842 100644 --- a/packages/plugin-legacy/package.json +++ b/packages/plugin-legacy/package.json @@ -23,7 +23,7 @@ "prepublishOnly": "npm run build" }, "engines": { - "node": ">=14.6.0" + "node": ">=14.18.0" }, "repository": { "type": "git", diff --git a/packages/plugin-react/package.json b/packages/plugin-react/package.json index 40cf3e60d72d6a..f19cce545eb361 100644 --- a/packages/plugin-react/package.json +++ b/packages/plugin-react/package.json @@ -27,7 +27,7 @@ "prepublishOnly": "npm run build" }, "engines": { - "node": ">=14.6.0" + "node": ">=14.18.0" }, "repository": { "type": "git", diff --git a/packages/plugin-vue-jsx/package.json b/packages/plugin-vue-jsx/package.json index e4e483dda373f6..f8366ee5de8e03 100644 --- a/packages/plugin-vue-jsx/package.json +++ b/packages/plugin-vue-jsx/package.json @@ -23,7 +23,7 @@ "prepublishOnly": "npm run build" }, "engines": { - "node": ">=14.6.0" + "node": ">=14.18.0" }, "repository": { "type": "git", diff --git a/packages/plugin-vue/package.json b/packages/plugin-vue/package.json index 87a48f6ac6f6f3..0c8d19f74350e8 100644 --- a/packages/plugin-vue/package.json +++ b/packages/plugin-vue/package.json @@ -23,7 +23,7 @@ "prepublishOnly": "npm run build" }, "engines": { - "node": ">=14.6.0" + "node": ">=14.18.0" }, "repository": { "type": "git", diff --git a/packages/vite/package.json b/packages/vite/package.json index 8090b1feceb19e..ba62eeea7be1a7 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -31,7 +31,7 @@ "types" ], "engines": { - "node": ">=14.6.0" + "node": ">=14.18.0" }, "repository": { "type": "git",