Skip to content

ars2062/freeze-package-versions

Repository files navigation

GitHub release (latest by date)

freeze package versions

Table of Contents
  1. About The Project
  2. Usage
  3. Options
  4. Contributing
  5. License
  6. Contact

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!

(back to top)

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.

(back to top)

Options

flag description default value
-p, --path <package.json...> path to your package.json(s) package.json
-l, --lock-path <lock file path> path to your lock file package-lock.json
-n, --node_modules ignore lock file and read versions from node_modules
-m, --mono-repo feeze all package.json files on mono repo -

(back to top)

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

(back to top)

License

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

(back to top)

Contact

Arshia Moghaddam - linkedin - [email protected]

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

(back to top)

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors