id = "np"
name = "np"
homepage = "https://github.com/sindresorhus/np"
description = "A better npm publish."
executables = ["np"]
[dotfiles]
paths = [
"~/.np-config.json",
"~/.np-config.js",
"~/.np-config.cjs",
"~/.np-config.mjs",
]
exclude = []
secret = []
side_effect = false
[commands]
format = 1
label = "Publish package"
description = "Interactive npm publish with version bump, tests and git tag. Only flags in the completion data are offered."
quality = "ai-draft"
base = "fig:np"
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = false, short_bundles = false }
[[commands.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/np.ts"
license = "MIT"
[[commands.field]]
id = "version"
label = "Version or bump"
type = "string"
position = 0
suggestions = [{ value = "patch", label = "patch" }, { value = "minor", label = "minor" }, { value = "major", label = "major" }]
sources = ["fig"]
[[commands.field]]
id = "tag"
label = "Dist-tag"
type = "string"
option = ["--tag"]
sources = ["fig"]
[[commands.field]]
id = "branch"
label = "Release branch"
type = "string"
option = ["--branch"]
sources = ["fig"]
[[commands.field]]
id = "any_branch"
label = "Any branch"
type = "boolean"
option = ["--any-branch"]
sources = ["fig"]
[[commands.field]]
id = "no_tests"
label = "Skip tests"
type = "boolean"
option = ["--no-tests"]
sources = ["fig"]
[[commands.field]]
id = "no_cleanup"
label = "Skip cleanup"
type = "boolean"
option = ["--no-cleanup"]
sources = ["fig"]
[[commands.field]]
id = "no_publish"
label = "Skip publishing"
type = "boolean"
option = ["--no-publish"]
sources = ["fig"]
[[commands.field]]
id = "preview"
label = "Preview tasks only"
type = "boolean"
option = ["--preview"]
sources = ["fig"]
[[commands.field]]
id = "contents"
label = "Subdirectory to publish"
type = "path"
option = ["--contents"]
path = { kind = "directory", role = "input" }
sources = ["fig"]
[[commands.field]]
id = "message"
label = "Version commit message"
type = "string"
option = ["--message"]
sources = ["fig"]
[[commands.field]]
id = "no_release_draft"
label = "Skip GitHub release draft"
type = "boolean"
option = ["--no-release-draft"]
sources = ["fig"]
[[commands.field]]
id = "no_2fa"
label = "Do not enable 2FA on new packages"
type = "boolean"
option = ["--no-2fa"]
sources = ["fig"]
[[commands.field]]
id = "test_script"
label = "Test script name"
type = "string"
option = ["--test-script"]
sources = ["fig"]
[[commands.task]]
id = "preview"
label = "Preview release"
fields = ["version", "tag"]
required = []
set = { preview = [true] }
[[commands.task]]
id = "release"
label = "Release"
fields = ["version", "tag", "branch", "no_tests"]
required = []
[[commands.group]]
id = "basic"
label = "Basic"
fields = ["version", "tag", "no_tests", "preview"]
[[commands.group]]
id = "advanced"
label = "Advanced"
fields = ["no_cleanup", "no_publish", "contents", "message", "no_release_draft", "no_2fa", "test_script", "any_branch", "branch"]