Skip to content

Commit

Permalink
Require Node.js 12
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 3, 2021
1 parent 6098375 commit cef21fb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 20 deletions.
3 changes: 0 additions & 3 deletions .github/funding.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 4 additions & 5 deletions cli.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
"email": "[email protected]",
"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"
Expand All @@ -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"
}
}

0 comments on commit cef21fb

Please sign in to comment.