@nrwl/js:swc
Builds using SWC.
Options can be configured in project.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
buildableProjectDepsInPackageJsonType
peerDependenciesdependencies, peerDependenciesWhen updateBuildableProjectDepsInPackageJson is true, this adds dependencies to either peerDependencies or dependencies.
main
The name of the main entry-point file.
outputPath
The output path of the generated files.
swcrc
The path to the SWC configuration file. Default: .lib.swcrc
skipTypeCheck
falseWhether to skip TypeScript type checking.
swcExclude
[./src/**/.*.spec.ts$,./**/.*.spec.ts$,./src/**/jest-setup.ts$,./**/jest-setup.ts$,./**/.*.js$]List of SWC Glob/Regex to be excluded from compilation (https://swc.rs/docs/configuration/compilation#exclude).
tsConfig
The path to the Typescript configuration file.
updateBuildableProjectDepsInPackageJson
trueWhether to update the buildable project dependencies in package.json.
watch
falseEnable re-building when files change.