Skip to content

Commit

Permalink
try a different tactic for yarn postinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Feb 3, 2017
1 parent 8f48c28 commit d3b96b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ci/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ if [[ ! -d ~/.yarn ]]; then
curl -o- -L https://yarnpkg.com/install.sh | bash
fi

# ignore postinstall script to install style-spec deps using Yarn rather than NPM
~/.yarn/bin/yarn --ignore-scripts
cd js/style-spec && ~/.yarn/bin/yarn
PATH="~/.yarn/bin:$PATH"

yarn

if [ "$CIRCLE_BRANCH" == "master" ] || [ -n "$CIRCLE_TAG" ]; then
pip install --user --upgrade awscli
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@
"test-flow": "flow .",
"test-cov": "nyc --require=flow-remove-types/register --reporter=text-summary --reporter=lcov --cache run-s test-unit test-render test-query",
"prepublish": "in-publish && run-s build-dev build-min || not-in-publish",
"postinstall": "cd js/style-spec && npm install"
"postinstall": "cd js/style-spec && yarn || npm install"
}
}

0 comments on commit d3b96b4

Please sign in to comment.