Add postinstall support message

This commit is contained in:
Tanner Linsley 2020-04-01 11:48:44 -06:00
parent 428382c17c
commit e0a6a04137
2 changed files with 12 additions and 1 deletions

View File

@ -29,7 +29,8 @@
"format": "prettier {src,src/**,examples/*/src,examples/*/src/**}/*.{md,js,jsx,tsx} --write",
"docz:build": "docz build",
"docz:dev": "docz dev",
"docz:serve": "docz build && docz serve"
"docz:serve": "docz build && docz serve",
"postinstall": "node ./scripts/postinstall.js || exit 0"
},
"files": [
"CHANGELOG.md",

10
scripts/postinstall.js Normal file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env node
var msg = `
👩💻 Use react-table at work?
🎉 Consider sponsoring/supporting its development at:
https://github.com/sponsors/tannerlinsley
`
console.log(msg)