Skip to content

FolderScopedDeps

Defined in: folder-scoped/folder-scoped.type.ts:4

What the folder-scoped release plugin depends on, each replaceable in a test.

optional listFiles?: (cwd, hashes, run) => Map<string, string[]>

Defined in: folder-scoped/folder-scoped.type.ts:11

Lists the files each commit changed. Defaults to git diff-tree.

The repo-relative files each of hashes changed, from one git diff-tree --stdin call. A commit that changes nothing (or a merge commit) maps to []. Paths come back verbatim, not quoted, whatever they contain.

string

readonly string[]

GitRun = defaultGitRun

Map<string, string[]>


optional load?: (specifier, cwd) => Promise<unknown>

Defined in: folder-scoped/folder-scoped.type.ts:9

Loads a plugin module by specifier, resolved from cwd (the repo being released). Defaults to a dynamic import() of the module as cwd resolves it, which is how semantic-release loads its own plugins.

string

string

Promise<unknown>