From bcf9732040f7b2fcf66f4c367a35119c360f0a10 Mon Sep 17 00:00:00 2001 From: wancup <62416191+wancup@users.noreply.github.com> Date: Sat, 27 Jan 2024 15:11:30 +0900 Subject: [PATCH] Upgrade Node.js to v20 --- action.yml | 2 +- package-lock.json | 19 ++++++++++++++----- package.json | 2 +- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/action.yml b/action.yml index 297e156..66905f1 100644 --- a/action.yml +++ b/action.yml @@ -15,5 +15,5 @@ inputs: description: 'The version of StyLua to run. Use `latest` to pull the latest version' required: true runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' diff --git a/package-lock.json b/package-lock.json index 2ad3b95..6b1fc9b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ }, "devDependencies": { "@types/jest": "^29.0.3", - "@types/node": "^18.0.2", + "@types/node": "^20.11.7", "@types/semver": "^7.3.5", "@typescript-eslint/parser": "^5.0.0", "@vercel/ncc": "^0.36.1", @@ -1503,10 +1503,13 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.15.11", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.11.tgz", - "integrity": "sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q==", - "dev": true + "version": "20.11.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.7.tgz", + "integrity": "sha512-GPmeN1C3XAyV5uybAf4cMLWT9fDWcmQhZVtMFu7OR32WjrqGG+Wnk2V1d0bmtUyE/Zy1QJ9BxyiTih9z8Oks8A==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@types/prettier": { "version": "2.7.2", @@ -6167,6 +6170,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "node_modules/universal-user-agent": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", diff --git a/package.json b/package.json index e2367b1..2deb0c8 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ }, "devDependencies": { "@types/jest": "^29.0.3", - "@types/node": "^18.0.2", + "@types/node": "^20.11.7", "@types/semver": "^7.3.5", "@typescript-eslint/parser": "^5.0.0", "@vercel/ncc": "^0.36.1",