Skip to content

Commit

Permalink
fix(npm): move glamor to a dev dependency (#21)
Browse files Browse the repository at this point in the history
moving glamor to a dev dependency avoids a bug where jest-glamor-react uses a different instance of
glamor than the parent package resulting in an empty stylesheet.
  • Loading branch information
hjylewis authored and Kent C. Dodds committed Oct 5, 2017
1 parent a88ab95 commit 84ace7c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@
"avatar_url": "https://avatars0.githubusercontent.com/u/27758243?v=4",
"profile": "https://github.com/megaurav2002",
"contributions": []
},
{
"login": "hjylewis",
"name": "Henry Lewis",
"avatar_url": "https://avatars3.githubusercontent.com/u/6494737?v=4",
"profile": "http://hjylewis.com/",
"contributions": [
"bug",
"code"
]
}
]
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Jest utilities for Glamor and React
[![downloads][downloads-badge]][npm-stat]
[![MIT License][license-badge]][LICENSE]

[![All Contributors](https://img.shields.io/badge/all_contributors-5-orange.svg?style=flat-square)](#contributors)
[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors)
[![PRs Welcome][prs-badge]][prs]
[![Donate][donate-badge]][donate]
[![Code of Conduct][coc-badge]][coc]
Expand Down Expand Up @@ -220,8 +220,8 @@ I'm unaware of other solutions. Please file a PR if you know of any!
Thanks goes to these people ([emoji key][emojis]):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
| [<img src="https://avatars1.githubusercontent.com/u/1308971?v=3" width="100px;"/><br /><sub>Michele Bertoli</sub>](http://michele.berto.li)<br />[πŸ’»](https://github.com/kentcdodds/jest-glamor-react/commits?author=MicheleBertoli "Code") [πŸ“–](https://github.com/kentcdodds/jest-glamor-react/commits?author=MicheleBertoli "Documentation") [⚠️](https://github.com/kentcdodds/jest-glamor-react/commits?author=MicheleBertoli "Tests") | [<img src="https://avatars.githubusercontent.com/u/1500684?v=3" width="100px;"/><br /><sub>Kent C. Dodds</sub>](https://kentcdodds.com)<br />[πŸ’»](https://github.com/kentcdodds/jest-glamor-react/commits?author=kentcdodds "Code") [πŸ“–](https://github.com/kentcdodds/jest-glamor-react/commits?author=kentcdodds "Documentation") [πŸš‡](#infra-kentcdodds "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/kentcdodds/jest-glamor-react/commits?author=kentcdodds "Tests") | [<img src="https://avatars2.githubusercontent.com/u/11481355?v=3" width="100px;"/><br /><sub>Mitchell Hamilton</sub>](https://hamil.town)<br />[πŸ’»](https://github.com/kentcdodds/jest-glamor-react/commits?author=mitchellhamilton "Code") [πŸ“–](https://github.com/kentcdodds/jest-glamor-react/commits?author=mitchellhamilton "Documentation") [⚠️](https://github.com/kentcdodds/jest-glamor-react/commits?author=mitchellhamilton "Tests") | [<img src="https://avatars2.githubusercontent.com/u/11878516?v=3" width="100px;"/><br /><sub>jhurley23</sub>](https://github.com/jhurley23)<br />[πŸ’»](https://github.com/kentcdodds/jest-glamor-react/commits?author=jhurley23 "Code") [⚠️](https://github.com/kentcdodds/jest-glamor-react/commits?author=jhurley23 "Tests") [πŸ“–](https://github.com/kentcdodds/jest-glamor-react/commits?author=jhurley23 "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/27758243?v=4" width="100px;"/><br /><sub>Gaurav Talwar</sub>](https://github.com/megaurav2002)<br /> |
| :---: | :---: | :---: | :---: | :---: |
| [<img src="https://avatars1.githubusercontent.com/u/1308971?v=3" width="100px;"/><br /><sub>Michele Bertoli</sub>](http://michele.berto.li)<br />[πŸ’»](https://github.com/kentcdodds/jest-glamor-react/commits?author=MicheleBertoli "Code") [πŸ“–](https://github.com/kentcdodds/jest-glamor-react/commits?author=MicheleBertoli "Documentation") [⚠️](https://github.com/kentcdodds/jest-glamor-react/commits?author=MicheleBertoli "Tests") | [<img src="https://avatars.githubusercontent.com/u/1500684?v=3" width="100px;"/><br /><sub>Kent C. Dodds</sub>](https://kentcdodds.com)<br />[πŸ’»](https://github.com/kentcdodds/jest-glamor-react/commits?author=kentcdodds "Code") [πŸ“–](https://github.com/kentcdodds/jest-glamor-react/commits?author=kentcdodds "Documentation") [πŸš‡](#infra-kentcdodds "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/kentcdodds/jest-glamor-react/commits?author=kentcdodds "Tests") | [<img src="https://avatars2.githubusercontent.com/u/11481355?v=3" width="100px;"/><br /><sub>Mitchell Hamilton</sub>](https://hamil.town)<br />[πŸ’»](https://github.com/kentcdodds/jest-glamor-react/commits?author=mitchellhamilton "Code") [πŸ“–](https://github.com/kentcdodds/jest-glamor-react/commits?author=mitchellhamilton "Documentation") [⚠️](https://github.com/kentcdodds/jest-glamor-react/commits?author=mitchellhamilton "Tests") | [<img src="https://avatars2.githubusercontent.com/u/11878516?v=3" width="100px;"/><br /><sub>jhurley23</sub>](https://github.com/jhurley23)<br />[πŸ’»](https://github.com/kentcdodds/jest-glamor-react/commits?author=jhurley23 "Code") [⚠️](https://github.com/kentcdodds/jest-glamor-react/commits?author=jhurley23 "Tests") [πŸ“–](https://github.com/kentcdodds/jest-glamor-react/commits?author=jhurley23 "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/27758243?v=4" width="100px;"/><br /><sub>Gaurav Talwar</sub>](https://github.com/megaurav2002)<br /> | [<img src="https://avatars3.githubusercontent.com/u/6494737?v=4" width="100px;"/><br /><sub>Henry Lewis</sub>](http://hjylewis.com/)<br />[πŸ›](https://github.com/kentcdodds/jest-glamor-react/issues?q=author%3Ahjylewis "Bug reports") [πŸ’»](https://github.com/kentcdodds/jest-glamor-react/commits?author=hjylewis "Code") |
| :---: | :---: | :---: | :---: | :---: | :---: |
<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors][all-contributors] specification. Contributions of any kind welcome!
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"dependencies": {
"chalk": "^1.1.3",
"css": "^2.2.1",
"glamor": "^2.20.24",
"jest-diff": "^21.0.2",
"jest-snapshot": "^21.0.2",
"strip-ansi": "^3.0.1"
Expand All @@ -40,6 +39,7 @@
"enzyme-to-json": "^1.5.0",
"eslint": "^3.17.0",
"eslint-config-kentcdodds": "^12.0.0",
"glamor": "^2.20.24",
"husky": "^0.13.2",
"jest-cli": "^21.0.2",
"lint-staged": "^3.3.1",
Expand Down

0 comments on commit 84ace7c

Please sign in to comment.