Skip to content

folderScoped

folderScoped<Step>(step, paths, deps?): StepPlugin<Step>

Defined in: folder-scoped/folder-scoped.ts:29

An inline semantic-release plugin that runs step of the stock plugin (@semantic-release/commit-analyzer for analyzeCommits, @semantic-release/release-notes-generator for generateNotes) over only the commits that changed a file at or under paths.

After a monorepo import, lastTag..HEAD spans every folder’s commits, so an unscoped analyzer would release a folder for a commit that never touched it. The wrapped plugin is loaded on first use, so it only needs to be installed where a release actually runs. Commits are listed with one git diff-tree call, in context.cwd.

Step extends CommitStep

Step

readonly string[]

FolderScopedDeps = {}

StepPlugin<Step>