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.2.0-beta.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
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.

Installation

$ yarn global add jspm-tsc-update

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

Preparations

Rename tsconfig.json to tsconfig.app.json

CLI Usage

Run this package from the command line:

jspm-tsc-update [options]

A tsconfig.json will be created that extends tsconfig.app.json with all required path mappings.

When making changes to the paths option in tsconfig.app.json, you have to run jspm-tsc-update again.

API Usage

Use this package programmatically:

const jspmTscUpdate = require('jspm-tsc-update');
jspmTscUpdate({/* options */});

The behavior is exactly the same as with the CLI.

When to Run

Ensure to always run this command alongside installing or uninstalling with jspm, or when making changes to your tsconfig.app.json paths:

$ jspm install npm:css-animator && jspm-tsc-update

Options

You can pass options to the CLI or API:

OptionDefault
silentfalseDisable console output
packagePathprocess.cwd()Location of package.json
tsConfigName"tsconfig.app"Name of the base tsconfig file without .json extension
tsConfigOutName"tsconfig"Name of the resulting tsconfig file without .json extension
tsConfigPath"./"Relative location of the base tsconfig, based on packagePath
tsConfigOutPath"./"Relative location of the resulting tsconfig, based on packagePath
jspmrequire("jspm")The jspm module, only supported with the API
baseUrl"."Fallback tsconfig baseUrl compiler option
noBackupTsConfigfalseDo not backup existing tsconfig
noBackupWarningfalseDo not warn if no backup will be created when overwriting files
backupPrefix""Prefix for the backup file
backupSuffix".backup"Suffix for the backup file

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, you can add it to your package.json scripts:

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

The alias can now be run via npm:

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

Or yarn update-paths with yarn

Keywords

FAQs

Package last updated on 22 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