Skip to content

twine / FactoryOptions

Interface: FactoryOptions

Defined in: factory.ts:31

Properties

env?

optional env?: BuildEnv

Defined in: factory.ts:37

Build target. Modules env-gated to other envs are pruned. Default "dev".


name

name: string

Defined in: factory.ts:33

Datapack name (also the output namespace).


target?

optional target?: RuntimeTarget

Defined in: factory.ts:43

Runtime this build targets ("vanilla" | "paper"). Drives ctx.native(...) ops: "paper" emits the native plugin call, "vanilla" runs their fallback. Default "vanilla". Build the same root twice to ship both packs.


version?

optional version?: VersionProfile

Defined in: factory.ts:35

Target version profile. Default v1_20_4.

Released under the MIT License · Credits