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

Commit 90aa430

Browse files
committed
Attempt fix for Travis failure to deploy to NPM
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.
1 parent deb516c commit 90aa430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"testonly": "mocha $npm_package_options_mocha",
4848
"lint": "eslint src",
4949
"check": "flow check",
50-
"build": "rm -rf dist/* && babel src --ignore __tests__ --out-dir dist && npm run build:flow",
50+
"build": "rm -rf dist/* && node_modules/.bin/babel src --ignore __tests__ --out-dir dist && npm run build:flow",
5151
"build:flow": "find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/dist\\//g'`.flow; done",
5252
"watch": "node resources/watch.js",
5353
"cover": "babel-node node_modules/.bin/isparta cover --root src --report html node_modules/.bin/_mocha -- $npm_package_options_mocha",

0 commit comments

Comments
 (0)