diff --git a/package.json b/package.json index 4905aae8d..c81f3777f 100644 --- a/package.json +++ b/package.json @@ -15,10 +15,10 @@ "npm": ">=5" }, "scripts": { - "build": "node --max-old-space-size=8192 node_modules/rollup/bin/rollup -c", + "build": "npm run prep && node --max-old-space-size=8192 node_modules/rollup/bin/rollup -c", "prepublishOnly": "npm run build", "lint": "eslint -c .eslintrc --fix src && prettier --single-quote --write src/**/*.{js,jsx,json,css}", - "prepare": "npm run prep && npm run build", + "prepare": "npm run build", "predeploy": "cd example && npm install && npm run build", "deploy": "gh-pages -d example/build", "generateStaticSite": "./generateStaticSite.sh",