Skip to main content

@moonrepo/types

build status npm version npm license

Reusable TypeScript types for moon projects, tasks, and configurations.

Index

Interfaces

Type Aliases

Type Aliases

ActionNode

ActionStatus

ActionStatus: cached-from-remote | cached | failed-and-abort | failed | invalid | passed | running | skipped

BinEntry

BinEntry: string | BinConfig

CodeownersOrderBy

CodeownersOrderBy: file-source | project-name

How to order ownership rules within the generated file.

DependencyScope

DependencyScope: build | development | peer | production | root

The scope and or relationship of the dependency.

DependencySource

DependencySource: explicit | implicit

The source where the dependency comes from. Either explicitly defined in configuration, or implicitly derived from source files.

EventType

EventType: action.finished | action.started | dependencies.installed | dependencies.installing | pipeline.aborted | pipeline.finished | pipeline.started | project.synced | project.syncing | target.ran | target.running | tool.installed | tool.installing | workspace.synced | workspace.syncing

HasherOptimization

HasherOptimization: accuracy | performance

The optimization to use when hashing.

HasherWalkStrategy

HasherWalkStrategy: glob | vcs

The strategy to use when walking the file system.

LanguageType

LanguageType: bash | batch | go | javascript | php | python | ruby | rust | typescript | unknown | string

Supported programming languages that each project can be written in.

NodePackageManager

NodePackageManager: bun | npm | pnpm | yarn

The available package managers for Node.js.

NodeVersionFormat

NodeVersionFormat: file | link | star | version | version-caret | version-tilde | workspace | workspace-caret | workspace-tilde

Formats that a package.json version dependency can be.

NodeVersionManager

NodeVersionManager: nodenv | nvm

The available version managers for Node.js.

Nullable

Nullable<T>: { [ K in keyof T ]: T[K] | null }

Type parameters

  • T

OperationMeta

OwnersPaths

OwnersPaths: string[] | Record<string, string[]>

PartialBinEntry

PartialBinEntry: string | PartialBinConfig

PartialOwnersPaths

PartialOwnersPaths: string[] | Record<string, string[]>

PartialProjectDependsOn

PartialProjectDependsOn: string | PartialDependencyConfig

PartialTaskArgs

PartialTaskArgs: null | string | string[]

PartialTaskDependency

PartialTaskDependency: string | PartialTaskDependencyConfig

PartialTemplateVariable

PartialTemplateVariableEnumDefault

PartialTemplateVariableEnumDefault: string | string[]

PartialTemplateVariableEnumValue

PartialTemplateVariableEnumValue: string | PartialTemplateVariableEnumValueConfig

PartialWorkspaceProjects

PartialWorkspaceProjects: PartialWorkspaceProjectsConfig | string[] | Record<string, string>

PayloadActionFinished

PayloadActionFinished: WebhookPayload<action.finished, EventActionFinished>

PayloadActionStarted

PayloadActionStarted: WebhookPayload<action.started, EventActionStarted>

PayloadDependenciesInstalled

PayloadDependenciesInstalled: WebhookPayload<dependencies.installed, EventDependenciesInstalled>

PayloadDependenciesInstalling

PayloadDependenciesInstalling: WebhookPayload<dependencies.installing, EventDependenciesInstalling>

PayloadPipelineAborted

PayloadPipelineAborted: WebhookPayload<pipeline.aborted, EventPipelineAborted>

PayloadPipelineFinished

PayloadPipelineFinished: WebhookPayload<pipeline.finished, EventPipelineFinished>

PayloadPipelineStarted

PayloadPipelineStarted: WebhookPayload<pipeline.started, EventPipelineStarted>

PayloadProjectSynced

PayloadProjectSynced: WebhookPayload<project.synced, EventProjectSynced>

PayloadProjectSyncing

PayloadProjectSyncing: WebhookPayload<project.syncing, EventProjectSyncing>

PayloadTargetRan

PayloadTargetRan: WebhookPayload<target.ran, EventTargetRan>

PayloadTargetRunning

PayloadTargetRunning: WebhookPayload<target.running, EventTargetRunning>

PayloadToolInstalled

PayloadToolInstalled: WebhookPayload<tool.installed, EventToolInstalled>

PayloadToolInstalling

PayloadToolInstalling: WebhookPayload<tool.installing, EventToolInstalling>

PayloadWorkspaceSynced

PayloadWorkspaceSynced: WebhookPayload<workspace.synced, EventWorkspaceSynced>

PayloadWorkspaceSyncing

PayloadWorkspaceSyncing: WebhookPayload<workspace.syncing, {}>

PlatformType

PlatformType: bun | deno | node | rust | system | unknown

Platforms that each programming language can belong to.

PluginLocator

PluginLocator: string

ProjectDependsOn

ProjectDependsOn: string | DependencyConfig

ProjectType

ProjectType: application | automation | configuration | library | scaffolding | tool | unknown

The type of project, for categorizing.

StackType

StackType: backend | frontend | infrastructure | systems | unknown

The technology stack of the project, for categorizing.

TaskArgs

TaskArgs: null | string | string[]

TaskDependency

TaskDependency: string | TaskDependencyConfig

TaskMergeStrategy

TaskMergeStrategy: append | prepend | replace

The strategy in which to merge a specific task option.

TaskOptionAffectedFiles

TaskOptionAffectedFiles: boolean | args | env

TaskOptionEnvFile

TaskOptionEnvFile: boolean | string | string[]

TaskOutputStyle

TaskOutputStyle: buffer | buffer-only-failure | hash | none | stream

The style in which task output will be printed to the console.

TaskType

TaskType: build | run | test

The type of task.

TaskUnixShell

TaskUnixShell: bash | elvish | fish | zsh

A list of available shells on Unix.

TaskWindowsShell

TaskWindowsShell: bash | pwsh

A list of available shells on Windows.

TemplateVariable

TemplateVariableEnumDefault

TemplateVariableEnumDefault: string | string[]

TemplateVariableEnumValue

TemplateVariableEnumValue: string | TemplateVariableEnumValueConfig

UnresolvedVersionSpec

UnresolvedVersionSpec: string

VcsManager

VcsManager: git

The VCS being utilized by the repository.

VcsProvider

VcsProvider: bitbucket | github | gitlab | other

The upstream version control provider, where the repository source code is stored.

WorkspaceProjects

WorkspaceProjects: WorkspaceProjectsConfig | string[] | Record<string, string>