From f203f52edecf3c3f3c9f13f6d1100a9767430cdb Mon Sep 17 00:00:00 2001 From: tommy-carlos williams Date: Tue, 14 Nov 2017 10:08:22 +1100 Subject: [PATCH] :wrench: Added --skip-worktree to postinstall This will run `git update-index --skip-worktree ./src/utils/config.js` after `npm install`. This keeps the local changes in `./src/utils/config.js` (such as ones API KEY) from being tracked and accidentally uploaded to GitHub, etc. This might help with #16, but it isn't a complete solution. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 2a8af1e..2f65715 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "n. - A storage pile accumulated for future use", "author": "tommy-carlos williams ", "scripts": { + "postinstall": "git update-index --skip-worktree ./src/utils/config.js", "dev": "node build/dev-server.js", "start": "node build/dev-server.js", "build": "node build/build.js",