Skip to content

Commit

Permalink
fix(postinstall): Fix postinstall not being included in npm files array
Browse files Browse the repository at this point in the history
Also changed formatting a bit for postinstall message

#7
  • Loading branch information
thibmaek committed Oct 25, 2018
1 parent fcc3a89 commit 5203544
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@
"format": "node src format",
"validate": "node src validate",
"precommit": "node src precommit",
"commit": "git-cz"
"commit": "git-cz",
"postinstall": "./postinstall.sh"
},
"files": [
"dist",
"babel.js",
"eslint.js",
"config.js",
"prettier.js",
"jest.js"
"jest.js",
"postinstall.sh"
],
"keywords": [],
"author": "In The Pocket <hello@inthepocket.com> (http://inthepocket.com)",
Expand Down
17 changes: 9 additions & 8 deletions postinstall.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ function main() {
log ""
log "To add support for eslint in your editor, create an .eslintrc file in your project root with the following contents"
log "
{
\"extends:\" \"./node_modules/@inthepocket/itp-react-scripts/dist/config/eslintrc.js\"
}
"
{
\"extends:\" \"./node_modules/@inthepocket/itp-react-scripts/dist/config/eslintrc.js\"
}
"
log ""
log "If your project uses babel you can use the included babel preset:"
log "
{
\"presets\": [\"@inthepocket/itp-react-scripts/babel\"]
}
"
{
\"presets\": [\"@inthepocket/itp-react-scripts/babel\"]
}
"
log ""
}
main

0 comments on commit 5203544

Please sign in to comment.