Make data directory before creating licenses.json

#1
This commit is contained in:
casper 2021-06-01 15:12:34 +02:00
parent 00bc8aacc3
commit 0215ff28b0

View File

@ -10,7 +10,7 @@
"start-production": "NODE_ENV=production npm start", "start-production": "NODE_ENV=production npm start",
"lint": "eslint src/js", "lint": "eslint src/js",
"dist:prepare": "npm run dist:licenses && mkdir -p dist && rimraf dist/*", "dist:prepare": "npm run dist:licenses && mkdir -p dist && rimraf dist/*",
"dist:licenses": "node licenses-to-json.js . > data/licenses.json", "dist:licenses": "mkdir -p data && node licenses-to-json.js . > data/licenses.json",
"dist": "npm run dist:prepare && NODE_ENV=production webpack -p", "dist": "npm run dist:prepare && NODE_ENV=production webpack -p",
"analyze": "NODE_ENV=production ANALYZE_BUNDLE=true webpack -p" "analyze": "NODE_ENV=production ANALYZE_BUNDLE=true webpack -p"
}, },