@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
string
Pattern: ^[a-zA-Z].*$

Library name.

targets

Array<string>
Default: [build]

List of targets to convert.