# ts-migrate-server

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

Latest version **0.1.33** (published 2022-09-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install ts-migrate-server
pnpm add ts-migrate-server
yarn add ts-migrate-server
bun add ts-migrate-server
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.33 |
| Published | 2022-09-02 |
| First published | 2020-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 77.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5619 |
| Maintainers | rudeg, brieb |
| Keywords | ts-migrate, ts-migrate-server, typescript, migration, codemod |

## Links

- npm: https://www.npmjs.com/package/ts-migrate-server
- Repository: https://github.com/airbnb/ts-migrate
- Homepage: https://github.com/airbnb/ts-migrate#readme
- Issues: https://github.com/airbnb/ts-migrate/issues
- npm.io page: https://npm.io/package/ts-migrate-server

## Dependencies (3)

- [pretty-ms](https://npm.io/package/pretty-ms.md) ^7.0.1
- [updatable-log](https://npm.io/package/updatable-log.md) ^0.2.0
- [@ts-morph/bootstrap](https://npm.io/package/@ts-morph/bootstrap.md) ^0.16.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.33 (latest) — 2022-09-02
- 0.1.31 — 2022-07-26
- 0.1.29 — 2022-06-08
- 0.1.27 — 2021-12-21
- 0.1.26 — 2021-10-07
- 0.1.23 — 2021-09-23
- 0.1.20 — 2021-07-10
- 0.1.18 — 2021-04-27
- 0.1.17 — 2021-04-27
- 0.1.16 — 2021-03-08
- 0.1.15 — 2021-01-28
- 0.1.14 — 2021-01-28
- 0.1.11 — 2020-12-13
- 0.1.10 — 2020-11-18
- 0.1.9 — 2020-10-30
- … 7 more at https://npm.io/package/ts-migrate-server/versions

## README

# 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](https://www.npmjs.com):

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

Or [yarn](https://yarnpkg.com):

`yarn add --dev ts-migrate-server`


# Usage

```typescript
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](https://github.com/airbnb/ts-migrate/blob/master/packages/ts-migrate-example/src/index.ts#L2).
Another resource would be [source code](https://github.com/airbnb/ts-migrate/blob/master/packages/ts-migrate/cli.ts) of the *ts-migrate* cli.

> Why not just use codemods?

You actually can use [codemods](https://github.com/airbnb/ts-migrate/blob/master/packages/ts-migrate-plugins/src/plugins/declare-missing-class-properties.ts) 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](https://github.com/airbnb/ts-migrate/issues/new).

# Contributing

See the [Contributors Guide](https://github.com/airbnb/ts-migrate/blob/master/CONTRIBUTING.md).

---
_Source: https://npm.io/package/ts-migrate-server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
