
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@2bad/tsfix
Advanced tools
[](https://www.npmjs.com/package/@2bad/tsfix) [](https://www.npmjs.com/package/@2bad/tsfix) [
npm install --save-dev @2bad/tsfix
You can use tsfix
as a post-build script in your project. Add the following script to your package.json:
{
"scripts": {
"build": "tsc",
"postbuild": "tsfix"
}
}
This will run tsfix
automatically after your TypeScript compilation. Alternatively, you can run tsfix manually:
npx @2bad/tsfix
Consider the following TypeScript files:
// src/main.ts
import { helper } from './utils/helper.ts'
// src/utils/helper.ts
export const helper = () => 'helper function'
After running tsc, the compiled JavaScript files might look like this:
// dist/main.js
import { helper } from './utils/helper.ts'
// dist/utils/helper.js
export const helper = () => 'helper function'
Running tsfix will transform the import paths to:
// dist/main.js
import { helper } from './utils/helper.js'
We welcome contributions! If you find a bug or want to request a new feature, please open an issue. If you want to submit a bug fix or new feature, please open a pull request.
FAQs
[](https://www.npmjs.com/package/@2bad/tsfix) [](https://www.npmjs.com/package/@2bad/tsfix) [![GitHub Build Status](https://img.shields.io/github/a
The npm package @2bad/tsfix receives a total of 341 weekly downloads. As such, @2bad/tsfix popularity was classified as not popular.
We found that @2bad/tsfix demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.