Skip to content

Commit

Permalink
try to add postinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
lcxfs1991 committed Jun 22, 2016
1 parent 9be73c4 commit eaff019
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 1 deletion.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
13 changes: 13 additions & 0 deletions bin/postinstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const execSync = require('child_process').execSync,
os = require('os');


switch(os.type()) {
case 'Darwin':
case 'Linux':
execSync('npm link');
break;
case 'Windows_NT':
execSync('npm link');
break;
}
Empty file modified libs/SteamerErrWarning.js
100644 → 100755
Empty file.
Empty file modified libs/SteamerLogger.js
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "steamer",
"main": "index.js",
"scripts": {
"postinstall": "npm link"
"postinstall": "node ./bin/postinstall.js"
},
"bin": {
"steamer": "./bin/steamer.js"
Expand Down

0 comments on commit eaff019

Please sign in to comment.