From fba8340421ad42269d61c8a67498d0180a414c51 Mon Sep 17 00:00:00 2001 From: Dirk-Jan Rutten Date: Sun, 13 May 2018 16:44:28 +0200 Subject: [PATCH] Added pre-deploy steps to package.json --- package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index adb11d1..fdd739a 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,14 @@ "main": "index.js", "scripts": { "flow": "flow", - "build": "npm run build:babel && npm run build:flow", + "build": + "npm run build:babel && npm run build:flow && npm run build:package-json", "build:babel": "babel src/index.js --out-file index.js", - "build:babel:watch": "babel src/index.js --watch --out-file index.js", + "build:package-json": "node ./resources/clean-package-json.js", "build:flow": "cp src/index.js index.js.flow", "test": "jest", - "ci": "npm run flow check && npm t" + "ci": "npm run flow check && npm t", + "prepublishOnly": ". ./resources/prepublish.sh" }, "keywords": ["graphql", "graphql-relay"], "author": "Dirk-Jan Rutten",