Chau Tran 726877d103
feat(js): add SWC support (#7956)
* 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
2021-12-15 12:23:50 -05:00

45 lines
758 B
Markdown

---
title: '@nrwl/js:swc executor'
description: 'Build a project using SWC'
---
# @nrwl/js:swc
Build a project using SWC
Options can be configured in `angular.json` when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/core-concepts/configuration#targets.
## Options
### main (_**required**_)
Type: `string`
The name of the main entry-point file.
### outputPath (_**required**_)
Type: `string`
The output path of the generated files.
### tsConfig (_**required**_)
Type: `string`
The path to the Typescript configuration file.
### assets
Type: `array`
List of static assets.
### skipTypeCheck
Default: `false`
Type: `boolean`
Whether to skip TypeScript type checking.