Skip to content

Commit

Permalink
chore: attach builder
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Jun 8, 2019
1 parent f68c81e commit e35d909
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bench/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Table = require('cli-table2');
const makeDir = require('make-dir');
const mkdirp = require('mkdirp');
const tempy = require('tempy');
const fn = require('../lib');
const fn = require('../dist');

const bench = new Suite();
const wrap = Bluebird.promisify;
Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "mk-dirs",
"version": "1.0.0",
"description": "Make a directory and its parents, if necessary.",
"repository": "lukeed/mk-dirs",
"main": "lib/index.js",
"description": "Make a directory and its parents recursively",
"module": "dist/index.mjs",
"main": "dist/index.js",
"license": "MIT",
"files": [
"lib"
"dist"
],
"author": {
"name": "Luke Edwards",
Expand All @@ -17,15 +18,17 @@
"node": ">=4"
},
"scripts": {
"build": "bundt",
"bench": "node bench",
"precommit": "prettier --single-quote --use-tabs --print-width=100 --write '{lib,test}/*.js'",
"pretest": "npm run build",
"test": "tape test/*.js | tap-spec"
},
"keywords": [
"mkdir",
"mkdirp"
],
"devDependencies": {
"bundt": "^0.4.0",
"tap-spec": "^5.0.0",
"tape": "^4.10.2"
}
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js → src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function mkdirs(str, opts) {
});
}

module.exports = (str, opts) => {
export default (str, opts) => {
opts = opts || {};

if (process.platform === 'win32' && RGX.test(str.replace(path.parse(str).root, ''))) {
Expand Down
3 changes: 2 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const graceful = require('graceful-fs');
const Promise = require('bluebird');
const tempy = require('tempy');
const test = require('tape');
const fn = require('../lib');

const fn = require('../dist');

const co = Promise.coroutine;
const isDir = str => stats(str).isDirectory();
Expand Down

0 comments on commit e35d909

Please sign in to comment.