Options

assets

Array<oneOf [object , string]>
Default: []

List of static assets.

buildableProjectDepsInPackageJsonType

string
Default: peerDependencies
Accepted values: dependencies, peerDependencies

When updateBuildableProjectDepsInPackageJson is true, this adds dependencies to either peerDependencies or dependencies.

clean

boolean
Default: true

Remove previous output before build.

external

oneOf [string, Array<string>]

A list projects to be treated as external. This feature is experimental

externalBuildTargets

Array<string>
Default: [build]

List of target names that annotate a build target for a project

main

Required
string

The name of the main entry-point file.

outputPath

Required
string

The output path of the generated files.

swcrc

string

The path to the SWC configuration file. Default: .lib.swcrc

skipTypeCheck

boolean
Default: false

Whether to skip TypeScript type checking.

swcExclude

Array<anything>
Default: [./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

Required
string

The path to the Typescript configuration file.

updateBuildableProjectDepsInPackageJson

boolean
Default: true

Whether to update the buildable project dependencies in package.json.

watch

boolean
Default: false

Enable re-building when files change.