0.2.2 • Published 9 months ago

freeze-package-versions v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

GitHub release (latest by date)

freeze package versions

About The Project

fix package.json dependecy versions by freezing them. sometimes when working on a project apon cloning and installing the dependencies of your project, there is chance that a dependency updates and ruins your project. but there is no easy way of finding the currect version of that dependency for you. it is recomended to freeze all your dependecy versions with a valid lock file (package-lock.json or yarn.lock), and with this package you can automatically do it!

Usage

installation

install cli by the following command:

npm install -g freeze-package-versions

running

just run it by (locally)

freeze-package-versions

(globaly)

npx freeze-package-versions

if you have multiple lock files you will be prompt to choose one. it also supports monorepos so if you have nested projectss there is no need to run it multiple times. just check the Options bellow.

Options

flagdescriptiondefault value
-p, --path <package.json...>path to your package.json(s)package.json
-l, --lock-path \<lock file path>path to your lock filepackage-lock.json
-n, --node_modulesignore lock file and read versions from node_modules
-m, --mono-repofeeze all package.json files on mono repo-

Contributing

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Arshia Moghaddam - linkedin - ars2062@gmail.com

Project Link: https://github.com/ars2062/freeze-package-versions