Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
jspm-tsc-update
Advanced tools
Creates TypeScript path mappings from installed jspm packages.
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.
$ npm install -g jspm-tsc-update
yarn global add jspm-tsc-update
when using yarn
tsconfig.json
to tsconfig.app.json
System.config({
typescriptOptions: {
tsconfig: 'tsconfig.app.json'
}
});
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 intsconfig.app.json
, you have to runjspm-tsc-update
again.
Use this package programmatically:
const jspmTscUpdate = require('jspm-tsc-update');
jspmTscUpdate({/* options */});
The behavior is the same as with the CLI.
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
You can pass options to the CLI or API:
Option | Default | |
---|---|---|
silent | false | Disable console output |
packagePath | process.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 |
jspm | require("jspm") | The jspm module, only supported with the API |
baseUrl | "." | Fallback tsconfig baseUrl TypeScript compiler option |
noBackupTsConfig | false | Do not backup an existing tsconfig that would be overwritten |
noBackupWarning | false | Do not warn if no backup will be created when overwriting files |
backupOverwrite | false | Do not overwrite existing backup files |
backupPrefix | "" | Prefix for backup files |
backupSuffix | ".backup" | Suffix for backup files |
You may also install this package locally:
$ npm install --save jspm-tsc-update
yarn add jspm-tsc-update
when using yarn
To create an alias for running the executable, you can add it to your package.json
:
{
"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
yarn update-paths
with yarn
FAQs
Creates TypeScript path mappings from installed jspm packages.
The npm package jspm-tsc-update receives a total of 3 weekly downloads. As such, jspm-tsc-update popularity was classified as not popular.
We found that jspm-tsc-update demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.