https://github.com/danielpza/make-deps-exact
Remove version range from package.json
https://github.com/danielpza/make-deps-exact
javascript npm
Last synced: about 2 months ago
JSON representation
Remove version range from package.json
- Host: GitHub
- URL: https://github.com/danielpza/make-deps-exact
- Owner: danielpza
- Created: 2022-11-30T17:16:21.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-15T22:38:43.000Z (about 3 years ago)
- Last Synced: 2025-03-07T00:14:52.595Z (over 1 year ago)
- Topics: javascript, npm
- Language: JavaScript
- Homepage:
- Size: 1.11 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# make-deps-exact [](https://www.npmjs.com/package/make-deps-exact)
Removes version range from package.json
Currently it only supports reading from package-lock.json file to replace the package.json version
## Installation
```shell
npm install make-deps-exact
```
## Usage
Uses current working directory's package.json and package-lock.json
```
make-deps-exact [...opts] [...patterns]
--skip-git skip git+ssh protocol
-d,--dry do not write to package.json
-q,--quiet do not output changes to console
-h,--help show help message
```
Pass a list of expressions if you want to only remove the semver from certain packages and not every package:
```
make-deps-exact eslint* typescript
```
## Contributing
We follow the [conventional commits specs](https://www.conventionalcommits.org/en/v1.0.0/).
### Publishing new changes
```shell
npm run release
git push origin master --follow-tags
npm publish
```