* feat(js): add SWC support chore(js): remove comment fix(js): clean up typecheck after merge fix(js): add tests to swc * fix(js): adjust typecheck * feat(js): add skipTypeCheck to library generator * fix(js): use Promise.all() * fix(js): pass in correct tsconfig path * cleanup(js): remove comment code * fix(js): use logger from devkit instead of console log * fix(js): remove unintended exit log * feat(js): add convert-to-swc generator to convert lib w/ tsc to swc * fix(js): reexport print diagnostics
55 lines
750 B
Markdown
55 lines
750 B
Markdown
---
|
|
title: '@nrwl/js:convert-to-swc generator'
|
|
description: 'Convert a tsc library to swc'
|
|
---
|
|
|
|
# @nrwl/js:convert-to-swc
|
|
|
|
Convert a tsc library to swc
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
nx generate convert-to-swc ...
|
|
```
|
|
|
|
```bash
|
|
nx g swc ... # same
|
|
```
|
|
|
|
By default, Nx will search for `convert-to-swc` in the default collection provisioned in `workspace.json`.
|
|
|
|
You can specify the collection explicitly as follows:
|
|
|
|
```bash
|
|
nx g @nrwl/js:convert-to-swc ...
|
|
```
|
|
|
|
Show what will be generated without writing to disk:
|
|
|
|
```bash
|
|
nx g convert-to-swc ... --dry-run
|
|
```
|
|
|
|
### Examples
|
|
|
|
Convert libs/myapp/mylib to swc:
|
|
|
|
```bash
|
|
nx g swc mylib
|
|
```
|
|
|
|
## Options
|
|
|
|
### name (_**required**_)
|
|
|
|
Type: `string`
|
|
|
|
Library name
|
|
|
|
### targets
|
|
|
|
Type: `array`
|
|
|
|
List of targets to convert
|