Fix npm scripts on OS X

BSD's mkdir doesn't support the long --parents flag.
This commit is contained in:
Will Rigby 2015-04-16 01:03:20 -04:00
parent 82e2a19749
commit 6e7588e9fc

View File

@ -37,8 +37,8 @@
"standard": "*"
},
"scripts": {
"build": "mkdir --parents dist && babel --optional=runtime --compact=true --source-maps --out-dir=dist/ src/",
"dev": "mkdir --parents dist && babel --watch --optional=runtime --compact=true --source-maps --out-dir=dist/ src/",
"build": "mkdir -p dist && babel --optional=runtime --compact=true --source-maps --out-dir=dist/ src/",
"dev": "mkdir -p dist && babel --watch --optional=runtime --compact=true --source-maps --out-dir=dist/ src/",
"prepublish": "npm build",
"test": "standard && npm run build && mocha 'dist/**/*.spec.js'",
"test-dev": "standard && mocha --watch --reporter=min 'dist/**/*.spec.js'"