From aa80d01a6ead4f7838751f62cfaa79dfee1d4717 Mon Sep 17 00:00:00 2001 From: Paul English Date: Fri, 13 Sep 2024 13:54:56 +0100 Subject: [PATCH 1/3] feat: adds node-version files and sets default version to 18 --- .node-version | 1 + 1 file changed, 1 insertion(+) create mode 100644 .node-version diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..0828ab7 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +v18 \ No newline at end of file From b9e1102fea8f2246a08b7891cdd49abd56ac2f1b Mon Sep 17 00:00:00 2001 From: Paul English Date: Fri, 4 Oct 2024 12:49:16 +0100 Subject: [PATCH 2/3] chore: add npm and node engines to package.json 'node': '>=16.16.0', 'npm': '>=8.19.2' --- package-lock.json | 4 ++++ package.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/package-lock.json b/package-lock.json index 57595c2..61bfbcf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,6 +25,10 @@ }, "devDependencies": { "@wordpress/scripts": "^26.6.0" + }, + "engines": { + "node": ">=16.16.0", + "npm": ">=8.19.2" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index 52f9c22..fd185ba 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,10 @@ "description": "A plugin to help you style themes faster.", "version": "1.0.0", "author": "Big Bite", + "engines": { + "node": ">=16.16.0", + "npm": ">=8.19.2" + }, "prettier": "@wordpress/prettier-config", "scripts": { "watch:dev": "wp-scripts start", From 756254087421481defb0eafca3c0f0cfc49b81ea Mon Sep 17 00:00:00 2001 From: Paul English Date: Fri, 4 Oct 2024 12:52:03 +0100 Subject: [PATCH 3/3] style: fix tab spaces issue in package.json file --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index fd185ba..edcf721 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "version": "1.0.0", "author": "Big Bite", "engines": { - "node": ">=16.16.0", - "npm": ">=8.19.2" - }, + "node": ">=16.16.0", + "npm": ">=8.19.2" + }, "prettier": "@wordpress/prettier-config", "scripts": { "watch:dev": "wp-scripts start",