1.0.1 • Published 6 years ago
@awanisius/satpam-dependencies v1.0.1
Overview
When using npm or yarn, the default is to use the most recent release with the
same major version. (For example, ^1.2.3 would accept version 1.9.1, but
1.2.3 would only accept version 1.2.3.) This package checks that the package
dependencies are set as exact.
Installation
See the file INSTALL.md for installation instructions.
Usage
If there is a dependency that needs to be pinned, it will look like this.
✖ Dependency react should be pinned.
✖ Dependency react-dom should be pinned.If there is no issue, it will look like this!
✔ No issues were found!Basic usage
With npx
npx satpam-dependenciesWith Yarn
yarn satpam-dependenciesWith npm
- Add "satpam-dependencies": "satpam-dependencies"to the"scripts"section ofpackage.json.
- npm run satpam-dependencies
Pre-Commit Hook
You can run satpam-dependencies as a pre-commit hook using
Husky.
yarn add husky --dev --exactIn package.json, add:
{
  "husky": {
    "hooks": {
      "pre-commit": "satpam-dependencies"
    }
  }
}Bug reports and user feedback
Please report bugs using the issue tracker at https://github.com/awanisius/satpam-dependencies/issues
License
Licensed under the Apache License, Version 2.0.
I Love Coffee
1.0.1
6 years ago