Skip to content

API Reference / @gtkx/codegen / StoreOptions

Type Alias: StoreOptions ​

StoreOptions = object & Partial<Record<"owner", string>>

Defined in: packages/codegen/src/store/store-fs.ts:25

Where one generated store is written and how it is reached.

Type Declaration ​

dependencies? ​

optional dependencies?: Record<string, string>

Packages the generated modules import, mapped to the installed directories they should load. Each is linked beside the store, so the bindings import the project's copies wherever the store is placed.

linkDir ​

linkDir: string

Path the store is symlinked at, which is the specifier's resolution target under node_modules.

shouldKeepSources? ​

optional shouldKeepSources?: boolean

Internal

Keeps the generated TypeScript sources beside the modules emitted from them, so they can be type-checked.

storeDir ​

storeDir: string

Directory the generated package is written to, replaced atomically on each run.

version ​

version: string

Version stamped on the store's package.json, taken from the dependency the store is generated for.