sergeysova / styled-normalize

normalize.css for styled-components
https://npmjs.com/styled-normalize
MIT License
446 stars 19 forks source link

Why is the version a "const" ? #5

Closed yairEO closed 5 years ago

yairEO commented 6 years ago

Never seen that before. Any reason why it's not written as a comment at the top of the file?

sergeysova commented 6 years ago

One app requires, to show the version of normalize.css used. Also, some developers check the version of normalize in their code.

yairEO commented 6 years ago

so why aren't any of the million other NPM packages doing it? I just don't see any reason at all. if anyone wants to actively check the version in their code they can parse the package.json file, no need to pollute each script on the plant with a variable specifying its version.

sergeysova commented 6 years ago

You're right. But in previous releases version of styled-normalize was differed from the version of normalize.css

sergeysova commented 5 years ago

I'm going to remove version export in v8.0.4 (#9)

sergeysova commented 5 years ago

https://github.com/sergeysova/styled-normalize/releases/tag/v8.0.4