make-dir
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -39,3 +39,3 @@ 'use strict'; | ||
module.exports = (input, options) => Promise.resolve().then(() => { | ||
const makeDir = (input, options) => Promise.resolve().then(() => { | ||
checkPath(input); | ||
@@ -88,2 +88,5 @@ options = Object.assign({}, defaults, options); | ||
module.exports = makeDir; | ||
module.exports.default = makeDir; | ||
module.exports.sync = (input, options) => { | ||
@@ -90,0 +93,0 @@ checkPath(input); |
{ | ||
"name": "make-dir", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Make a directory and its parents if needed - Think `mkdir -p`", | ||
@@ -16,6 +16,7 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "xo && nyc ava" | ||
"test": "xo && nyc ava && tsd-check" | ||
}, | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
@@ -48,2 +49,4 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/graceful-fs": "^4.1.3", | ||
"@types/node": "^11.10.4", | ||
"ava": "^1.2.0", | ||
@@ -55,4 +58,5 @@ "codecov": "^3.0.0", | ||
"tempy": "^0.2.1", | ||
"tsd-check": "^0.3.0", | ||
"xo": "^0.24.0" | ||
} | ||
} |
9198
5
147
10