Skip to content

Commit

Permalink
Switch to pnpm for DX and upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kaleabmelkie committed Nov 9, 2021
1 parent d8380b4 commit 9705981
Show file tree
Hide file tree
Showing 7 changed files with 1,061 additions and 78 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn format && git update-index --again
pnpm format && git update-index --again
26 changes: 0 additions & 26 deletions CHANGELOG.md

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ To get all Gravatar URLs:

Sometimes, we may not know which emails (and with what parameters) to include in `gatsby-config.js` ahead of time. So we can get the parsed URL using a method called `toUrl`:

```typescript
import React, { useMemo } from 'react'
```tsx
import { useMemo } from 'react'
import { toUrl } from 'gatsby-source-gravatar'

function Profile({ email }) {
Expand All @@ -109,4 +109,4 @@ Read up on [this article](https://medium.com/swlh/optimizing-gravatars-in-gatsby

Made with ♥ in Addis Ababa.

[MIT License](LICENSE) © 2020-2021 [Kaleab S. Melkie](https://bit.ly/kaleab).
[MIT License](LICENSE) © 2020-2021 [Kaleab S. Melkie](https://kaleabmelkie.com/).
17 changes: 7 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
"url": "https://github.com/kaleabmelkie/gatsby-source-gravatar/issues"
},
"homepage": "https://github.com/kaleabmelkie/gatsby-source-gravatar#readme",
"author": "Kaleab S. Melkie <kaleabmelkie@gmail.com> (https://bit.ly/kaleab)",
"author": "Kaleab S. Melkie <hi@kaleabmelkie.com> (https://kaleabmelkie.com/)",
"license": "MIT",
"private": false,
"scripts": {
"format": "prettier --write \"**/*.{tsx,ts,jsx,js,json,md,yml,graphql}\"",
"test": "echo \"No tests yet.\" && exit 0"
"format": "prettier --check --write \"**/*.{tsx,ts,jsx,js,json,md,yml,graphql}\"",
"test": "echo \"No tests yet.\" && exit 0",
"husky:install": "husky install"
},
"peerDependencies": {
"gatsby": "^2.0.0 || ^3.0.0"
Expand All @@ -33,13 +34,9 @@
"md5": "^2.3.0"
},
"devDependencies": {
"husky": "^6.0.0",
"prettier": "^2.2.1"
},
"husky": {
"hooks": {
"pre-commit": "yarn format && git update-index --again"
}
"husky": "^7.0.4",
"prettier": "^2.4.1",
"release": "^6.3.0"
},
"prettier": {
"endOfLine": "lf",
Expand Down
Loading

0 comments on commit 9705981

Please sign in to comment.