1.6.3 • Published 5 years ago

types-installer v1.6.3

Weekly downloads
1,461
License
MIT
Repository
github
Last release
5 years ago

NPM   Build Status

Types Installer

A CLI which updates and populates missing @types/* for your dependencies.

Install

yarn global add types-installer
# or
npm i -g types-installer
# then
types-installer

Or locally:

yarn add types-installer
# then
yarn types-installer

CLI

  Usage: types-installer [options] [command]

  Commands:

  - interactive

  - install [options] [dependency]
      -s, --selection <selection>  devDependencies, dependencies or all
      -D, --toDev                  Save all types to devDependencies
      -p, --packageManager         Choose a package manager: npm, yarn or pnpm

Interactive

% types-installer

  ? Install options: all

  ? Install @types/* to devDependencies? Yes

  ? Which package manager? yarn

    Installing all @type dependencies...
    ? select jest (Installed), ts-jest , ts-node , tslint , tslint-eslint-rules , typescript , chalk , commander (Installed), execa , inquirer

    @types/tslint not found or failed to install
    @types/chalk found

    success Saved 1 new dependency.
    └─ @types/chalk@0.4.31

Non-Interactive

% types-installer install

  Installing all @type dependencies...

  @types/tslint not found or failed to install
  @types/chalk found

  success Saved 1 new dependency.
  └─ @types/chalk@0.4.31
% types-installer install chalk

  Installing dependency chalk @types
  @types/chalk found

  success Saved 1 new dependency.
  └─ @types/chalk@0.4.31
  • types-installer --help for more options

Behavior

  • Types are by default saved to dependencies or devDependencies, wherever the dependency exists.
  • To force everything top be saved into devDependencies, add the --toDev flag.
1.6.3

5 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.5.0

5 years ago

1.6.0

5 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.8

7 years ago

1.2.7

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago