Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Attempt fix for Travis failure to deploy to NPM
Browse files Browse the repository at this point in the history
See:

- #385
- https://travis-ci.org/graphql/express-graphql/jobs/269612343#L872
- https://travis-ci.org/graphql/express-graphql/jobs/269621779

It can't find `babel`, which makes me wonder if the `$PATH` is not being
correctly set for some reason.

Previous release where the build worked fine; uses same "Trusty" Travis
environment, NPM version etc:

- https://travis-ci.org/graphql/express-graphql/jobs/258623862

Tested with local `npm run build` but will need to do another version
bump to see if Travis works with it.
  • Loading branch information
wincent committed Aug 29, 2017
1 parent deb516c commit 90aa430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"testonly": "mocha $npm_package_options_mocha",
"lint": "eslint src",
"check": "flow check",
"build": "rm -rf dist/* && babel src --ignore __tests__ --out-dir dist && npm run build:flow",
"build": "rm -rf dist/* && node_modules/.bin/babel src --ignore __tests__ --out-dir dist && npm run build:flow",
"build:flow": "find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/dist\\//g'`.flow; done",
"watch": "node resources/watch.js",
"cover": "babel-node node_modules/.bin/isparta cover --root src --report html node_modules/.bin/_mocha -- $npm_package_options_mocha",
Expand Down

0 comments on commit 90aa430

Please sign in to comment.