Open ilan-schemoul opened 7 years ago
I think it's a great idea! Saving your dependencies is a key part of package management.
Another possible way to save the versions would be to add a key to the package.json
file, like so:
{
"name": "...",
"version": "1.0.0",
"dependencies": {
"react": "^0.23.0"
},
"npm-install-version": {
"material-ui": [
"0.2.0",
"@next"
]
}
}
@NitroBAY and @SidneyNemzer this is a great idea. I'd happily accept a PR adding this functionality!!
Hello, Wouldn't this would be a good idea to have a npm-versions.json (or whatever) to follow npm scheme because I may use this in production. In my use case I need to have both the
@next
and the current version of a UI framework. In any way inpackage.json
I may put"postinstall": "niv material-ui@next"
but being able to do aniv material-ui@next --save
so in anpm-versions.json
there will be as a dependencymaterial-ui@next
and then inpackage.json
one'd put"postinstall": "niv i
. But it's maybe a dumb idea.