From c2e988d135c27bbf7a3a186e917bbde4721d614c Mon Sep 17 00:00:00 2001 From: Gemma Leigh Date: Fri, 14 Jul 2017 12:24:18 +0100 Subject: [PATCH] Replace postinstall script with Heroku's postbuild script The postinstall script is causing the npm deployment step to fail. https://travis-ci.org/alphagov/govuk_elements/jobs/253564908#L384 Since this script was added to build assets for Heroku, instead use a heroku specific build step. Instead run heroku-postbuild which runs after Heroku installs dependencies. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4446fae0e..e8ff766b9 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,8 @@ "pretest": "npm run lint --silent", "test": "standard && gulp test", "lint": "bundle && bundle exec govuk-lint-sass assets/sass/elements/", - "postinstall": "gulp build", - "start": "gulp develop" + "start": "gulp develop", + "heroku-postbuild": "gulp build" }, "standard": { "ignore": [