Skip to content

Commit dd3a982

Browse files
authored
Merge pull request #7 from plotly/fix-mkdirp
Change mkdir -p to mkdirp
2 parents a9b4bbb + afa1065 commit dd3a982

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"example:build:html": "cp example/src/index.html example/dist/index.html",
1818
"example:build:js": "browserify example/src/index.js -p [ css-modulesify --after autoprefixer --autoprefixer.browsers \"> 5%\" -o example/dist/styles.css ] -t [ babelify --presets [ es2015 react ] --plugins transform-class-properties ] -t brfs -g [ envify --NODE_ENV production ] -p bundle-collapser/plugin | uglifyjs --compress --mangle > example/dist/index.js",
1919
"example:build:assets": "rm -rf example/dist/assets && cp -r example/assets example/dist/assets",
20-
"example:build": "rm -rf example/dist && mkdir -p example/dist && npm run example:build:html && npm run example:build:js && npm run example:build:assets",
21-
"make:lib": "mkdir -p lib && babel src --out-dir=lib --ignore __tests__/*.js,__mocks__/*.js --presets=es2015,react --source-maps --plugins babel-plugin-add-module-exports && mv lib/* ./ && rmdir lib",
20+
"example:build": "rm -rf example/dist && mkdirp example/dist && npm run example:build:html && npm run example:build:js && npm run example:build:assets",
21+
"make:lib": "mkdirp lib && babel src --out-dir=lib --ignore __tests__/*.js,__mocks__/*.js --presets=es2015,react --source-maps --plugins babel-plugin-add-module-exports && mv lib/* ./ && rmdir lib",
2222
"clean": "rm -rf lib react-plotly.js react-plotly.js.map factory.js factory.js.map",
2323
"prepublishOnly": "npm run make:lib",
2424
"lint": "prettier --trailing-comma es5 --write \"{src,example/src}/**/*.js\" && eslint src",
@@ -62,6 +62,7 @@
6262
"jest": "^20.0.4",
6363
"json-beautify": "^1.0.1",
6464
"lint-staged": "^4.0.2",
65+
"mkdirp": "^0.5.1",
6566
"nodemon": "^1.11.0",
6667
"onetime": "^1.1.0",
6768
"prettier": "^1.5.3",

0 commit comments

Comments
 (0)