Skip to main content

PresetContentContext

Presetter Types API v8.3.0


Presetter Types API / PresetContentContext

Interface: PresetContentContext

Defined in: context.ts:29

supplementary context available for a content resolver

Extends

Properties

isRepoRoot

isRepoRoot: boolean

Defined in: context.ts:12

indicate whether the current project root is also the repository root

Inherited from

ProjectContext.isRepoRoot


relativeProjectRoot

relativeProjectRoot: string

Defined in: context.ts:14

relative project root to the repository root

Inherited from

ProjectContext.relativeProjectRoot


relativeRepoRoot

relativeRepoRoot: string

Defined in: context.ts:16

relative repository root to the project root

Inherited from

ProjectContext.relativeRepoRoot


repoRoot

repoRoot: string

Defined in: context.ts:18

path to the root of the repository (typicall the folder hosting .git)

Inherited from

ProjectContext.repoRoot


projectRoot

projectRoot: string

Defined in: context.ts:20

the root directory containing the project's presetter.config.ts

Inherited from

ProjectContext.projectRoot


packageJson

packageJson: PackageJson

Defined in: context.ts:23

normalized package.json data from the project

Inherited from

ProjectContext.packageJson


variables

variables: Variables

Defined in: context.ts:30