New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ts-migrate-server

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-migrate-server

A package that contains the main migration runner and spawns a TSServer process

  • 0.1.33
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
53K
decreased by-7.31%
Maintainers
2
Weekly downloads
 
Created
Source

ts-migrate-server

ts-migrate-server is a package that contains the main migration runner. ts-migrate-server is designed around Airbnb projects. Use at your own risk.

Install

Install ts-migrate-server using npm:

npm install --save-dev ts-migrate-server

Or yarn:

yarn add --dev ts-migrate-server

Usage

import path from 'path';
import { migrate, MigrateConfig } from 'ts-migrate-server';

// get input files folder
const inputDir = path.resolve(__dirname, 'input');

// create new migration config. You can add your plugins there
const config = new MigrateConfig();

// run migration
const exitCode = await migrate({ rootDir: inputDir, config });

process.exit(exitCode);

FAQ

How can I use ts-migrate-server?

You can take a look at basic usage example. Another resource would be source code of the ts-migrate cli.

Why not just use codemods?

You actually can use codemods in your plugins! ts-migrate-server provides a more standardized API around TypeScript compiler usage and allows us to use the benefits of the TypeScript APIs without complicated setup.

I have an issue with a specific plugin, what should I do?

Please file an issue here.

Contributing

See the Contributors Guide.

Keywords

FAQs

Package last updated on 02 Sep 2022

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