Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Add 'npm run update-schema' shortcut
Browse files Browse the repository at this point in the history
Running './scripts/updateSchema.js' only works if you have babel-node installed globally.
'npm run', on the other hand, automatically includes installed node modules in the PATH.
  • Loading branch information
cletusw committed Aug 12, 2015
1 parent c6bacaf commit 0db164b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -25,7 +25,7 @@ If at any time you make changes to `data/schema.js`, stop the server,
regenerate `data/schema.json`, and restart the server:

```
./scripts/updateSchema.js
npm run update-schema
npm start
```

Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -5,7 +5,8 @@
"repository": "facebook/relay-starter-kit",
"version": "0.1.0",
"scripts": {
"start": "babel-node ./server.js"
"start": "babel-node ./server.js",
"update-schema": "babel-node ./scripts/updateSchema.js"
},
"devDependencies": {
"babel": "5.8.21",
Expand Down

0 comments on commit 0db164b

Please sign in to comment.