
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
typescript-enhanced
Advanced tools
Typescript Enhanced is an extension of the existing Typescript package that modifies the functionality of the tsc command giving it some superpowers
Typescript Enhanced is an
extension of the existing Typescript package that modifies the functionality of
the tsc command giving it some superpowers.
This package aims for the following guidelines:
Other solutions that do the same task as Typescript Enhanced don't follow anything similar to this making hard knowing what happens under the hood. In this package you will be able to understand what is happening on the enhancements just by reading their source files.
The earliest version of Typescript supported by this package is actually v2.8.0 because Typescript Enhaced uses the internal mechanism of
tscwatch mode. Maybe, if demanded, in a future release this could be upgraded.
npm i --save-dev typescript typescript-enhanced
npx tsce
This packages wraps the actual tsc command, so it needs typescript to work. Typescript Enhanced uses Typescript as peer dependency to make you able to use any supported version of the package.
With Typescript Enhanced you will be able to create any custom transformer you want to your source code using the internal mechanism of Typescript (since version v2.3.0).
To enable this enhacement just add to your tsconfig.json the following line.
{
// ...
"compilerOptions": {
// ...
"customTransformers": [
{
module: "<module path>",
type: "<before/after>",
options: {},
}
]
// ...
}
// ...
}
The custom transformer option applies the all the transformations on the order you specify them. You can find some custom transformer examples on the samples folder.
In Typescript Enhanced you will be able to finally resolve those messy imports
that don't let you work on Node.js.
To enable this enhacement just add to your tsconfig.json the following line.
{
// ...
"compilerOptions": {
// ...
"resolveAliasedModules": true
// ...
}
// ...
}
This is applied as the last before transformation of the chain so you can modify its behaviour by using any before transformer if you want.
Sometimes do you want to do anything on watch mode states like starting a
server or execute a post-process. This is actually imposible with the tsc
command but tsce is able to manage this situation.
To enable this enhacement just add to your tsconfig.json the following line.
{
// ...
"compilerOptions": {
// ...
"onWatchFail": "<My command>",
"onWatchSuccess": "<My command>"
// ...
}
// ...
}
or just by adding the following parameters to the tsce command call
tsce --watch --onWatchFail <My command> --onWatchSuccess <My command>
Any contribution to upgrade this package is actually welcome :)
FAQs
Typescript Enhanced is an extension of the existing Typescript package that modifies the functionality of the tsc command giving it some superpowers
The npm package typescript-enhanced receives a total of 1 weekly downloads. As such, typescript-enhanced popularity was classified as not popular.
We found that typescript-enhanced 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.