tss-installerdeprecated

Install Packages with their types

Usage no npm install needed!

<script type="module">
  import tssInstaller from 'https://cdn.skypack.dev/tss-installer';
</script>

README

Install Packages with their types

Ever installed a package to later find out that you don't have that package's @typings/ installed ? If yes, this is the solution for that.

How to Install

  1. npm install tss-installer
  2. Update package.json to add two scripts.
        "scripts": {
            "ti": "tss-installer install",
            "tu": "tss-installer uninstall"
        }
    

How to use

  • To install a package with it's typings

    npm run ti PACKAGE_NAME -- -D # Supports same flags as npm
    

    or

    pnpm run ti PACKAGE_NAME -- -D #Supports same flags as pnpm
    

    or

    yarn run ti PACKAGE_NAME -- --save-dev # Supports same flags as yarn
    
  • To uninstall a package and it's typings

    npm run tu PACKAGE_NAME
    

    or

    pnpm run tu PACKAGE_NAME
    

    or

    yarn run tu PACKAGE_NAME
    

Demo

Earlier

Installation Earlier Installation - Two Steps

Uninstallation Earlier Uninstallation - Two Steps

Now

Installation Now Installation - Single Step Uninstallation Now Uninstallation - Single Step