JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 55
  • Score
    100M100P100Q63050F
  • License MIT

Auto install(uninstall) typings for your package dependencies

Package Exports

  • install-types

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (install-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Install Types

Auto install (uninstall) typings for your package dependencies.

Features

  • 📦 Works with npm, yarn, pnpm
  • ☀️ Updated regularly
  • 🌴 In sync with DefinitelyTyped
  • 🎣 Can be hooked with npm and husky hooks

Install

Module

npm i install-types

CLI

npm install -D install-types

or globally

npm install -g install-types

Usage

As Module

install-types syncer can be directly used as a module, returning with an object for types to install and uninstall

import typesyncer from "install-types";

const types = typesyncer();

/**
 * {
 *    install: {}, type dependencies to install
 *    uninstall: {} type dependencies to uninstall
 * }
 */

Options

options description type
exclude exclude dependencies Array

As CLI

You can use it directly in the cli if installed globally or can be used as a postinstall or prebuild script on your package.json.

"scripts": {
  "postinstall": "install-types",
}

CLI Options

options description
--yarn use yarn as package manager
--pnpm use pnpm as package manager
--removeUnused remove unused types
--exclude exclude dependencies

Note

install-types uses types-directory internally sync with the types.