Skip to content

Commit db306cb

Browse files
committed
feat(package): add prepublish script
1 parent fe62237 commit db306cb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ node_modules
2828
# Users Environment Variables
2929
.lock-wscript
3030

31-
public/components
31+
public/components
32+
.npmignore

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "[WorkInProgress - ProofOfConcept] Unidirectional 1-N file syncing with history and local merging",
55
"scripts": {
66
"start": "./bin/filesync",
7-
"postinstall": "./node_modules/.bin/bower install"
7+
"postinstall": "./node_modules/.bin/bower install",
8+
"prepublish": "[ -r ~/.global.npmignore ] && cat ~/.global.npmignore > .npmignore;cat .gitignore >> .npmignore;"
89
},
910
"bin": {
1011
"filesync-relay": "./bin/filesync-relay",

0 commit comments

Comments
 (0)