@nx/js:convert-to-swc

Convert a TSC library to SWC.

Usage

1nx generate convert-to-swc ... 2
1nx g swc ... #same 2

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:

1nx g @nx/js:convert-to-swc ... 2
Nx 15 and lower use @nrwl/ instead of @nx/

Show what will be generated without writing to disk:

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

Examples

Convert libs/myapp/mylib to SWC.:

1nx g swc mylib 2

Options

project

Required
string
Pattern: ^[a-zA-Z].*$

Library name.

targets

Array<string>
Default: [build]

List of targets to convert.