@nrwl/js:convert-to-swc

Convert a tsc library to swc

Usage

nx generate convert-to-swc ...
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:

nx g @nrwl/js:convert-to-swc ...

Show what will be generated without writing to disk:

nx g convert-to-swc ... --dry-run

Examples

Convert libs/myapp/mylib to swc:

nx g swc mylib

Options

project (required)

Type: string

Library name

targets

Type: array

List of targets to convert