diff --git a/.github/funding.yml b/.github/funding.yml deleted file mode 100644 index 1a630e9..0000000 --- a/.github/funding.yml +++ /dev/null @@ -1,3 +0,0 @@ -github: sindresorhus -open_collective: sindresorhus -custom: https://sindresorhus.com/donate diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c1870cf..3b8aa86 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,12 +10,12 @@ jobs: fail-fast: false matrix: node-version: + - 16 - 14 - 12 - - 10 steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - run: npm install diff --git a/cli.js b/cli.js index d572e4a..b24c339 100755 --- a/cli.js +++ b/cli.js @@ -1,9 +1,8 @@ #!/usr/bin/env node -'use strict'; -const meow = require('meow'); -const getStdin = require('get-stdin'); -const terminalImage = require('terminal-image'); -const fileType = require('file-type'); +import meow from 'meow'; +import getStdin from 'get-stdin'; +import terminalImage from 'terminal-image'; +import fileType from 'file-type'; const cli = meow(` Usage diff --git a/package.json b/package.json index 076e274..3893735 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,12 @@ "email": "sindresorhus@gmail.com", "url": "https://sindresorhus.com" }, + "type": "module", "bin": { - "image": "cli.js" + "image": "./cli.js" }, "engines": { - "node": ">=10" + "node": ">=12" }, "scripts": { "test": "xo && FORCE_COLOR=1 ava" @@ -37,15 +38,15 @@ "animation" ], "dependencies": { - "file-type": "^14.6.2", - "get-stdin": "^8.0.0", - "meow": "^7.0.0", - "terminal-image": "^1.2.0" + "file-type": "^16.3.0", + "get-stdin": "^9.0.0", + "meow": "^9.0.0", + "terminal-image": "^2.0.0" }, "devDependencies": { - "ava": "^2.4.0", - "execa": "^4.0.1", - "has-ansi": "^4.0.0", - "xo": "^0.32.1" + "ava": "^3.15.0", + "execa": "^5.0.0", + "has-ansi": "^5.0.0", + "xo": "^0.39.1" } }