Skip to content

Commit

Permalink
Require Node.js 6
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 15, 2018
1 parent e962394 commit 78472c0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -6,6 +6,5 @@ node_js:
- '10'
- '8'
- '6'
- '4'
after_success:
- './node_modules/.bin/nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov'
2 changes: 1 addition & 1 deletion appveyor.yml
@@ -1,8 +1,8 @@
environment:
matrix:
- nodejs_version: '10'
- nodejs_version: '8'
- nodejs_version: '6'
- nodejs_version: '4'
install:
- ps: Install-Product node $env:nodejs_version
- npm install --global npm@latest
Expand Down
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -26,6 +26,7 @@ module.exports = (input, opts) => Promise.resolve().then(() => {
checkPath(input);
opts = Object.assign({}, defaults, opts);

// TODO: Use util.promisify when targeting Node.js 8
const mkdir = pify(opts.fs.mkdir);
const stat = pify(opts.fs.stat);

Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -10,7 +10,7 @@
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
"node": ">=6"
},
"scripts": {
"test": "xo && nyc ava"
Expand Down Expand Up @@ -49,6 +49,6 @@
"nyc": "^11.3.0",
"path-type": "^3.0.0",
"tempy": "^0.2.1",
"xo": "^0.20.0"
"xo": "*"
}
}
2 changes: 1 addition & 1 deletion test/async.js
Expand Up @@ -75,7 +75,7 @@ test('handles null bytes in path', async t => {

test.serial('handles invalid path characters', async t => {
// We do this to please `nyc`
const platform = process.platform;
const {platform} = process;
Object.defineProperty(process, 'platform', {
value: 'win32'
});
Expand Down

0 comments on commit 78472c0

Please sign in to comment.