Jason Gerbes 4287d59a2a
fix(js): update dependencies in package.json (#9073)
Co-authored-by: Jason Gerbes <jason.gerbes@vista.co>
2022-02-24 16:01:43 -06:00

77 lines
1.4 KiB
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 `workspace.json` when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/configuration/projectjson#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.
### buildableProjectDepsInPackageJsonType
Default: `peerDependencies`
Type: `string`
Possible values: `dependencies`, `peerDependencies`
When `updateBuildableProjectDepsInPackageJson` is `true`, this adds dependencies to either `peerDependencies` or `dependencies`.
### skipTypeCheck
Default: `false`
Type: `boolean`
Whether to skip TypeScript type checking.
### swcExclude
Type: `array`
List of SWC Glob/Regex to be excluded from compilation (https://swc.rs/docs/configuration/compilation#exclude)
### updateBuildableProjectDepsInPackageJson
Default: `true`
Type: `boolean`
Whether to update the buildable project dependencies in package.json.
### watch
Default: `false`
Type: `boolean`
Enable re-building when files change.