Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jspm-tsc-update

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jspm-tsc-update

Creates TypeScript path mappings from installed jspm packages.

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

jspm-tsc-update

This package was created out of the need to have installed jspm packages also mapped in tsconfig.json compilerOptions.paths. All packages installed via jspm install will be mapped, as well as peer dependencies. Custom aliases have to be added manually to tsconfig.json, but won't be overwritten.

Installation

$ yarn global add jspm-tsc-update

Or you can use: npm install -g jspm-tsc-update

Usage

Make sure to be in the root of your project, where your package.json exists. Also the files system.config.js and tsconfig.json must be available this location.

$ jspm-tsc-update

After executing the command from above, compilerOptions.paths in your tsconfig.json will be updated. A file named pathmap.json will be created to keep track of deleted jspm packages, to safely remove them from your TypeScript path mappings on the next run.

Local Usage

You may also install this package locally via yarn add jspm-tsc-update or npm install --save-dev jspm-tsc-update. To create an alias for running the executable, add something like this to your package.json scripts:

{
  "scripts": {
    "update-paths": "node_modules/.bin/jspm-tsc-update"
  }
}

Now you just have to make sure to run this command alongside installing or uninstalling with jspm:

$ jspm install npm:css-animator && yarn update-paths

Or when using npm instead of yarn: npm run update-paths

Keywords

FAQs

Package last updated on 28 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc