@iamyth/version-checker

1.0.0 • Public • Published

Node Version Checker

This package aims to provide a consistent version checking service while performing particular tasks.

While you are doing your tasks/ feature, you may sometimes having troubles from other features that might not be your problem, just like API changes in some of the packages, or one of your teammates pushed a buggy commit.

Maybe one of your teammates updates some of the packages that have big changes, your package.json updated but you have not install the correct version on your local machine.

This package come to rescue, you can add the checker wherever you want:

  • build
  • start
  • etc.

When will you need this package ?

  • Working as a Team
  • Some of your installed packages update frequently
  • you name it. XD

Installation

> yarn add @iamyth/version-checker
// or
> npm install @iamyth/version-checker

Usage

This package provides two ways to use.

Use JS/TS script

import { VersionChecker } from "@iamyth/version-checker";
import path from "path";

new VersionChecker({
  // Required
  projectDirectory: path.join(__dirname, "path to you root directory"),
  // Optional
  onSuccess: () => {
    // Some logic after the versions are all correct
  },
  skipLibs: [
    "package that you do not want to check the version, (some legacy package)",
  ],
});

or use in command line

{
  "scripts": {
    "start": "@iamyth/version-checker directory='./' && some-start-scripts"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @iamyth/version-checker

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

9.01 kB

Total Files

11

Last publish

Collaborators

  • jamyth