Skip to content

Commit

Permalink
chore: Update contributors (and make it run on prepublishOnly)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdubroy committed Jan 7, 2022
1 parent a78fc60 commit 76c16ab
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
17 changes: 10 additions & 7 deletions packages/ohm-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@
"test": "ava && ava --config ava-ts.config.js test/test-typings.ts",
"test-watch": "ava --watch",
"pre-commit": "yarn run lint && yarn run build && yarn run test",
"prepublishOnly": "bash scripts/update-contributors",
"prepack": "cp ../../README.md . && yarn build",
"postpack": "rm README.md",
"unsafe-bootstrap": "bash scripts/bootstrap",
"version-package": "bash scripts/version",
"update-contributors": "bash scripts/update-contributors",
"watch": "webpack --mode=development --watch"
},
"license": "MIT",
Expand All @@ -52,18 +53,19 @@
"Tony Garnock-Jones <[email protected]>",
"Saketh Kasibatla <[email protected]>",
"Lionel Landwerlin <[email protected]>",
"Ray Toal <[email protected]>",
"Jason Merrill <[email protected]>",
"Ray Toal <[email protected]>",
"Yoshiki Ohshima <[email protected]>",
"stagas <[email protected]>",
"Jonathan Edwards <[email protected]>",
"Milan Lajtoš <[email protected]>",
"Neil Jewers <[email protected]>",
"megabuz <[email protected]>",
"Mike Niebling <(none)>",
"AngryPowman <[email protected]>",
"Leslie Ying <[email protected]>",
"Pierre Donias <[email protected]>",
"sfinnie <[email protected]>",
"Justin Chase <[email protected]>",
"Pierre Donias <[email protected]>",
"Ian Harris <[email protected]>",
"Daniel Tomlinson <[email protected]>",
"Stan Rozenraukh <[email protected]>",
"Stephan Seidt <[email protected]>",
Expand All @@ -77,9 +79,10 @@
"abego <[email protected]>",
"acslk <[email protected]>",
"codeZeilen <[email protected]>",
"owch <bowenrainyday@gmail.com>",
"AngryPowman <angrypowman@qq.com>",
"Luca Guzzon <[email protected]>",
"sfinnie <[email protected]>"
"Leslie Ying <[email protected]>",
"owch <[email protected]>"
],
"dependencies": {},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions packages/ohm-js/scripts/update-contributors
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

echo "👫 Updating the list of contributors..."
json -I -f "package.json" -e "this.contributors=[$(./scripts/get-contributors)]"

0 comments on commit 76c16ab

Please sign in to comment.