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

tsc-alias

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsc-alias

Replace alias paths with relative paths after typescript compilation.

  • 1.8.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is tsc-alias?

The tsc-alias npm package is a tool designed to resolve and replace path aliases in the compiled JavaScript files generated by the TypeScript compiler. It is particularly useful for projects that use path aliases in their TypeScript configuration (tsconfig.json) to simplify module imports.

What are tsc-alias's main functionalities?

Path Alias Resolution

This command resolves and replaces path aliases in the compiled JavaScript files based on the configuration specified in the tsconfig.json file. It ensures that the path aliases used in TypeScript are correctly translated to relative paths in the output JavaScript.

tsc-alias -p tsconfig.json

Custom Configuration

This command allows you to specify a custom configuration file for tsc-alias. This is useful if you have a separate configuration for alias resolution that differs from your main tsconfig.json.

tsc-alias -p tsconfig.json --config custom-config.json

Watch Mode

This command runs tsc-alias in watch mode, which means it will continuously monitor your TypeScript files for changes and automatically resolve path aliases in the compiled JavaScript files whenever a change is detected.

tsc-alias -p tsconfig.json --watch

Other packages similar to tsc-alias

Keywords

FAQs

Package last updated on 13 May 2024

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