Skip to content

ValidatePluginReleaseOptions

Options for validatePluginRelease.

Import:

import type { ValidatePluginReleaseOptions } from '@mnaoumov/obsidian-dev-toolkit/plugin-release-checks';

Signature:

export interface ValidatePluginReleaseOptions extends ValidatePluginManifestOptions

Extends: ValidatePluginManifestOptions

Properties

PropertyTypeDescription
distFolder?stringThe folder holding the built release assets, relative to the project root. Its assets are checked when it exists, or always when shouldRequireAssets is set. Defaults to dist/build.
isIdListed?booleanWhether the ID is already listed in the directory, which exempts it from the banned-word rule. Defaults to false.
(Inherited from ValidatePluginManifestOptions)
manifestFile?stringThe manifest to check, relative to the project root. Defaults to manifest.json; a pre-release checks manifest-beta.json.
repository?stringThe owner/repo of the plugin. A listed ID is exempt from the banned-word rule only when it is listed for this repository; without it, a listed ID is exempt whatever repository lists it.
rootFolder?stringThe project root. Defaults to the root of the current working directory's project.
shouldCheckAssets?booleanWhether to check the release assets in distFolder at all. Defaults to true.
shouldCheckRepositoryFiles?booleanWhether to check that the project root holds a LICENSE and a README.md, which the community directory requires of every plugin repository. Defaults to true.
shouldCheckVersion?booleanWhether to check version. Defaults to true; a check before the version is bumped turns it off, since an unreleased plugin still carries the 0.0.0 placeholder.
(Inherited from ValidatePluginManifestOptions)
shouldRequireAssets?booleanWhether a missing distFolder is an error rather than a reason to skip the asset checks. Defaults to false.
tag?stringThe release tag to check against the manifest. Not checked when omitted.

Links to this page: