From 2bca239ba2d4d939cc06c82d25b07efe895efd42 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Tue, 21 Jan 2020 15:33:52 -0500 Subject: [PATCH] Can't include `build:legacy` in the parallel `dist` step The dist steps run in parallel, so build:legacy won't be finished before uglify tries to do it's thing --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ed464a700..1e4cf665f 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,11 @@ ], "license": "ISC", "scripts": { - "all": "npm-run-all -s clean build dist", + "all": "npm-run-all -s clean build build:legacy dist", "build": "node --max-old-space-size=4096 build.js", "build:legacy": "rollup --config rollup.config.legacy.js", "clean": "shx rm -f dist/*.js dist/*.map dist/*.css dist/img/*.svg", - "dist": "npm-run-all -p build:legacy dist:**", + "dist": "npm-run-all -p dist:**", "dist:mapillary": "shx mkdir -p dist/mapillary-js && shx cp -R node_modules/mapillary-js/dist/* dist/mapillary-js/", "dist:pannellum": "shx mkdir -p dist/pannellum-streetside && shx cp -R node_modules/pannellum/build/* dist/pannellum-streetside/", "dist:min": "uglifyjs dist/iD.legacy.js --compress --mangle --output dist/iD.min.js",