From 675590f4f6bd82982d438448bd4186347c76564b Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 22 Dec 2023 21:18:09 +0100 Subject: [PATCH] Require Node.js 18 --- .github/funding.yml | 4 ---- .github/workflows/main.yml | 4 ++-- package.json | 31 +++++++++++++++---------------- 3 files changed, 17 insertions(+), 22 deletions(-) delete mode 100644 .github/funding.yml diff --git a/.github/funding.yml b/.github/funding.yml deleted file mode 100644 index df61ff5..0000000 --- a/.github/funding.yml +++ /dev/null @@ -1,4 +0,0 @@ -github: sindresorhus -open_collective: sindresorhus -tidelift: npm/ora -custom: https://sindresorhus.com/donate diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1ed55d5..a023591 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,8 +14,8 @@ jobs: - 18 - 16 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: npm install diff --git a/package.json b/package.json index f026169..31f88a9 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,13 @@ "url": "https://sindresorhus.com" }, "type": "module", - "exports": "./index.js", + "exports": { + "types": "./index.d.ts", + "default": "./index.js" + }, + "sideEffects": false, "engines": { - "node": ">=16" + "node": ">=18" }, "scripts": { "test": "xo && ava && tsd" @@ -41,25 +45,20 @@ "dependencies": { "chalk": "^5.3.0", "cli-cursor": "^4.0.0", - "cli-spinners": "^2.9.0", + "cli-spinners": "^2.9.2", "is-interactive": "^2.0.0", - "is-unicode-supported": "^1.3.0", - "log-symbols": "^5.1.0", - "stdin-discarder": "^0.1.0", - "string-width": "^6.1.0", + "is-unicode-supported": "^2.0.0", + "log-symbols": "^6.0.0", + "stdin-discarder": "^0.2.0", + "string-width": "^7.0.0", "strip-ansi": "^7.1.0" }, "devDependencies": { - "@types/node": "^20.4.5", + "@types/node": "^20.10.5", "ava": "^5.3.1", - "get-stream": "^7.0.1", + "get-stream": "^8.0.1", "transform-tty": "^1.0.11", - "tsd": "^0.28.1", - "xo": "^0.55.0" - }, - "xo": { - "rules": { - "@typescript-eslint/no-redundant-type-constituents": "off" - } + "tsd": "^0.30.0", + "xo": "^0.56.0" } }