From 0db164bf6b82be31ff57beb2ebd7dd1628097685 Mon Sep 17 00:00:00 2001 From: Clayton Watts Date: Tue, 11 Aug 2015 20:26:38 -0600 Subject: [PATCH] Add 'npm run update-schema' shortcut 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. --- README.md | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf3500c..1923981 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/package.json b/package.json index 4bc38b5..4d997db 100644 --- a/package.json +++ b/package.json @@ -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",