From 2008dedd03f98846b6bb4de253aa817f97dd573b Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sun, 29 Sep 2024 13:45:12 +0200 Subject: [PATCH] [core] Increase the minimum Node.js version support to 14.0.0 --- .browserslistrc | 10 +++++----- packages/pigment-css-nextjs-plugin/package.json | 5 ++++- packages/pigment-css-react/package.json | 3 +++ packages/pigment-css-unplugin/package.json | 5 ++++- packages/pigment-css-vite-plugin/package.json | 5 ++++- 5 files changed, 20 insertions(+), 8 deletions(-) diff --git a/.browserslistrc b/.browserslistrc index 6ab4c0c1..10f16e08 100644 --- a/.browserslistrc +++ b/.browserslistrc @@ -135,20 +135,20 @@ samsung 22 # snapshot of `npx browserslist "maintained node versions"` # On update check all #stable-snapshot markers [node] -node 12.0 +node 14.0 # same as `node` [coverage] -node 12.0 +node 14.0 # same as `node` [development] -node 12.0 +node 14.0 # same as `node` [test] -node 12.0 +node 14.0 # same as `node` [benchmark] -node 12.0 +node 14.0 diff --git a/packages/pigment-css-nextjs-plugin/package.json b/packages/pigment-css-nextjs-plugin/package.json index 915e6003..1df91d05 100644 --- a/packages/pigment-css-nextjs-plugin/package.json +++ b/packages/pigment-css-nextjs-plugin/package.json @@ -49,5 +49,8 @@ "zero-virtual.css", "package.json", "LICENSE" - ] + ], + "engines": { + "node": ">=14.0.0" + } } diff --git a/packages/pigment-css-react/package.json b/packages/pigment-css-react/package.json index 4e269a8a..17027ab0 100644 --- a/packages/pigment-css-react/package.json +++ b/packages/pigment-css-react/package.json @@ -200,6 +200,9 @@ "default": "./build/Grid.js" } }, + "engines": { + "node": ">=14.0.0" + }, "nx": { "targets": { "test": { diff --git a/packages/pigment-css-unplugin/package.json b/packages/pigment-css-unplugin/package.json index eb7a0fee..c53c9ba5 100644 --- a/packages/pigment-css-unplugin/package.json +++ b/packages/pigment-css-unplugin/package.json @@ -52,5 +52,8 @@ "build", "package.json", "LICENSE" - ] + ], + "engines": { + "node": ">=14.0.0" + } } diff --git a/packages/pigment-css-vite-plugin/package.json b/packages/pigment-css-vite-plugin/package.json index 0d105719..e93bcc3e 100644 --- a/packages/pigment-css-vite-plugin/package.json +++ b/packages/pigment-css-vite-plugin/package.json @@ -50,5 +50,8 @@ "build", "package.json", "LICENSE" - ] + ], + "engines": { + "node": ">=14.0.0" + } }