open-index/open-npm huggingface dataset:
npm package: @runjiapp/browserslist-config
Description: Browserslist config by Runji
Author: Runji
Latest version: 0.1.0

# browserslist-config

> 浏览器兼容性配置包

## 安装

```sh
npm i -D @runjiapp/browserslist-config
```

## 使用方法

### 有独立配置文件

项目根目录的 `.browserslistrc` 文件只需要包含以下内容：

```sh
extends @runjiapp/browserslist-config
```

### 无独立配置文件

在 `package.json` 文件中，按如下格式编写配置：

```json
{
	"browserslist": [
		"extends @runjiapp/browserslist-config"
	]
}
```

## 区分平台

这个配置包里包含了多个平台的配置，提供了多个入口文件：

入口 | 适用平台 | 备注
---|:---:|---
`/preset/mobile` | 移动端 |
`/preset/desktop` | 桌面端 |
`/index` 或省略<br>（默认入口） | 移动端 | 实际上就是 `preset/mobile` 的快捷方式

在 `extends` 的时候指定入口文件即可。比如：

```sh
# for a mobile project
extends @runjiapp/browserslist-config/preset/mobile
```
npm package: @runjuu/ts-migrate-server
Description: A package that contains the main migration runner and spawns a TSServer process
Latest version: 0.1.19

# 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 '@runjuu/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).