From 91d10d1beb29cc6bd2db767635d7696931f9e871 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Tue, 8 Nov 2022 16:48:18 +0700 Subject: [PATCH] Require Node.js 14 --- cli.js | 1 + package.json | 46 +++++++++++++++++++++++----------------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/cli.js b/cli.js index 1284a2dc..2d481d57 100755 --- a/cli.js +++ b/cli.js @@ -1,4 +1,5 @@ #!/usr/bin/env node +/* eslint-disable unicorn/prefer-top-level-await */ import process from 'node:process'; import getStdin from 'get-stdin'; import meow from 'meow'; diff --git a/package.json b/package.json index 802291d8..dac453ac 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,9 @@ "url": "https://sindresorhus.com" }, "type": "module", - "bin": "cli.js", + "bin": "./cli.js", "engines": { - "node": ">=12.20" + "node": ">=14.16" }, "scripts": { "test:clean": "find ./test -type d -name 'node_modules' -prune -not -path ./test/fixtures/project/node_modules -exec rm -rf '{}' +", @@ -58,53 +58,53 @@ "eslint-config-xo-typescript" ], "dependencies": { - "@eslint/eslintrc": "^1.3.0", - "@typescript-eslint/eslint-plugin": "^5.35.1", - "@typescript-eslint/parser": "^5.35.1", + "@eslint/eslintrc": "^1.3.3", + "@typescript-eslint/eslint-plugin": "^5.43.0", + "@typescript-eslint/parser": "^5.43.0", "arrify": "^3.0.0", - "cosmiconfig": "^7.0.1", + "cosmiconfig": "^7.1.0", "define-lazy-prop": "^3.0.0", - "eslint": "^8.22.0", + "eslint": "^8.27.0", "eslint-config-prettier": "^8.5.0", - "eslint-config-xo": "^0.42.0", - "eslint-config-xo-typescript": "^0.53.0", + "eslint-config-xo": "^0.43.1", + "eslint-config-xo-typescript": "^0.55.0", "eslint-formatter-pretty": "^4.1.0", "eslint-import-resolver-webpack": "^0.13.2", "eslint-plugin-ava": "^13.2.0", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-import": "^2.26.0", - "eslint-plugin-n": "^15.2.5", + "eslint-plugin-n": "^15.5.1", "eslint-plugin-no-use-extend-native": "^0.5.0", - "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-unicorn": "^42.0.0", + "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-unicorn": "^44.0.2", "esm-utils": "^4.1.0", - "find-cache-dir": "^3.3.2", + "find-cache-dir": "^4.0.0", "find-up": "^6.3.0", "get-stdin": "^9.0.0", - "globby": "^13.1.1", + "globby": "^13.1.2", "imurmurhash": "^0.1.4", "json-stable-stringify-without-jsonify": "^1.0.1", "json5": "^2.2.1", "lodash-es": "^4.17.21", - "meow": "^10.1.2", + "meow": "^11.0.0", "micromatch": "^4.0.5", "open-editor": "^4.0.0", - "prettier": "^2.6.2", - "semver": "^7.3.7", - "slash": "^4.0.0", + "prettier": "^2.7.1", + "semver": "^7.3.8", + "slash": "^5.0.0", "to-absolute-glob": "^2.0.2", - "typescript": "^4.7.3" + "typescript": "^4.9.3" }, "devDependencies": { - "ava": "^4.3.0", + "ava": "^5.1.0", "eslint-config-xo-react": "^0.27.0", - "eslint-plugin-react": "^7.31.0", - "eslint-plugin-react-hooks": "^4.5.0", + "eslint-plugin-react": "^7.31.10", + "eslint-plugin-react-hooks": "^4.6.0", "execa": "^6.1.0", "nyc": "^15.1.0", "proxyquire": "^2.1.3", "temp-write": "^5.0.0", - "webpack": "^5.74.0" + "webpack": "^5.75.0" }, "xo": { "ignores": [