tanahatas/satpam-dependencies


🎭 Allows you to easily validate the dependencies

License: Apache-2.0

Language: TypeScript

Keywords: cli, npm, satpam, satpam-npm, typescript


🎭 Satpam Dependencies

Allows you to easily validate the dependencies.

GitHub Workflow Status Coverage Status Latest Version PRs Welcome GitHub License

Built with ❤︎ by Ahmad Ainul Rizki

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

With Yarn

yarn satpam-dependencies

With npm

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

Pre-Commit Hook

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

yarn add husky --dev --exact

In 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/tanahatas/satpam-dependencies/issues

License

Licensed under the Apache License, Version 2.0.

I Love Coffee

ko-fi

Project Statistics

Sourcerank 2
Repository Size 121 KB
Stars 1
Forks 0
Watchers 1
Open issues 0
Dependencies 868
Contributors 1
Tags 1
Created
Last updated
Last pushed

Top Contributors See all

Ahmad Ainul Rizki

Packages Referencing this Repo

@tanahatas/satpam-dependencies
When using npm or yarn, the default is to use the most recent release with the same major version...
Latest release 1.0.0 - Published - 1 stars

Recent Tags See all

v1.0.0 December 18, 2019

Something wrong with this page? Make a suggestion

Last synced: 2019-12-18 20:46:31 UTC

Login to resync this repository