Skip to main content

Artifact

Index

Constructors

constructor

Properties

api

api: ApiType = 'private'

buildResult

buildResult: BuildResult = ...

builds

builds: Build[] = []

bundle

bundle: boolean = true

configGroup

configGroup: number = 0

externals

externals: string[] = []

inputs

inputs: InputMap = {}

namespace

namespace: string = ''

package

package: Package

platform

platform: Platform = 'node'

sharedLib

sharedLib: boolean = false

state

state: ArtifactState = 'pending'

support

support: Support = 'stable'

Methods

build

  • Build code and types in parallel.

buildCode

  • Build code artifacts using Rollup. We’ll spin up a Rollup instance for each output, as Rollup will then generate all the necessary formats. For example: index -> cjs, lib.

buildTypes

  • Build type artifacts using TypeScript. We’ll need to spin up an individual process for each format, as they may require different declaration outputs or compiler options.

clean

  • clean(): Promise<void>

findEntryPoint

  • findEntryPoint(formats: Format[], outputName: string): undefined | { declExt: undefined | string; declPath: undefined | string; entryExt: string; entryPath: string; folder: string }

getBuildOutput

  • getBuildOutput(format: Format, outputName: string, declaration?: boolean): { declExt: undefined | string; declPath: undefined | string; entryExt: string; entryPath: string; folder: string }

getIndexInput

  • getIndexInput(): string

getInputPaths

getLabel

  • getLabel(): string

getPackageExports

isComplete

  • isComplete(): boolean

isRunning

  • isRunning(): boolean

toString

  • toString(): string