Skip to content

bintastic / ImportMetaBintasticOptions

Interface: ImportMetaBintasticOptions<TProject> ​

Defined in: create-bintastic.ts:45

Options where binPath is relative to the importing module, resolved against importMeta.url.

Extends ​

  • BintasticOptionsBase<TProject>

Type Parameters ​

TProject ​

TProject

Properties ​

binPath ​

binPath: string | ((project) => string)

Defined in: create-bintastic.ts:21

The path to the bin to invoke.

When importMeta is provided, this is treated as a path relative to the importing module and resolved via fileURLToPath(new URL(binPath, importMeta.url)). Otherwise it must be an absolute path (typically pre-resolved by the caller).

May also be a function that receives the project and returns the path. The returned value is resolved using the same rule.

Inherited from ​

BintasticOptionsBase.binPath


createProject? ​

optional createProject?: () => TProject | PromiseLike<TProject>

Defined in: create-bintastic.ts:29

An optional function to use to create the project. Use this if you want to provide a custom implementation of a BintasticProject.

Returns ​

TProject | PromiseLike<TProject>

Inherited from ​

BintasticOptionsBase.createProject


importMeta ​

importMeta: ImportMeta

Defined in: create-bintastic.ts:50

The import.meta of the module configuring bintastic. Used to resolve a relative binPath to an absolute path.


staticArgs? ​

optional staticArgs?: string[]

Defined in: create-bintastic.ts:25

An array of static arguments that will be used every time when running the bin

Inherited from ​

BintasticOptionsBase.staticArgs