Skip to content

Commit

Permalink
🔧 Added --skip-worktree to postinstall
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
devgeeks committed Nov 13, 2017
1 parent c248b7f commit f203f52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -4,6 +4,7 @@
"description": "n. - A storage pile accumulated for future use",
"author": "tommy-carlos williams <tommy@devgeeks.org>",
"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",
Expand Down

0 comments on commit f203f52

Please sign in to comment.