Skip to content

Commit

Permalink
Require Node.js >=12.17 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
eltimn authored May 6, 2021
1 parent a7c00c4 commit 2014972
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ jobs:
node-version:
- 14
- 12
- 10
- 8
- 6
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand Down
11 changes: 6 additions & 5 deletions cli.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node
'use strict';
const meow = require('meow');
const makeDir = require('make-dir');

import meow from 'meow';
import makeDir from 'make-dir';

const cli = meow(`
Usage
Expand All @@ -18,7 +18,8 @@ const cli = meow(`
mode: {
type: 'string'
}
}
},
importMeta: import.meta
});

const {input: directories} = cli;
Expand All @@ -31,7 +32,7 @@ if (directories.length === 0) {
const options = {};

if (cli.flags.mode) {
options.mode = parseInt(cli.flags.mode, 8);
options.mode = Number.parseInt(cli.flags.mode, 8);
}

for (const directory of directories) {
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
"email": "[email protected]",
"url": "sindresorhus.com"
},
"type": "module",
"exports": "./cli.js",
"bin": {
"make-dir": "cli.js"
},
"engines": {
"node": ">=6"
"node": ">=12.17"
},
"scripts": {
"test": "xo && ava"
Expand Down Expand Up @@ -50,12 +52,12 @@
],
"dependencies": {
"make-dir": "^2.0.0",
"meow": "^5.0.0"
"meow": "^10.0.0"
},
"devDependencies": {
"ava": "^1.2.1",
"ava": "^3.15.0",
"execa": "^1.0.0",
"tempy": "^0.2.1",
"xo": "^0.24.0"
"xo": "^0.39.1"
}
}

0 comments on commit 2014972

Please sign in to comment.