2.2.13 • Published 4 years ago

@imbsky/validate-dependencies v2.2.13

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 years ago

validate-dependencies Main workflow

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 validate-dependencies

With Yarn

yarn validate-dependencies

With npm

  1. Add "validate-dependencies": "validate-dependencies" to the "scripts" section of package.json.
  2. npm run validate-dependencies

Pre-Commit Hook

You can run validate-dependencies as a pre-commit hook using Husky.

yarn add husky --dev --exact

In package.json, add:

{
  "husky": {
    "hooks": {
      "pre-commit": "validate-dependencies"
    }
  }
}

Bug reports and user feedback

Please report bugs using the issue tracker at https://github.com/imbsky/validate-dependencies/issues

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

2.2.13

4 years ago

2.2.12

4 years ago

2.2.11

4 years ago

2.2.10

4 years ago

2.2.9

4 years ago

2.2.8

4 years ago

2.2.7

4 years ago

2.2.6

4 years ago

2.2.5

4 years ago

2.2.4

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago