@tabsmith/autocomplete-specs 1.0.0 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@magnolia/cli.js +2 -2
- package/build/@withfig/autocomplete-tools.js +2 -2
- package/build/airflow.js +2 -2
- package/build/ansible-playbook.js +2 -2
- package/build/apt.js +4 -4
- package/build/asr.js +2 -2
- package/build/bun.js +9 -9
- package/build/cargo.js +4 -4
- package/build/cd.js +2 -2
- package/build/chezmoi.js +2 -2
- package/build/cloudflared.js +2 -2
- package/build/coda.js +3 -3
- package/build/codeburn.js +1 -0
- package/build/codesign.js +2 -2
- package/build/dapr.js +2 -2
- package/build/deno/generators.js +4 -4
- package/build/deno.js +2 -2
- package/build/deployctl.js +2 -2
- package/build/direnv.js +2 -2
- package/build/docker.js +18 -18
- package/build/dotenv-vault.js +2 -2
- package/build/dotnet/dotnet-add.js +2 -2
- package/build/dotnet/dotnet-build.js +2 -2
- package/build/dotnet/dotnet-clean.js +2 -2
- package/build/dotnet/dotnet-format.js +2 -2
- package/build/dotnet/dotnet-list.js +2 -2
- package/build/dotnet/dotnet-migrate.js +2 -2
- package/build/dotnet/dotnet-nuget.js +3 -3
- package/build/dotnet/dotnet-pack.js +2 -2
- package/build/dotnet/dotnet-publish.js +2 -2
- package/build/dotnet/dotnet-remove.js +2 -2
- package/build/dotnet/dotnet-restore.js +2 -2
- package/build/dotnet/dotnet-sln.js +2 -2
- package/build/dotnet/dotnet-store.js +2 -2
- package/build/dotnet/dotnet-test.js +2 -2
- package/build/dotnet/dotnet-tool.js +3 -3
- package/build/dotnet.js +2 -2
- package/build/dsh.js +2 -0
- package/build/dtm.js +3 -3
- package/build/dynamic/index.js +1 -1
- package/build/elixir.js +2 -2
- package/build/elm-json.js +2 -2
- package/build/esbuild.js +3 -3
- package/build/file.js +2 -2
- package/build/flutter.js +5 -5
- package/build/gh.js +6 -37
- package/build/git.js +20 -20
- package/build/glow.js +2 -2
- package/build/hub.js +20 -20
- package/build/iex.js +2 -2
- package/build/index.js +1 -1
- package/build/index.json +1 -1
- package/build/java.js +2 -2
- package/build/julia.js +2 -2
- package/build/limactl.js +3 -3
- package/build/man.js +3 -3
- package/build/meteor.js +3 -3
- package/build/mgnl.js +2 -2
- package/build/mix.js +2 -2
- package/build/mongoimport.js +2 -2
- package/build/n.js +3 -3
- package/build/ni.js +2 -2
- package/build/node.js +2 -2
- package/build/npm.js +2 -2
- package/build/nr.js +3 -3
- package/build/nrm.js +2 -2
- package/build/opencode.js +2 -2
- package/build/osascript.js +2 -2
- package/build/osqueryi.js +2 -2
- package/build/pandoc.js +3 -3
- package/build/pdfunite.js +2 -2
- package/build/pi.js +2 -2
- package/build/pipenv.js +2 -2
- package/build/pm2.js +2 -2
- package/build/pnpm.js +23 -24
- package/build/pod.js +2 -2
- package/build/pre-commit.js +126 -126
- package/build/python.js +2 -2
- package/build/python3.js +2 -2
- package/build/r.js +3 -3
- package/build/rails.js +3 -3
- package/build/rancher.js +3 -3
- package/build/react-native.js +5 -5
- package/build/robot.js +2 -2
- package/build/rojo.js +2 -2
- package/build/rollup.js +2 -2
- package/build/rscript.js +2 -2
- package/build/rush.js +5 -5
- package/build/rushx.js +4 -4
- package/build/scc.js +2 -2
- package/build/shortcuts.js +2 -2
- package/build/sidekiq.js +2 -2
- package/build/sqlite3.js +2 -2
- package/build/streamlit.js +2 -2
- package/build/subl.js +2 -2
- package/build/swift.js +2 -2
- package/build/systemctl.js +2 -2
- package/build/ts-node.js +3 -3
- package/build/tsc.js +2 -2
- package/build/tsx.js +2 -2
- package/build/turbo.js +20 -20
- package/build/typst.js +2 -2
- package/build/vsce.js +20 -20
- package/build/wasm-bindgen.js +2 -2
- package/build/yarn.js +4 -4
- package/build/yomo.js +2 -2
- package/package.json +20 -20
- package/build/ai-agents specs.js +0 -1
package/build/pnpm.js
CHANGED
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
function
|
|
2
|
-
`).map(i=>({name:i,icon:"\u{1F4E6}",description:"Global dependency"}))}}},D={cache:{strategy:"stale-while-revalidate",cacheByDirectory:!0},script:["bash","-c","until [[ -f package.json ]] || [[ $PWD = '/' ]]; do cd ..; done; cat package.json"],postProcess:function(e,[n]){if(e.trim()=="")return[];try{let t=JSON.parse(e),i=t.scripts,a=t.fig||{};if(i)return Object.entries(i).map(([r,s])=>{let d=n==="yarn"?"fig://icon?type=yarn":"fig://icon?type=npm",l=a[r];return{name:r,icon:d,description:s,priority:51,...l}})}catch(t){console.error(t)}return[]}},I={name:["-g","--global"],description:"Operates in 'global' mode, so that packages are installed into the prefix folder instead of the current working directory"},g={name:"--json",description:"Show output in json format"},j={name:"--omit",description:"Dependency types to omit from the installation tree on disk",args:{name:"Package type",default:"dev",suggestions:["dev","optional","peer"]},isRepeatable:3},v={name:["-p","--parseable"],description:"Output parseable results from commands that write to standard output"},T={name:["-l","--long"],description:"Show extended information"},c=[{name:["-w","--workspace"],description:"Enable running a command in the context of the configured workspaces of the current project",args:{name:"workspace",generators:J,isVariadic:!0}},{name:["-ws","--workspaces"],description:"Enable running a command in the context of all the configured workspaces"}],B=[{name:["-S","--save"],description:"Package will be removed from your dependencies"},{name:["-D","--save-dev"],description:"Package will appear in your `devDependencies`"},{name:["-O","--save-optional"],description:"Package will appear in your `optionalDependencies`"},{name:"--no-save",description:"Prevents saving to `dependencies`"},{name:"-g",description:"Uninstall global package"},...c],$=[{name:["-a","-all"],description:"Show all outdated or installed packages"},g,T,v,{name:"--depth",description:"The depth to go when recursing packages",args:{name:"depth"}},{name:"--link",description:"Limits output to only those packages that are linked"},{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},{name:"--no-unicode",description:"Uses unicode characters in the tree output"},I,j,...c],o={name:"--registry",description:"The base URL of the npm registry",args:{name:"registry"}},z={name:"--verbose",description:"Show extra information",args:{name:"verbose"}},m={name:"--otp",description:"One-time password from a two-factor authenticator",args:{name:"otp"}},b={name:"--ignore-scripts",description:"If true, npm does not run scripts specified in package.json files"},x={name:"--script-shell",description:"The shell to use for scripts run with the npm exec, npm run and npm init <pkg> commands",args:{name:"script-shell"}},S={name:"--dry-run",description:"Indicates that you don't want npm to make any changes and that it should only report what it would have done"},re={name:"npm",parserDirectives:{flagsArePosixNoncompliant:!0},description:"Node package manager",subcommands:[{name:["install","i","add"],description:"Install a package and its dependencies",args:{name:"package",isOptional:!0,generators:y,debounce:!0,isVariadic:!0},options:[{name:["-P","--save-prod"],description:"Package will appear in your `dependencies`. This is the default unless `-D` or `-O` are present"},{name:["-D","--save-dev"],description:"Package will appear in your `devDependencies`"},{name:["-O","--save-optional"],description:"Package will appear in your `optionalDependencies`"},{name:"--no-save",description:"Prevents saving to `dependencies`"},{name:["-E","--save-exact"],description:"Saved dependencies will be configured with an exact version rather than using npm's default semver range operator"},{name:["-B","--save-bundle"],description:"Saved dependencies will also be added to your bundleDependencies list"},I,{name:"--global-style",description:"Causes npm to install the package into your local node_modules folder with the same layout it uses with the global node_modules folder"},{name:"--legacy-bundling",description:"Causes npm to install the package such that versions of npm prior to 1.4, such as the one included with node 0.8, can install the package"},{name:"--legacy-peer-deps",description:"Bypass peerDependency auto-installation. Emulate install behavior of NPM v4 through v6"},{name:"--strict-peer-deps",description:"If set to true, and --legacy-peer-deps is not set, then any conflicting peerDependencies will be treated as an install failure"},{name:"--no-package-lock",description:"Ignores package-lock.json files when installing"},o,z,j,b,{name:"--no-audit",description:"Submit audit reports alongside the current npm command to the default registry and all registries configured for scopes"},{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"},{name:"--no-fund",description:"Hides the message at the end of each npm install acknowledging the number of dependencies looking for funding"},S,...c]},{name:["run","run-script"],description:"Run arbitrary package scripts",options:[...c,{name:"--if-present",description:"Npm will not exit with an error code when run-script is invoked for a script that isn't defined in the scripts section of package.json"},{name:"--silent",description:""},b,x,{name:"--",args:{name:"args",isVariadic:!0}}],args:{name:"script",description:"Script to run from your package.json",filterStrategy:"fuzzy",generators:D}},{name:"init",description:"Trigger the initialization",options:[{name:["-y","--yes"],description:"Automatically answer 'yes' to any prompts that npm might print on the command line"},{name:"-w",description:"Create the folders and boilerplate expected while also adding a reference to your project workspaces property",args:{name:"dir"}}]},{name:"access",description:"Set access controls on private packages"},{name:["adduser","login"],description:"Add a registry user account",options:[o,{name:"--scope",description:"Associate an operation with a scope for a scoped registry",args:{name:"scope",description:"Scope name"}}]},{name:"audit",description:"Run a security audit",subcommands:[{name:"fix",description:"If the fix argument is provided, then remediations will be applied to the package tree",options:[S,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input",isDangerous:!0},...c]}],options:[...c,{name:"--audit-level",description:"The minimum level of vulnerability for npm audit to exit with a non-zero exit code",args:{name:"audit",suggestions:["info","low","moderate","high","critical","none"]}},{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},g,j]},{name:"bin",description:"Print the folder where npm will install executables",options:[I]},{name:["bugs","issues"],description:"Report bugs for a package in a web browser",args:{name:"package",isOptional:!0,generators:y,debounce:!0,isVariadic:!0},options:[{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm bugs command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]},o]},{name:"cache",description:"Manipulates packages cache",subcommands:[{name:"add",description:"Add the specified packages to the local cache"},{name:"clean",description:"Delete all data out of the cache folder"},{name:"verify",description:"Verify the contents of the cache folder, garbage collecting any unneeded data, and verifying the integrity of the cache index and all cached data"}],options:[{name:"--cache",args:{name:"cache"},description:"The location of npm's cache directory"}]},{name:["ci","clean-install","install-clean"],description:"Install a project with a clean slate",options:[{name:"--audit",description:'When "true" submit audit reports alongside the current npm command to the default registry and all registries configured for scopes',args:{name:"audit",suggestions:["true","false"]},exclusiveOn:["--no-audit"]},{name:"--no-audit",description:"Do not submit audit reports alongside the current npm command",exclusiveOn:["--audit"]},b,x,z,o]},{name:"cit",description:"Install a project with a clean slate and run tests"},{name:"clean-install-test",description:"Install a project with a clean slate and run tests"},{name:"completion",description:"Tab completion for npm"},{name:["config","c"],description:"Manage the npm configuration files",subcommands:[{name:"set",description:"Sets the config key to the value",args:[{name:"key"},{name:"value"}],options:[{name:["-g","--global"],description:"Sets it globally"}]},{name:"get",description:"Echo the config value to stdout",args:{name:"key"}},{name:"list",description:"Show all the config settings",options:[{name:"-g",description:"Lists globally installed packages"},{name:"-l",description:"Also shows defaults"},g]},{name:"delete",description:"Deletes the key from all configuration files",args:{name:"key"}},{name:"edit",description:"Opens the config file in an editor",options:[{name:"--global",description:"Edits the global config"}]}]},{name:"create",description:"Create a package.json file"},{name:["dedupe","ddp"],description:"Reduce duplication in the package tree"},{name:"deprecate",description:"Deprecate a version of a package",options:[o]},{name:"dist-tag",description:"Modify package distribution tags"},{name:["docs","home"],description:"Open documentation for a package in a web browser",args:{name:"package",isOptional:!0,generators:y,debounce:!0,isVariadic:!0},options:[...c,o,{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm docs command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]}]},{name:"doctor",description:"Check your npm environment",options:[o]},{name:"edit",description:"Edit an installed package",options:[{name:"--editor",description:"The command to run for npm edit or npm config edit"}]},{name:"explore",description:"Browse an installed package",args:{name:"package",filterStrategy:"fuzzy",generators:E}},{name:"fund",description:"Retrieve funding information"},{name:"get",description:"Echo the config value to stdout"},{name:"help",description:"Get help on npm",args:{name:"term",isVariadic:!0,description:"Terms to search for"},options:[{name:"--viewer",description:"The program to use to view help content",args:{name:"viewer"}}]},{name:"help-search",description:"Search npm help documentation",args:{name:"text",description:"Text to search for"},options:[T]},{name:"hook",description:"Manage registry hooks"},{name:"install-ci-test",description:"Install a project with a clean slate and run tests"},{name:"install-test",description:"Install package(s) and run tests"},{name:"it",description:"Install package(s) and run tests"},{name:"link",description:"Symlink a package folder",args:{name:"path",template:"filepaths"}},{name:"ln",description:"Symlink a package folder"},{name:"logout",description:"Log out of the registry",options:[o,{name:"--scope",description:"Associate an operation with a scope for a scoped registry",args:{name:"scope",description:"Scope name"}}]},{name:["ls","list"],description:"List installed packages",options:$,args:{name:"[@scope]/pkg",isVariadic:!0}},{name:"org",description:"Manage orgs",subcommands:[{name:"set",description:"Add a user to an org or manage roles",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name"},{name:"role",isOptional:!0,suggestions:["developer","admin","owner"]}],options:[o,m]},{name:"rm",description:"Remove a user from an org",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name"}],options:[o,m]},{name:"ls",description:"List users in an org or see what roles a particular user has in an org",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name",isOptional:!0}],options:[o,m,g,v]}]},{name:"outdated",description:"Check for outdated packages",args:{name:"[<@scope>/]<pkg>",isVariadic:!0,isOptional:!0},options:[{name:["-a","-all"],description:"Show all outdated or installed packages"},g,T,v,{name:"-g",description:"Checks globally"},...c]},{name:["owner","author"],description:"Manage package owners",subcommands:[{name:"ls",description:"List all the users who have access to modify a package and push new versions. Handy when you need to know who to bug for help",args:{name:"[@scope/]pkg"},options:[o]},{name:"add",description:"Add a new user as a maintainer of a package. This user is enabled to modify metadata, publish new versions, and add other owners",args:[{name:"user"},{name:"[@scope/]pkg"}],options:[o,m]},{name:"rm",description:"Remove a user from the package owner list. This immediately revokes their privileges",args:[{name:"user"},{name:"[@scope/]pkg"}],options:[o,m]}]},{name:"pack",description:"Create a tarball from a package",args:{name:"[<@scope>/]<pkg>"},options:[g,S,...c,{name:"--pack-destination",description:"Directory in which npm pack will save tarballs",args:{name:"pack-destination",template:["folders"]}}]},{name:"ping",description:"Ping npm registry",options:[o]},{name:"pkg",description:"Manages your package.json",subcommands:[{name:"get",description:"Retrieves a value key, defined in your package.json file. It is possible to get multiple values and values for child fields",args:{name:"field",description:"Name of the field to get. You can view child fields by separating them with a period",isVariadic:!0},options:[g,...c]},{name:"set",description:"Sets a value in your package.json based on the field value. It is possible to set multiple values and values for child fields",args:{name:"field",description:"Name of the field to set. You can set child fields by separating them with a period",isVariadic:!0},options:[g,...c,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input. Allow clobbering existing values in npm pkg",isDangerous:!0}]},{name:"delete",description:"Deletes a key from your package.json",args:{name:"key",description:"Name of the key to delete. You can delete child fields by separating them with a period",isVariadic:!0},options:[...c,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input. Allow clobbering existing values in npm pkg",isDangerous:!0}]}]},{name:"prefix",description:"Display prefix",options:[{name:["-g","--global"],description:"Print the global prefix to standard out"}]},{name:"profile",description:"Change settings on your registry profile",subcommands:[{name:"get",description:"Display all of the properties of your profile, or one or more specific properties",args:{name:"property",isOptional:!0,description:"Property name"},options:[o,g,v,m]},{name:"set",description:"Set the value of a profile property",args:[{name:"property",description:"Property name",suggestions:["email","fullname","homepage","freenode","twitter","github"]},{name:"value",description:"Property value"}],options:[o,g,v,m],subcommands:[{name:"password",description:"Change your password. This is interactive, you'll be prompted for your current password and a new password"}]},{name:"enable-2fa",description:"Enables two-factor authentication",args:{name:"mode",description:"Mode for two-factor authentication. Defaults to auth-and-writes mode",isOptional:!0,suggestions:[{name:"auth-only",description:"Require an OTP when logging in or making changes to your account's authentication"},{name:"auth-and-writes",description:"Requires an OTP at all the times auth-only does, and also requires one when publishing a module, setting the latest dist-tag, or changing access via npm access and npm owner"}]},options:[o,m]},{name:"disable-2fa",description:"Disables two-factor authentication",options:[o,m]}]},{name:"prune",description:"Remove extraneous packages",args:{name:"[<@scope>/]<pkg>",isOptional:!0},options:[j,S,g,{name:"--production",description:"Remove the packages specified in your devDependencies"},...c]},{name:"publish",description:"Publish a package",args:{name:"tarball|folder",isOptional:!0,description:"A url or file path to a gzipped tar archive containing a single folder with a package.json file inside | A folder containing a package.json file",template:["folders"]},options:[{name:"--tag",description:"Registers the published package with the given tag",args:{name:"tag"}},...c,{name:"--access",description:"Sets scoped package to be publicly viewable if set to 'public'",args:{default:"restricted",suggestions:["restricted","public"]}},S,m]},{name:["rebuild","rb"],description:"Rebuild a package",args:{name:"[<@scope>/]<pkg>[@<version>]"},options:[I,...c,b,{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"}]},{name:"repo",description:"Open package repository page in the browser",args:{name:"package",isOptional:!0,generators:y,debounce:!0,isVariadic:!0},options:[...c,{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm repo command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]}]},{name:"restart",description:"Restart a package",options:[b,x,{name:"--",args:{name:"arg",description:"Arguments to be passed to the restart script"}}]},{name:"root",description:"Display npm root",options:[{name:["-g","--global"],description:"Print the effective global node_modules folder to standard out"}]},{name:["search","s","se","find"],description:"Search for packages",args:{name:"search terms",isVariadic:!0},options:[T,g,{name:"--color",description:"Show colors",args:{name:"always",suggestions:["always"],description:"Always show colors"},exclusiveOn:["--no-color"]},{name:"--no-color",description:"Do not show colors",exclusiveOn:["--color"]},v,{name:"--no-description",description:"Do not show descriptions"},{name:"--searchopts",description:"Space-separated options that are always passed to search",args:{name:"searchopts"}},{name:"--searchexclude",description:"Space-separated options that limit the results from search",args:{name:"searchexclude"}},o,{name:"--prefer-online",description:"If true, staleness checks for cached data will be forced, making the CLI look for updates immediately even for fresh package data",exclusiveOn:["--prefer-offline","--offline"]},{name:"--prefer-offline",description:"If true, staleness checks for cached data will be bypassed, but missing data will be requested from the server",exclusiveOn:["--prefer-online","--offline"]},{name:"--offline",description:"Force offline mode: no network requests will be done during install",exclusiveOn:["--prefer-online","--prefer-offline"]}]},{name:"set",description:"Sets the config key to the value"},{name:"set-script",description:"Set tasks in the scripts section of package.json",args:[{name:"script",description:"Name of the task to be added to the scripts section of package.json"},{name:"command",description:"Command to run when script is called"}],options:c},{name:"shrinkwrap",description:"Lock down dependency versions for publication"},{name:"star",description:"Mark your favorite packages",args:{name:"pkg",description:"Package to mark as favorite"},options:[o,{name:"--no-unicode",description:"Do not use unicode characters in the tree output"}]},{name:"stars",description:"View packages marked as favorites",args:{name:"user",isOptional:!0,description:"View packages marked as favorites by <user>"},options:[o]},{name:"start",description:"Start a package",options:[b,x,{name:"--",args:{name:"arg",description:"Arguments to be passed to the start script"}}]},{name:"stop",description:"Stop a package",options:[b,x,{name:"--",args:{name:"arg",description:"Arguments to be passed to the stop script"}}]},{name:"team",description:"Manage organization teams and team memberships",subcommands:[{name:"create",args:{name:"scope:team"},options:[o,m]},{name:"destroy",args:{name:"scope:team"},options:[o,m]},{name:"add",args:[{name:"scope:team"},{name:"user"}],options:[o,m]},{name:"rm",args:[{name:"scope:team"},{name:"user"}],options:[o,m]},{name:"ls",args:{name:"scope|scope:team"},options:[o,g,v]}]},{name:["test","tst","t"],description:"Test a package",options:[b,x]},{name:"token",description:"Manage your authentication tokens",subcommands:[{name:"list",description:"Shows a table of all active authentication tokens",options:[g,v]},{name:"create",description:"Create a new authentication token",options:[{name:"--read-only",description:"This is used to mark a token as unable to publish when configuring limited access tokens with the npm token create command"},{name:"--cidr",description:"This is a list of CIDR address to be used when configuring limited access tokens with the npm token create command",isRepeatable:!0,args:{name:"cidr"}}]},{name:"revoke",description:"Immediately removes an authentication token from the registry. You will no longer be able to use it",args:{name:"idtoken"}}],options:[o,m]},P("uninstall"),P(["r","rm"]),P("un"),P("remove"),P("unlink"),{name:"unpublish",description:"Remove a package from the registry",args:{name:"[<@scope>/]<pkg>[@<version>]"},options:[S,{name:["-f","--force"],description:"Allow unpublishing all versions of a published package. Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input",isDangerous:!0},...c]},{name:"unstar",description:"Remove an item from your favorite packages",args:{name:"pkg",description:"Package to unmark as favorite"},options:[o,m,{name:"--no-unicode",description:"Do not use unicode characters in the tree output"}]},{name:["update","upgrade","up"],description:"Update a package",options:[{name:"-g",description:"Update global package"},{name:"--global-style",description:"Causes npm to install the package into your local node_modules folder with the same layout it uses with the global node_modules folder"},{name:"--legacy-bundling",description:"Causes npm to install the package such that versions of npm prior to 1.4, such as the one included with node 0.8, can install the package"},{name:"--strict-peer-deps",description:"If set to true, and --legacy-peer-deps is not set, then any conflicting peerDependencies will be treated as an install failure"},{name:"--no-package-lock",description:"Ignores package-lock.json files when installing"},j,b,{name:"--no-audit",description:"Submit audit reports alongside the current npm command to the default registry and all registries configured for scopes"},{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"},{name:"--no-fund",description:"Hides the message at the end of each npm install acknowledging the number of dependencies looking for funding"},{name:"--save",description:"Update the semver values of direct dependencies in your project package.json"},S,...c]},{name:"version",description:"Bump a package version",options:[...c,g,{name:"--allow-same-version",description:"Prevents throwing an error when npm version is used to set the new version to the same value as the current version"},{name:"--no-commit-hooks",description:"Do not run git commit hooks when using the npm version command"},{name:"--no-git-tag-version",description:"Do not tag the commit when using the npm version command"},{name:"--preid",description:'The "prerelease identifier" to use as a prefix for the "prerelease" part of a semver. Like the rc in 1.2.0-rc.8',args:{name:"prerelease-id"}},{name:"--sign-git-tag",description:"If set to true, then the npm version command will tag the version using -s to add a signature"}]},{name:["view","v","info","show"],description:"View registry info",options:[...c,g]},{name:"whoami",description:"Display npm username",options:[o]}]};var U={alias:async(e,n)=>{let t=await n({command:"npm",args:["prefix"]});if(t.status!==0)throw new Error("npm prefix command failed");let i=await n({command:"cat",args:[`${t.stdout.trim()}/package.json`]}),a=JSON.parse(i.stdout).scripts?.[e];if(!a)throw new Error(`Script not found: '${e}'`);return a}},R=new Set(["vue","vite","nuxt","react-native","degit","expo","jest","next","electron","prisma","eslint","prettier","tsc","typeorm","babel","remotion","autocomplete-tools","redwood","rw","create-completion-spec","publish-spec-to-team","capacitor","cap"]),H={custom:async(e,n,t)=>{let{stdout:i}=await n({command:"yarn",args:["global","dir"]}),{stdout:a}=await n({command:"cat",args:[`${i.trim()}/package.json`]});if(a.trim()=="")return[];try{let r=JSON.parse(a),s=r.dependencies||{},d=r.devDependencies||{};return[...Object.keys(s),...Object.keys(d)].filter(u=>!e.includes(u)).map(u=>({name:u,icon:"\u{1F4E6}"}))}catch{}return[]}},X={script:["yarn","list","--depth=0","--json"],postProcess:e=>{if(e.trim()=="")return[];try{return JSON.parse(e).data.trees.map(i=>({name:i.name.split("@")[0],icon:"\u{1F4E6}"}))}catch{}return[]}},L={script:["yarn","config","list"],postProcess:function(e){if(e.trim()=="")return[];try{let n=e.indexOf("{"),t=e.indexOf("}"),i=e.substring(n,t+1);i=i.replace(/\'/gi,'"').replace("lastUpdateCheck",'"lastUpdateCheck"').replace("registry",'"lastUpdateCheck"');let a=JSON.parse(i);if(a)return Object.keys(a).map(r=>({name:r}))}catch{}return[]}},f={script:["bash","-c","until [[ -f package.json ]] || [[ $PWD = '/' ]]; do cd ..; done; cat package.json"],postProcess:function(e,n=[]){if(e.trim()==="")return[];try{let t=JSON.parse(e),i=t.dependencies??{},a=t.devDependencies,r=t.optionalDependencies??{};return Object.assign(i,a,r),Object.keys(i).filter(s=>!n.some(l=>l===s)).map(s=>({name:s,icon:"\u{1F4E6}",description:i[s]?"dependency":r[s]?"optionalDependency":"devDependency"}))}catch(t){return console.error(t),[]}}},p=[{name:["-s","--silent"],description:"Skip Yarn console logs"},{name:"--no-default-rc",description:"Prevent Yarn from automatically detecting yarnrc and npmrc files"},{name:"--use-yarnrc",description:"Specifies a yarnrc file that Yarn should use (.yarnrc only, not .npmrc) (default: )",args:{name:"path",template:"filepaths"}},{name:"--verbose",description:"Output verbose messages on internal operations"},{name:"--offline",description:"Trigger an error if any required dependencies are not available in local cache"},{name:"--prefer-offline",description:"Use network only if dependencies are not available in local cache"},{name:["--enable-pnp","--pnp"],description:"Enable the Plug'n'Play installation"},{name:"--json",description:"Format Yarn log messages as lines of JSON"},{name:"--ignore-scripts",description:"Don't run lifecycle scripts"},{name:"--har",description:"Save HAR output of network traffic"},{name:"--ignore-platform",description:"Ignore platform checks"},{name:"--ignore-engines",description:"Ignore engines check"},{name:"--ignore-optional",description:"Ignore optional dependencies"},{name:"--force",description:"Install and build packages even if they were built before, overwrite lockfile"},{name:"--skip-integrity-check",description:"Run install without checking if node_modules is installed"},{name:"--check-files",description:"Install will verify file tree of packages for consistency"},{name:"--no-bin-links",description:"Don't generate bin links when setting up packages"},{name:"--flat",description:"Only allow one version of a package"},{name:["--prod","--production"],description:"Instruct Yarn to ignore NODE_ENV and take its production-or-not status from this flag instead"},{name:"--no-lockfile",description:"Don't read or generate a lockfile"},{name:"--pure-lockfile",description:"Don't generate a lockfile"},{name:"--frozen-lockfile",description:"Don't generate a lockfile and fail if an update is needed"},{name:"--update-checksums",description:"Update package checksums from current repository"},{name:"--link-duplicates",description:"Create hardlinks to the repeated modules in node_modules"},{name:"--link-folder",description:"Specify a custom folder to store global links",args:{name:"path",template:"folders"}},{name:"--global-folder",description:"Specify a custom folder to store global packages",args:{name:"path",template:"folders"}},{name:"--modules-folder",description:"Rather than installing modules into the node_modules folder relative to the cwd, output them here",args:{name:"path",template:"folders"}},{name:"--preferred-cache-folder",description:"Specify a custom folder to store the yarn cache if possible",args:{name:"path",template:"folders"}},{name:"--cache-folder",description:"Specify a custom folder that must be used to store the yarn cache",args:{name:"path",template:"folders"}},{name:"--mutex",description:"Use a mutex to ensure only one yarn instance is executing",args:{name:"type[:specifier]"}},{name:"--emoji",description:"Enables emoji in output",args:{default:"true",suggestions:["true","false"]}},{name:"--cwd",description:"Working directory to use",args:{name:"cwd",template:"folders"}},{name:["--proxy","--https-proxy"],description:"",args:{name:"host"}},{name:"--registry",description:"Override configuration registry",args:{name:"url"}},{name:"--no-progress",description:"Disable progress bar"},{name:"--network-concurrency",description:"Maximum number of concurrent network requests",args:{name:"number"}},{name:"--network-timeout",description:"TCP timeout for network requests",args:{name:"milliseconds"}},{name:"--non-interactive",description:"Do not show interactive prompts"},{name:"--scripts-prepend-node-path",description:"Prepend the node executable dir to the PATH in scripts"},{name:"--no-node-version-check",description:"Do not warn when using a potentially unsupported Node version"},{name:"--focus",description:"Focus on a single workspace by installing remote copies of its sibling workspaces"},{name:"--otp",description:"One-time password for two factor authentication",args:{name:"otpcode"}}],K={script:function(e){return e[e.length-1]===""?void 0:["curl","-s","-H","Accept: application/json",`https://api.npms.io/v2/search?q=${"create-"+e[e.length-1]}&size=20`]},cache:{ttl:100*24*60*60*3},postProcess:function(e){try{return JSON.parse(e).results.map(n=>({name:n.package.name.substring(7),description:n.package.description}))}catch{return[]}}},de={name:"yarn",description:"Manage packages and run scripts",generateSpec:async(e,n)=>({name:"yarn",subcommands:(await n({command:"bash",args:["-c","until [[ -d node_modules/ ]] || [[ $PWD = '/' ]]; do cd ..; done; ls -1 node_modules/.bin/"]})).stdout.split(`
|
|
3
|
-
`).filter(a=>R.has(a)).map(a=>({name:a,loadSpec:a==="rw"?"redwood":a,icon:"fig://icon?type=package"}))}),args:{generators:D,filterStrategy:"fuzzy",parserDirectives:U,isOptional:!0,isCommand:!0},options:[{name:"--disable-pnp",description:"Disable the Plug'n'Play installation"},{name:"--emoji",description:"Enable emoji in output (default: true)",args:{name:"bool",suggestions:[{name:"true"},{name:"false"}]}},{name:["--enable-pnp","--pnp"],description:"Enable the Plug'n'Play installation"},{name:"--flat",description:"Only allow one version of a package"},{name:"--focus",description:"Focus on a single workspace by installing remote copies of its sibling workspaces"},{name:"--force",description:"Install and build packages even if they were built before, overwrite lockfile"},{name:"--frozen-lockfile",description:"Don't generate a lockfile and fail if an update is needed"},{name:"--global-folder",description:"Specify a custom folder to store global packages",args:{template:"folders"}},{name:"--har",description:"Save HAR output of network traffic"},{name:"--https-proxy",description:"",args:{name:"path",suggestions:[{name:"https://"}]}},{name:"--ignore-engines",description:"Ignore engines check"},{name:"--ignore-optional",description:"Ignore optional dependencies"},{name:"--ignore-platform",description:"Ignore platform checks"},{name:"--ignore-scripts",description:"Don't run lifecycle scripts"},{name:"--json",description:"Format Yarn log messages as lines of JSON (see jsonlines.org)"},{name:"--link-duplicates",description:"Create hardlinks to the repeated modules in node_modules"},{name:"--link-folder",description:"Specify a custom folder to store global links",args:{template:"folders"}},{name:"--modules-folder",description:"Rather than installing modules into the node_modules folder relative to the cwd, output them here",args:{template:"folders"}},{name:"--mutex",description:"Use a mutex to ensure only one yarn instance is executing",args:[{name:"type",suggestions:[{name:":"}]},{name:"specifier",suggestions:[{name:":"}]}]},{name:"--network-concurrency",description:"Maximum number of concurrent network requests",args:{name:"number"}},{name:"--network-timeout",description:"TCP timeout for network requests",args:{name:"milliseconds"}},{name:"--no-bin-links",description:"Don't generate bin links when setting up packages"},{name:"--no-default-rc",description:"Prevent Yarn from automatically detecting yarnrc and npmrc files"},{name:"--no-lockfile",description:"Don't read or generate a lockfile"},{name:"--non-interactive",description:"Do not show interactive prompts"},{name:"--no-node-version-check",description:"Do not warn when using a potentially unsupported Node version"},{name:"--no-progress",description:"Disable progress bar"},{name:"--offline",description:"Trigger an error if any required dependencies are not available in local cache"},{name:"--otp",description:"One-time password for two factor authentication",args:{name:"otpcode"}},{name:"--prefer-offline",description:"Use network only if dependencies are not available in local cache"},{name:"--preferred-cache-folder",description:"Specify a custom folder to store the yarn cache if possible",args:{template:"folders"}},{name:["--prod","--production"],description:"",args:{}},{name:"--proxy",description:"",args:{name:"host"}},{name:"--pure-lockfile",description:"Don't generate a lockfile"},{name:"--registry",description:"Override configuration registry",args:{name:"url"}},{name:["-s","--silent"],description:"Skip Yarn console logs, other types of logs (script output) will be printed"},{name:"--scripts-prepend-node-path",description:"Prepend the node executable dir to the PATH in scripts",args:{suggestions:[{name:"true"},{name:"false"}]}},{name:"--skip-integrity-check",description:"Run install without checking if node_modules is installed"},{name:"--strict-semver",description:""},...p,{name:["-v","--version"],description:"Output the version number"},{name:["-h","--help"],description:"Output usage information"}],subcommands:[{name:"add",description:"Installs a package and any packages that it depends on",args:{name:"package",generators:y,debounce:!0,isVariadic:!0},options:[...p,{name:["-W","--ignore-workspace-root-check"],description:"Required to run yarn add inside a workspace root"},{name:["-D","--dev"],description:"Save package to your `devDependencies`"},{name:["-P","--peer"],description:"Save package to your `peerDependencies`"},{name:["-O","--optional"],description:"Save package to your `optionalDependencies`"},{name:["-E","--exact"],description:"Install exact version",dependsOn:["--latest"]},{name:["-T","--tilde"],description:"Install most recent release with the same minor version"},{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"audit",description:"Perform a vulnerability audit against the installed packages",options:[{name:"--summary",description:"Only print the summary"},{name:"--groups",description:"Only audit dependencies from listed groups. Default: devDependencies, dependencies, optionalDependencies",args:{name:"group_name",isVariadic:!0}},{name:"--level",description:"Only print advisories with severity greater than or equal to one of the following: info|low|moderate|high|critical. Default: info",args:{name:"severity",suggestions:[{name:"info"},{name:"low"},{name:"moderate"},{name:"high"},{name:"critical"}]}},{name:["-h","--help"],description:"Output usage information"}]},{name:"autoclean",description:"Cleans and removes unnecessary files from package dependencies",options:[{name:["-h","--help"],description:"Output usage information"},{name:["-i","--init"],description:"Creates the .yarnclean file if it does not exist, and adds the default entries"},{name:["-f","--force"],description:"If a .yarnclean file exists, run the clean process"}]},{name:"bin",description:"Displays the location of the yarn bin folder",options:[{name:["-h","--help"],description:"Output usage information"}]},{name:"cache",description:"Yarn cache list will print out every cached package",options:[...p,{name:["-h","--help"],description:"Output usage information"}],subcommands:[{name:"clean",description:"Clear global cache"},{name:"dir",description:"Print yarn\u2019s global cache path"},{name:"list",description:"Print out every cached package",options:[{name:"--pattern",description:"Filter cached packages by pattern",args:{name:"pattern"}}]}]},{name:"config",description:"Configure yarn",options:[{name:["-h","--help"],description:"Output usage information"}],subcommands:[{name:"set",description:"Sets the config key to a certain value",options:[{name:["-g","--global"],description:"Set global config"}]},{name:"get",description:"Print the value for a given key",args:{generators:L}},{name:"delete",description:"Deletes a given key from the config",args:{generators:L}},{name:"list",description:"Displays the current configuration"}]},{name:"create",description:"Creates new projects from any create-* starter kits",args:{name:"cli",generators:K,loadSpec:async e=>({name:"create-"+e,type:"global"}),isCommand:!0},options:[...p,{name:["-h","--help"],description:"Output usage information"}]},{name:"exec",description:"",options:[{name:["-h","--help"],description:"Output usage information"}]},{name:"generate-lock-entry",description:"Generates a lock file entry",options:[{name:"--use-manifest",description:"Specify which manifest file to use for generating lock entry",args:{template:"filepaths"}},{name:"--resolved",description:"Generate from <*.tgz>#<hash>",args:{template:"filepaths"}},{name:["-h","--help"],description:"Output usage information"}]},{name:"global",description:"Manage yarn globally",subcommands:[{name:"add",description:"Install globally packages on your operating system",args:{name:"package",generators:y,debounce:!0,isVariadic:!0}},{name:"bin",description:"Displays the location of the yarn global bin folder"},{name:"dir",description:"Displays the location of the global installation folder"},{name:"ls",description:"List globally installed packages (deprecated)"},{name:"list",description:"List globally installed packages"},{name:"remove",description:"Remove globally installed packages",args:{name:"package",filterStrategy:"fuzzy",generators:H,isVariadic:!0},options:[...p,{name:["-W","--ignore-workspace-root-check"],description:"Required to run yarn remove inside a workspace root"},{name:["-h","--help"],description:"Output usage information"}]},{name:"upgrade",description:"Upgrade globally installed packages",options:[...p,{name:["-S","--scope"],description:"Upgrade packages under the specified scope",args:{name:"scope"}},{name:["-L","--latest"],description:"List the latest version of packages"},{name:["-E","--exact"],description:"Install exact version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-P","--pattern"],description:"Upgrade packages that match pattern",args:{name:"pattern"}},{name:["-T","--tilde"],description:"Install most recent release with the same minor version. Only used when --latest is specified"},{name:["-C","--caret"],description:"Install most recent release with the same major version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"upgrade-interactive",description:"Display the outdated packages before performing any upgrade",options:[{name:"--latest",description:"Use the version tagged latest in the registry"}]}],options:[...p,{name:"--prefix",description:"Bin prefix to use to install binaries",args:{name:"prefix"}},{name:"--latest",description:"Bin prefix to use to install binaries"},{name:["-h","--help"],description:"Output usage information"}]},{name:"help",description:"Output usage information"},{name:"import",description:"Generates yarn.lock from an npm package-lock.json file"},{name:"info",description:"Show information about a package"},{name:"init",description:"Interactively creates or updates a package.json file",options:[...p,{name:["-y","--yes"],description:"Use default options"},{name:["-p","--private"],description:"Use default options and private true"},{name:["-i","--install"],description:"Install a specific Yarn release",args:{name:"version"}},{name:"-2",description:"Generates the project using Yarn 2"},{name:["-h","--help"],description:"Output usage information"}]},{name:"install",description:"Install all the dependencies listed within package.json",options:[...p,{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"licenses",description:"",subcommands:[{name:"list",description:"List licenses for installed packages"},{name:"generate-disclaimer",description:"List of licenses from all the packages"}]},{name:"link",description:"Symlink a package folder during development",args:{isOptional:!0,name:"package"},options:[...p,{name:["-h","--help"],description:"Output usage information"}]},{name:"list",description:"Lists all dependencies for the current working directory",options:[{name:"--depth",description:"Restrict the depth of the dependencies"},{name:"--pattern",description:"Filter the list of dependencies by the pattern"}]},{name:"login",description:"Store registry username and email"},{name:"logout",description:"Clear registry username and email"},{name:"node",description:""},{name:"outdated",description:"Checks for outdated package dependencies",options:[...p,{name:["-h","--help"],description:"Output usage information"}]},{name:"owner",description:"Manage package owners",subcommands:[{name:"list",description:"Lists all of the owners of a package",args:{name:"package"}},{name:"add",description:"Adds the user as an owner of the package",args:{name:"package"}},{name:"remove",description:"Removes the user as an owner of the package",args:[{name:"user"},{name:"package"}]}]},{name:"pack",description:"Creates a compressed gzip archive of package dependencies",options:[{name:"--filename",description:"Creates a compressed gzip archive of package dependencies and names the file filename"}]},{name:"policies",description:"Defines project-wide policies for your project",subcommands:[{name:"set-version",description:"Will download the latest stable release",options:[{name:"--rc",description:"Download the latest rc release"}]}]},{name:"publish",description:"Publishes a package to the npm registry",args:{name:"Tarball or Folder",template:"folders"},options:[...p,{name:["-h","--help"],description:"Output usage information"},{name:"--major",description:"Auto-increment major version number"},{name:"--minor",description:"Auto-increment minor version number"},{name:"--patch",description:"Auto-increment patch version number"},{name:"--premajor",description:"Auto-increment premajor version number"},{name:"--preminor",description:"Auto-increment preminor version number"},{name:"--prepatch",description:"Auto-increment prepatch version number"},{name:"--prerelease",description:"Auto-increment prerelease version number"},{name:"--preid",description:"Add a custom identifier to the prerelease",args:{name:"preid"}},{name:"--message",description:"Message",args:{name:"message"}},{name:"--no-git-tag-version",description:"No git tag version"},{name:"--no-commit-hooks",description:"Bypass git hooks when committing new version"},{name:"--access",description:"Access",args:{name:"access"}},{name:"--tag",description:"Tag",args:{name:"tag"}}]},{name:"remove",description:"Remove installed package",args:{filterStrategy:"fuzzy",generators:f,isVariadic:!0},options:[...p,{name:["-W","--ignore-workspace-root-check"],description:"Required to run yarn remove inside a workspace root"},{name:["-h","--help"],description:"Output usage information"}]},{name:"run",description:"Runs a defined package script",options:[...p,{name:["-h","--help"],description:"Output usage information"}],args:[{name:"script",description:"Script to run from your package.json",generators:D,filterStrategy:"fuzzy",parserDirectives:U,isCommand:!0},{name:"env",suggestions:["env"],description:"Lists environment variables available to scripts",isOptional:!0}]},{name:"tag",description:"Add, remove, or list tags on a package"},{name:"team",description:"Maintain team memberships",subcommands:[{name:"create",description:"Create a new team",args:{name:"<scope:team>"}},{name:"destroy",description:"Destroys an existing team",args:{name:"<scope:team>"}},{name:"add",description:"Add a user to an existing team",args:[{name:"<scope:team>"},{name:"<user>"}]},{name:"remove",description:"Remove a user from a team they belong to",args:{name:"<scope:team> <user>"}},{name:"list",description:"If performed on an organization name, will return a list of existing teams under that organization. If performed on a team, it will instead return a list of all users belonging to that particular team",args:{name:"<scope>|<scope:team>"}}]},{name:"unlink",description:"Unlink a previously created symlink for a package"},{name:"unplug",description:""},{name:"upgrade",description:"Upgrades packages to their latest version based on the specified range",args:{name:"package",generators:f,filterStrategy:"fuzzy",isVariadic:!0,isOptional:!0},options:[...p,{name:["-S","--scope"],description:"Upgrade packages under the specified scope",args:{name:"scope"}},{name:["-L","--latest"],description:"List the latest version of packages"},{name:["-E","--exact"],description:"Install exact version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-P","--pattern"],description:"Upgrade packages that match pattern",args:{name:"pattern"}},{name:["-T","--tilde"],description:"Install most recent release with the same minor version. Only used when --latest is specified"},{name:["-C","--caret"],description:"Install most recent release with the same major version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"upgrade-interactive",description:"Upgrades packages in interactive mode",options:[{name:"--latest",description:"Use the version tagged latest in the registry"}]},{name:"version",description:"Update version of your package",options:[...p,{name:["-h","--help"],description:"Output usage information"},{name:"--new-version",description:"New version",args:{name:"version"}},{name:"--major",description:"Auto-increment major version number"},{name:"--minor",description:"Auto-increment minor version number"},{name:"--patch",description:"Auto-increment patch version number"},{name:"--premajor",description:"Auto-increment premajor version number"},{name:"--preminor",description:"Auto-increment preminor version number"},{name:"--prepatch",description:"Auto-increment prepatch version number"},{name:"--prerelease",description:"Auto-increment prerelease version number"},{name:"--preid",description:"Add a custom identifier to the prerelease",args:{name:"preid"}},{name:"--message",description:"Message",args:{name:"message"}},{name:"--no-git-tag-version",description:"No git tag version"},{name:"--no-commit-hooks",description:"Bypass git hooks when committing new version"},{name:"--access",description:"Access",args:{name:"access"}},{name:"--tag",description:"Tag",args:{name:"tag"}}]},{name:"versions",description:"Displays version information of the currently installed Yarn, Node.js, and its dependencies"},{name:"why",description:"Show information about why a package is installed",args:{name:"package",filterStrategy:"fuzzy",generators:X},options:[...p,{name:["-h","--help"],description:"Output usage information"},{name:"--peers",description:"Print the peer dependencies that match the specified name"},{name:["-R","--recursive"],description:"List, for each workspace, what are all the paths that lead to the dependency"}]},{name:"workspace",description:"Manage workspace",filterStrategy:"fuzzy",generateSpec:async(e,n)=>{let i=(await n({command:"yarn",args:["--version"]})).stdout.startsWith("1."),a=async()=>{let{stdout:s}=await n({command:"yarn",args:["workspaces","info"]}),d=s.indexOf("{"),l=s.lastIndexOf("}");return Object.entries(JSON.parse(s.slice(d,l+1))).map(([w,{location:u}])=>({name:w,location:u}))},r=async()=>(await n({command:"yarn",args:["workspaces","list","--json"]})).stdout.split(`
|
|
4
|
-
`).map(
|
|
1
|
+
function I(e){return{name:e,description:"Uninstall a package",args:{name:"package",generators:R,filterStrategy:"fuzzy",isVariadic:!0},options:ee}}var z=e=>(e.match(/@/g)||[]).length,Q=e=>async(n,a,i)=>{let t=n[n.length-1];if(t==="")return[];let p=e&&e.length>0?`+keywords:${e.join(",")}`:"",g=["-s","-H","Accept: application/json",p?`https://api.npms.io/v2/search?size=20&q=${t}${p}`:`https://api.npms.io/v2/search/suggestions?q=${t}&size=20`],u=["-s","-H","Accept: application/vnd.npm.install-v1+json",`https://registry.npmjs.org/${t.slice(0,-1)}`],S=k=>a({command:"curl",args:k[k.length-1]==="@"?u:g}),f=t.startsWith("@")?z(t)>1:t.includes("@");try{let k=JSON.parse((await S(t)).stdout);if(f){let x=Object.entries(k["dist-tags"]||{}).map(([L,K])=>({name:L,description:K}));return x.push(...Object.keys(k.versions).map(L=>({name:L})).reverse()),x}return(p?k.results:k).map(x=>({name:x.package.name,description:x.package.description}))}catch(k){return console.error({error:k}),[]}},l={trigger:(e,n)=>n.startsWith("@")?!(z(n)>1&&z(e)>1):!(n.includes("@")&&e.includes("@")),getQueryTerm:"@",cache:{ttl:1e3*60*60*24*2},custom:Q()},Z={custom:async(e,n)=>{let{stdout:a}=await n({command:"npm",args:["prefix"]}),{stdout:i}=await n({command:"cat",args:[`${a}/package.json`]}),t=[];try{if(i.trim()=="")return t;let o=JSON.parse(i).workspaces;if(o)for(let g of o)t.push({name:g,description:"Workspaces"})}catch(p){console.log(p)}return t}},R={trigger:e=>e==="-g"||e==="--global",custom:async function(e,n){if(!e.includes("-g")&&!e.includes("--global")){let{stdout:a}=await n({command:"npm",args:["prefix"]}),{stdout:i}=await n({command:"cat",args:[`${a}/package.json`]}),t=JSON.parse(i),p=t.dependencies??{},o=t.devDependencies,g=t.optionalDependencies??{};return Object.assign(p,o,g),Object.keys(p).filter(u=>!e.some(f=>f===u)).map(u=>({name:u,icon:"\u{1F4E6}",description:p[u]?"dependency":g[u]?"optionalDependency":"devDependency"}))}else{let{stdout:a}=await n({command:"bash",args:["-c","ls -1 `npm root -g`"]});return a.split(`
|
|
2
|
+
`).map(i=>({name:i,icon:"\u{1F4E6}",description:"Global dependency"}))}}},D={cache:{strategy:"stale-while-revalidate",cacheByDirectory:!0},script:["bash","-c","until [[ -f package.json ]] || [[ $PWD = '/' ]]; do cd ..; done; cat package.json"],postProcess:function(e,[n]){if(e.trim()=="")return[];try{let a=JSON.parse(e),i=a.scripts,t=a.fig||{};if(i)return Object.entries(i).map(([p,o])=>{let g=n==="yarn"?"fig://icon?type=yarn":"fig://icon?type=npm",u=t[p];return{name:p,icon:g,description:o,priority:51,...u}})}catch(a){console.error(a)}return[]}},P={name:["-g","--global"],description:"Operates in 'global' mode, so that packages are installed into the prefix folder instead of the current working directory"},c={name:"--json",description:"Show output in json format"},w={name:"--omit",description:"Dependency types to omit from the installation tree on disk",args:{name:"Package type",default:"dev",suggestions:["dev","optional","peer"]},isRepeatable:3},O={name:["-p","--parseable"],description:"Output parseable results from commands that write to standard output"},A={name:["-l","--long"],description:"Show extended information"},r=[{name:["-w","--workspace"],description:"Enable running a command in the context of the configured workspaces of the current project",args:{name:"workspace",generators:Z,isVariadic:!0}},{name:["-ws","--workspaces"],description:"Enable running a command in the context of all the configured workspaces"}],ee=[{name:["-S","--save"],description:"Package will be removed from your dependencies"},{name:["-D","--save-dev"],description:"Package will appear in your `devDependencies`"},{name:["-O","--save-optional"],description:"Package will appear in your `optionalDependencies`"},{name:"--no-save",description:"Prevents saving to `dependencies`"},{name:"-g",description:"Uninstall global package"},...r],ne=[{name:["-a","--all"],description:"Show all outdated or installed packages"},c,A,O,{name:"--depth",description:"The depth to go when recursing packages",args:{name:"depth"}},{name:"--link",description:"Limits output to only those packages that are linked"},{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},{name:"--no-unicode",description:"Uses unicode characters in the tree output"},P,w,...r],s={name:"--registry",description:"The base URL of the npm registry",args:{name:"registry"}},E={name:"--verbose",description:"Show extra information",args:{name:"verbose"}},d={name:"--otp",description:"One-time password from a two-factor authenticator",args:{name:"otp"}},y={name:"--ignore-scripts",description:"If true, npm does not run scripts specified in package.json files"},j={name:"--script-shell",description:"The shell to use for scripts run with the npm exec, npm run and npm init <pkg> commands",args:{name:"script-shell"}},v={name:"--dry-run",description:"Indicates that you don't want npm to make any changes and that it should only report what it would have done"},C={name:"--install-strategy",description:"Sets the strategy for installing packages in node_modules",args:{name:"strategy",default:"hoisted",suggestions:["hoisted","nested","shallow","linked"]}},G={name:"--install-links",description:"Install file: protocol dependencies outside the project root as regular dependencies instead of creating a symlink"},M={name:"--foreground-scripts",description:"Run all build scripts for installed packages in the foreground process, sharing standard input, output, and error with the main npm process"},_={name:"--allow-git",description:"Limits the ability for npm to install git dependencies",args:{name:"allow-git",suggestions:["all","none","root"]}},q={name:"--allow-remote",description:"Limits the ability for npm to install user-supplied tarball URL dependencies",args:{name:"allow-remote",suggestions:["all","none","root"]}},N=[{name:"--allow-publish",description:"Allows the trusted publisher to run npm publish for the package"},{name:["--allow-stage-publish","--allow-staged-publish"],description:"Allows the trusted publisher to run npm stage for the package"}],ge={name:"npm",parserDirectives:{flagsArePosixNoncompliant:!0},description:"Node package manager",subcommands:[{name:["install","i","add"],description:"Install a package and its dependencies",args:{name:"package",isOptional:!0,generators:l,debounce:!0,isVariadic:!0},options:[{name:["-P","--save-prod"],description:"Package will appear in your `dependencies`. This is the default unless `-D` or `-O` are present"},{name:["-D","--save-dev"],description:"Package will appear in your `devDependencies`"},{name:["-O","--save-optional"],description:"Package will appear in your `optionalDependencies`"},{name:"--no-save",description:"Prevents saving to `dependencies`"},{name:["-E","--save-exact"],description:"Saved dependencies will be configured with an exact version rather than using npm's default semver range operator"},{name:["-B","--save-bundle"],description:"Saved dependencies will also be added to your bundleDependencies list"},P,C,{name:"--global-style",description:"Causes npm to install the package into your local node_modules folder with the same layout it uses with the global node_modules folder",deprecated:!0},{name:"--legacy-bundling",description:"Causes npm to install the package such that versions of npm prior to 1.4, such as the one included with node 0.8, can install the package",deprecated:!0},{name:"--legacy-peer-deps",description:"Bypass peerDependency auto-installation. Emulate install behavior of NPM v4 through v6"},{name:"--strict-peer-deps",description:"If set to true, and --legacy-peer-deps is not set, then any conflicting peerDependencies will be treated as an install failure"},{name:"--no-package-lock",description:"Ignores package-lock.json files when installing"},s,E,w,y,M,_,q,G,{name:"--no-audit",description:"Do not submit audit reports alongside the current npm command"},{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"},{name:"--no-fund",description:"Hides the message at the end of each npm install acknowledging the number of dependencies looking for funding"},v,...r]},{name:["run","run-script"],description:"Run arbitrary package scripts",options:[...r,{name:"--if-present",description:"Npm will not exit with an error code when run-script is invoked for a script that isn't defined in the scripts section of package.json"},{name:"--silent",description:""},y,j,{name:"--",args:{name:"args",isVariadic:!0}}],args:{name:"script",description:"Script to run from your package.json",filterStrategy:"fuzzy",generators:D}},{name:"init",description:"Trigger the initialization",options:[{name:["-y","--yes"],description:"Automatically answer 'yes' to any prompts that npm might print on the command line"},{name:"-w",description:"Create the folders and boilerplate expected while also adding a reference to your project workspaces property",args:{name:"dir"}},{name:"--init-private",description:"Set the private field to true in package.json"},{name:"--scope",description:"Create a scoped package",args:{name:"scope",description:"Scope name"}}]},{name:"access",description:"Set access level on published packages",subcommands:[{name:"list",description:"List packages or collaborators",subcommands:[{name:"packages",description:"List all packages accessible by a user, scope or team",args:[{name:"user|scope|scope:team",isOptional:!0},{name:"package",isOptional:!0}]},{name:"collaborators",description:"List all users with access to a package",args:[{name:"package",isOptional:!0},{name:"user",isOptional:!0}]}]},{name:"get",description:"Get the access status of a package",subcommands:[{name:"status",description:"Get the visibility status of a package",args:{name:"package",isOptional:!0}}]},{name:"set",description:"Set the visibility status or publishing MFA requirement of a package",args:[{name:"status|mfa",suggestions:["status=public","status=private","mfa=none","mfa=publish","mfa=automation"]},{name:"package",isOptional:!0}]},{name:"grant",description:"Grant a team read-only or read-write access to a package",args:[{name:"permissions",suggestions:["read-only","read-write"]},{name:"scope:team"},{name:"package",isOptional:!0}]},{name:"revoke",description:"Revoke a team's access to a package",args:[{name:"scope:team"},{name:"package",isOptional:!0}]}],options:[c,d,s]},{name:"adduser",description:"Add a registry user account",deprecated:!0,options:[s,{name:"--scope",description:"Associate an operation with a scope for a scoped registry",args:{name:"scope",description:"Scope name"}}]},{name:"login",description:"Login to a registry user account",options:[s,{name:"--scope",description:"Associate an operation with a scope for a scoped registry",args:{name:"scope",description:"Scope name"}},{name:"--auth-type",description:"What authentication strategy to use with login",args:{name:"auth-type",default:"web",suggestions:["legacy","web"]}}]},{name:"audit",description:"Run a security audit",subcommands:[{name:"signatures",description:"Verify registry signatures and provenance attestations of downloaded packages",options:[c,{name:"--include-attestations",description:"Include full sigstore attestation bundles in the JSON output"}]},{name:"fix",description:"If the fix argument is provided, then remediations will be applied to the package tree",options:[v,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input",isDangerous:!0},...r]}],options:[...r,{name:"--audit-level",description:"The minimum level of vulnerability for npm audit to exit with a non-zero exit code",args:{name:"audit",suggestions:["info","low","moderate","high","critical","none"]}},{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},c,w]},{name:"bin",description:"Print the folder where npm will install executables",deprecated:!0,options:[P]},{name:["bugs","issues"],description:"Report bugs for a package in a web browser",args:{name:"package",isOptional:!0,generators:l,debounce:!0,isVariadic:!0},options:[{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm bugs command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]},s]},{name:"cache",description:"Manipulates packages and npx cache",subcommands:[{name:"add",description:"Add the specified packages to the local cache"},{name:"clean",description:"Delete a single entry or all entries out of the cache folder",args:{name:"key",isOptional:!0}},{name:"ls",description:"List given entries or all entries in the local cache",args:{name:"name@version",isOptional:!0,isVariadic:!0}},{name:"verify",description:"Verify the contents of the cache folder, garbage collecting any unneeded data, and verifying the integrity of the cache index and all cached data"},{name:"npx",description:"Manipulates the npx cache",subcommands:[{name:"ls",description:"List all entries in the npx cache"},{name:"rm",description:"Remove given entries or all entries from the npx cache",args:{name:"key",isOptional:!0,isVariadic:!0}},{name:"info",description:"Get detailed information about given entries in the npx cache",args:{name:"key",isVariadic:!0}}]}],options:[{name:"--cache",args:{name:"cache"},description:"The location of npm's cache directory"}]},{name:["ci","clean-install","install-clean"],description:"Install a project with a clean slate",options:[{name:"--audit",description:'When "true" submit audit reports alongside the current npm command to the default registry and all registries configured for scopes',args:{name:"audit",suggestions:["true","false"]},exclusiveOn:["--no-audit"]},{name:"--no-audit",description:"Do not submit audit reports alongside the current npm command",exclusiveOn:["--audit"]},y,j,E,s,C,w,M,_,q]},{name:"cit",description:"Install a project with a clean slate and run tests"},{name:"clean-install-test",description:"Install a project with a clean slate and run tests"},{name:"completion",description:"Tab completion for npm"},{name:["config","c"],description:"Manage the npm configuration files",subcommands:[{name:"set",description:"Sets the config key to the value",args:[{name:"key"},{name:"value"}],options:[{name:["-g","--global"],description:"Sets it globally"}]},{name:"get",description:"Echo the config value to stdout",args:{name:"key"}},{name:"list",description:"Show all the config settings",options:[{name:"-g",description:"Lists globally installed packages"},{name:"-l",description:"Also shows defaults"},c]},{name:"delete",description:"Deletes the key from all configuration files",args:{name:"key"}},{name:"edit",description:"Opens the config file in an editor",options:[{name:"--global",description:"Edits the global config"}]},{name:"fix",description:"Attempts to repair invalid configuration items, such as attaching authentication configuration to the configured registry"}]},{name:"create",description:"Create a package.json file"},{name:["dedupe","ddp"],description:"Reduce duplication in the package tree"},{name:"deprecate",description:"Deprecate a version of a package",options:[s]},{name:"diff",description:"The registry diff command",args:{name:"paths",isOptional:!0,isVariadic:!0,template:"filepaths"},options:[{name:"--diff",description:"Define arguments to compare in npm diff",isRepeatable:2,args:{name:"package-spec"}},{name:"--diff-name-only",description:"Prints only filenames when using npm diff"},{name:"--diff-unified",description:"The number of lines of context to print in npm diff",args:{name:"number",default:"3"}},{name:"--diff-ignore-all-space",description:"Ignore whitespace when comparing lines in npm diff"},{name:"--diff-no-prefix",description:"Do not show any source or destination prefix in npm diff output"},{name:"--diff-src-prefix",description:"Source prefix to be used in npm diff output",args:{name:"path",default:"a/"}},{name:"--diff-dst-prefix",description:"Destination prefix to be used in npm diff output",args:{name:"path",default:"b/"}},{name:"--diff-text",description:"Treat all files as text in npm diff"},P,{name:"--tag",description:"The tag used to fetch the tarball that will be compared with the local files",args:{name:"tag",default:"latest"}},...r]},{name:"dist-tag",description:"Modify package distribution tags"},{name:["docs","home"],description:"Open documentation for a package in a web browser",args:{name:"package",isOptional:!0,generators:l,debounce:!0,isVariadic:!0},options:[...r,s,{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm docs command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]}]},{name:"doctor",description:"Check your npm environment",options:[s]},{name:"edit",description:"Edit an installed package",options:[{name:"--editor",description:"The command to run for npm edit or npm config edit"}]},{name:["exec","x"],description:"Run a command from a local or remote npm package",args:{name:"command",isOptional:!0,isVariadic:!0},options:[{name:"--package",description:"The package or packages to install for npm exec",isRepeatable:!0,args:{name:"package-spec",generators:l,debounce:!0}},{name:["-c","--call"],description:"Custom command to be run along with the installed packages",args:{name:"call"}},{name:["-y","--yes"],description:"Automatically answer 'yes' to the prompt to install missing packages",exclusiveOn:["--no"]},{name:"--no",description:"Automatically answer 'no' to the prompt to install missing packages",exclusiveOn:["-y","--yes"]},...r]},{name:["explain","why"],description:"Explain installed packages",args:{name:"package-spec",filterStrategy:"fuzzy",generators:R,isVariadic:!0},options:[c,...r]},{name:"explore",description:"Browse an installed package",args:{name:"package",filterStrategy:"fuzzy",generators:R}},{name:"find-dupes",description:"Find duplication in the package tree",options:[C,w,y,...r]},{name:"fund",description:"Retrieve funding information"},{name:"get",description:"Echo the config value to stdout"},{name:"help",description:"Get help on npm",args:{name:"term",isVariadic:!0,description:"Terms to search for"},options:[{name:"--viewer",description:"The program to use to view help content",args:{name:"viewer"}}]},{name:"help-search",description:"Search npm help documentation",args:{name:"text",description:"Text to search for"},options:[A]},{name:"hook",description:"Manage registry hooks",deprecated:!0},{name:"install-ci-test",description:"Install a project with a clean slate and run tests"},{name:"install-scripts",description:"Manage which dependencies are allowed to run install scripts",subcommands:[{name:"approve",description:"Approve install scripts for packages, pinned to their installed version",args:{name:"pkg",isOptional:!0,isVariadic:!0,generators:R},options:[{name:"--all",description:"Approve all currently-installed install scripts"}]},{name:"deny",description:"Deny install scripts for packages so they stay blocked",args:{name:"pkg",isOptional:!0,isVariadic:!0,generators:R},options:[{name:"--all",description:"Deny all currently-installed install scripts"}]},{name:"ls",description:"List packages whose install scripts still need review"},{name:"prune",description:"Remove stale allowScripts entries",options:[v]}]},{name:"install-test",description:"Install package(s) and run tests"},{name:"it",description:"Install package(s) and run tests"},{name:"link",description:"Symlink a package folder",args:{name:"path",template:"filepaths"}},{name:"ln",description:"Symlink a package folder"},{name:"logout",description:"Log out of the registry",options:[s,{name:"--scope",description:"Associate an operation with a scope for a scoped registry",args:{name:"scope",description:"Scope name"}}]},{name:["ls","list"],description:"List installed packages",options:ne,args:{name:"[@scope]/pkg",isVariadic:!0}},{name:"org",description:"Manage orgs",subcommands:[{name:"set",description:"Add a user to an org or manage roles",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name"},{name:"role",isOptional:!0,suggestions:["developer","admin","owner"]}],options:[s,d]},{name:"rm",description:"Remove a user from an org",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name"}],options:[s,d]},{name:"ls",description:"List users in an org or see what roles a particular user has in an org",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name",isOptional:!0}],options:[s,d,c,O]}]},{name:"outdated",description:"Check for outdated packages",args:{name:"[<@scope>/]<pkg>",isVariadic:!0,isOptional:!0},options:[{name:["-a","--all"],description:"Show all outdated or installed packages"},c,A,O,{name:"-g",description:"Checks globally"},...r]},{name:["owner","author"],description:"Manage package owners",subcommands:[{name:"ls",description:"List all the users who have access to modify a package and push new versions. Handy when you need to know who to bug for help",args:{name:"[@scope/]pkg"},options:[s]},{name:"add",description:"Add a new user as a maintainer of a package. This user is enabled to modify metadata, publish new versions, and add other owners",args:[{name:"user"},{name:"[@scope/]pkg"}],options:[s,d]},{name:"rm",description:"Remove a user from the package owner list. This immediately revokes their privileges",args:[{name:"user"},{name:"[@scope/]pkg"}],options:[s,d]}]},{name:"pack",description:"Create a tarball from a package",args:{name:"[<@scope>/]<pkg>"},options:[c,v,...r,{name:"--pack-destination",description:"Directory in which npm pack will save tarballs",args:{name:"pack-destination",template:["folders"]}}]},{name:"ping",description:"Ping npm registry",options:[s]},{name:"pkg",description:"Manages your package.json",subcommands:[{name:"get",description:"Retrieves a value key, defined in your package.json file. It is possible to get multiple values and values for child fields",args:{name:"field",description:"Name of the field to get. You can view child fields by separating them with a period",isVariadic:!0},options:[c,...r]},{name:"set",description:"Sets a value in your package.json based on the field value. It is possible to set multiple values and values for child fields",args:{name:"field",description:"Name of the field to set. You can set child fields by separating them with a period",isVariadic:!0},options:[c,...r,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input. Allow clobbering existing values in npm pkg",isDangerous:!0}]},{name:"delete",description:"Deletes a key from your package.json",args:{name:"key",description:"Name of the key to delete. You can delete child fields by separating them with a period",isVariadic:!0},options:[...r,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input. Allow clobbering existing values in npm pkg",isDangerous:!0}]},{name:"fix",description:"Auto corrects common errors in your package.json",options:r}]},{name:"prefix",description:"Display prefix",options:[{name:["-g","--global"],description:"Print the global prefix to standard out"}]},{name:"profile",description:"Change settings on your registry profile",subcommands:[{name:"get",description:"Display all of the properties of your profile, or one or more specific properties",args:{name:"property",isOptional:!0,description:"Property name"},options:[s,c,O,d]},{name:"set",description:"Set the value of a profile property",args:[{name:"property",description:"Property name",suggestions:["email","fullname","homepage","freenode","twitter","github"]},{name:"value",description:"Property value"}],options:[s,c,O,d],subcommands:[{name:"password",description:"Change your password. This is interactive, you'll be prompted for your current password and a new password"}]},{name:"enable-2fa",description:"Enables two-factor authentication",args:{name:"mode",description:"Mode for two-factor authentication. Defaults to auth-and-writes mode",isOptional:!0,suggestions:[{name:"auth-only",description:"Require an OTP when logging in or making changes to your account's authentication"},{name:"auth-and-writes",description:"Requires an OTP at all the times auth-only does, and also requires one when publishing a module, setting the latest dist-tag, or changing access via npm access and npm owner"}]},options:[s,d]},{name:"disable-2fa",description:"Disables two-factor authentication",options:[s,d]}]},{name:"prune",description:"Remove extraneous packages",args:{name:"[<@scope>/]<pkg>",isOptional:!0},options:[w,v,c,{name:"--production",description:"Remove the packages specified in your devDependencies"},...r]},{name:"publish",description:"Publish a package",args:{name:"tarball|folder",isOptional:!0,description:"A url or file path to a gzipped tar archive containing a single folder with a package.json file inside | A folder containing a package.json file",template:["folders"]},options:[{name:"--tag",description:"Registers the published package with the given tag",args:{name:"tag"}},...r,{name:"--access",description:"Sets scoped package to be publicly viewable if set to 'public'",args:{default:"restricted",suggestions:["restricted","public"]}},v,d,{name:"--provenance",description:"When publishing from a supported cloud CI/CD system, the package will be publicly linked to where it was built and published from",exclusiveOn:["--provenance-file"]},{name:"--provenance-file",description:"When publishing, the provenance bundle at the given path will be used",args:{name:"file",template:"filepaths"},exclusiveOn:["--provenance"]}]},{name:"query",description:"Retrieve a filtered list of packages",args:{name:"selector",description:"Dependency selector, e.g. ':root > .prod'"},options:[P,...r,{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},{name:"--expect-results",description:"Exit with an error code if the query has no results",exclusiveOn:["--no-expect-results","--expect-result-count"]},{name:"--no-expect-results",description:"Exit with an error code if the query has any results",exclusiveOn:["--expect-results","--expect-result-count"]},{name:"--expect-result-count",description:"Exit with an error code if the query does not return exactly this many results",args:{name:"count"},exclusiveOn:["--expect-results","--no-expect-results"]}]},{name:["rebuild","rb"],description:"Rebuild a package",args:{name:"[<@scope>/]<pkg>[@<version>]"},options:[P,...r,y,{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"}]},{name:"repo",description:"Open package repository page in the browser",args:{name:"package",isOptional:!0,generators:l,debounce:!0,isVariadic:!0},options:[...r,{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm repo command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]}]},{name:"restart",description:"Restart a package",options:[y,j,{name:"--",args:{name:"arg",description:"Arguments to be passed to the restart script"}}]},{name:"root",description:"Display npm root",options:[{name:["-g","--global"],description:"Print the effective global node_modules folder to standard out"}]},{name:"sbom",description:"Generate a Software Bill of Materials (SBOM)",options:[w,{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},{name:"--sbom-format",description:"SBOM format to use when generating SBOMs",args:{name:"format",suggestions:["cyclonedx","spdx"]}},...r]},{name:["search","s","se","find"],description:"Search for packages",args:{name:"search terms",isVariadic:!0},options:[A,c,{name:"--color",description:"Show colors",args:{name:"always",suggestions:["always"],description:"Always show colors"},exclusiveOn:["--no-color"]},{name:"--no-color",description:"Do not show colors",exclusiveOn:["--color"]},O,{name:"--no-description",description:"Do not show descriptions"},{name:"--searchopts",description:"Space-separated options that are always passed to search",args:{name:"searchopts"}},{name:"--searchexclude",description:"Space-separated options that limit the results from search",args:{name:"searchexclude"}},s,{name:"--prefer-online",description:"If true, staleness checks for cached data will be forced, making the CLI look for updates immediately even for fresh package data",exclusiveOn:["--prefer-offline","--offline"]},{name:"--prefer-offline",description:"If true, staleness checks for cached data will be bypassed, but missing data will be requested from the server",exclusiveOn:["--prefer-online","--offline"]},{name:"--offline",description:"Force offline mode: no network requests will be done during install",exclusiveOn:["--prefer-online","--prefer-offline"]}]},{name:"set",description:"Sets the config key to the value"},{name:"set-script",description:"Set tasks in the scripts section of package.json",deprecated:!0,args:[{name:"script",description:"Name of the task to be added to the scripts section of package.json"},{name:"command",description:"Command to run when script is called"}],options:r},{name:"shrinkwrap",description:"Lock down dependency versions for publication",deprecated:!0},{name:"stage",description:"Stage a package for publishing, deferring 2FA to a later approval",subcommands:[{name:"publish",description:"Stage a package for publishing",args:{name:"package-spec",isOptional:!0,template:["folders"]},options:[{name:"--tag",description:"Registers the staged package with the given tag",args:{name:"tag"}}]},{name:"list",description:"List all staged package versions",args:{name:"package-spec",isOptional:!0}},{name:"view",description:"View details of a specific staged package",args:{name:"stage-id"}},{name:"approve",description:"Approve a staged package for publishing",args:{name:"stage-id"}},{name:"reject",description:"Reject a staged package",args:{name:"stage-id"}},{name:"download",description:"Download the tarball of a staged package for inspection",args:{name:"stage-id"}}]},{name:"star",description:"Mark your favorite packages",deprecated:!0,args:{name:"pkg",description:"Package to mark as favorite"},options:[s,{name:"--no-unicode",description:"Do not use unicode characters in the tree output"}]},{name:"stars",description:"View packages marked as favorites",deprecated:!0,args:{name:"user",isOptional:!0,description:"View packages marked as favorites by <user>"},options:[s]},{name:"start",description:"Start a package",options:[y,j,{name:"--",args:{name:"arg",description:"Arguments to be passed to the start script"}}]},{name:"stop",description:"Stop a package",options:[y,j,{name:"--",args:{name:"arg",description:"Arguments to be passed to the stop script"}}]},{name:"team",description:"Manage organization teams and team memberships",subcommands:[{name:"create",args:{name:"scope:team"},options:[s,d]},{name:"destroy",args:{name:"scope:team"},options:[s,d]},{name:"add",args:[{name:"scope:team"},{name:"user"}],options:[s,d]},{name:"rm",args:[{name:"scope:team"},{name:"user"}],options:[s,d]},{name:"ls",args:{name:"scope|scope:team"},options:[s,c,O]}]},{name:["test","tst","t"],description:"Test a package",options:[y,j]},{name:"token",description:"Manage your authentication tokens",subcommands:[{name:"list",description:"Shows a table of all active authentication tokens",options:[c,O]},{name:"create",description:"Create a new authentication token",options:[{name:"--read-only",description:"This is used to mark a token as unable to publish when configuring limited access tokens with the npm token create command"},{name:"--cidr",description:"This is a list of CIDR address to be used when configuring limited access tokens with the npm token create command",isRepeatable:!0,args:{name:"cidr"}}]},{name:"revoke",description:"Immediately removes an authentication token from the registry. You will no longer be able to use it",args:{name:"idtoken"}}],options:[s,d]},{name:"trust",description:"Create a trusted relationship between a package and an OIDC provider",subcommands:[{name:"github",description:"Create a trusted relationship between a package and GitHub Actions",args:{name:"package",isOptional:!0},options:[...N,{name:"--file",description:"Name of the workflow file within the repository's .github folder (must end in yaml or yml)",isRequired:!0,args:{name:"file"}},{name:["--repository","--repo"],description:"Name of the repository in the format owner/repo",args:{name:"repository"}},{name:["--environment","--env"],description:"CI environment name",args:{name:"environment"}}]},{name:"gitlab",description:"Create a trusted relationship between a package and GitLab CI/CD",args:{name:"package",isOptional:!0},options:[...N,{name:"--file",description:"Name of the pipeline file (e.g. .gitlab-ci.yml)",isRequired:!0,args:{name:"file"}},{name:"--project",description:"Name of the project in the format group/project or group/subgroup/project",args:{name:"project"}},{name:["--environment","--env"],description:"CI environment name",args:{name:"environment"}}]},{name:"circleci",description:"Create a trusted relationship between a package and CircleCI",args:{name:"package",isOptional:!0},options:[...N,{name:"--org-id",description:"CircleCI organization UUID",isRequired:!0,args:{name:"org-id"}},{name:"--project-id",description:"CircleCI project UUID",isRequired:!0,args:{name:"project-id"}},{name:"--pipeline-definition-id",description:"CircleCI pipeline definition UUID",isRequired:!0,args:{name:"pipeline-definition-id"}},{name:"--vcs-origin",description:"CircleCI repository origin in the format provider/owner/repo",isRequired:!0,args:{name:"vcs-origin"}},{name:"--context-id",description:"CircleCI context UUID to match",isRepeatable:!0,args:{name:"context-id"}}]},{name:"list",description:"List trusted relationships for a package",args:{name:"package",isOptional:!0}},{name:"revoke",description:"Revoke a trusted relationship for a package",args:{name:"package",isOptional:!0},options:[{name:"--id",description:"ID of the trusted relationship to revoke",args:{name:"trust-id"}}]}]},{name:"undeprecate",description:"Undeprecate a version of a package",args:{name:"package-spec"},options:[s,d,v]},I("uninstall"),I(["r","rm"]),I("un"),I("remove"),I("unlink"),{name:"unpublish",description:"Remove a package from the registry",args:{name:"[<@scope>/]<pkg>[@<version>]"},options:[v,{name:["-f","--force"],description:"Allow unpublishing all versions of a published package. Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input",isDangerous:!0},...r]},{name:"unstar",description:"Remove an item from your favorite packages",deprecated:!0,args:{name:"pkg",description:"Package to unmark as favorite"},options:[s,d,{name:"--no-unicode",description:"Do not use unicode characters in the tree output"}]},{name:["update","upgrade","up","u"],description:"Update a package",options:[{name:"-g",description:"Update global package"},C,{name:"--global-style",description:"Causes npm to install the package into your local node_modules folder with the same layout it uses with the global node_modules folder",deprecated:!0},{name:"--legacy-bundling",description:"Causes npm to install the package such that versions of npm prior to 1.4, such as the one included with node 0.8, can install the package",deprecated:!0},{name:"--strict-peer-deps",description:"If set to true, and --legacy-peer-deps is not set, then any conflicting peerDependencies will be treated as an install failure"},{name:"--no-package-lock",description:"Ignores package-lock.json files when installing"},w,y,M,G,{name:"--no-audit",description:"Do not submit audit reports alongside the current npm command"},{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"},{name:"--no-fund",description:"Hides the message at the end of each npm install acknowledging the number of dependencies looking for funding"},{name:"--save",description:"Update the semver values of direct dependencies in your project package.json"},v,...r]},{name:"version",description:"Bump a package version",options:[...r,c,{name:"--allow-same-version",description:"Prevents throwing an error when npm version is used to set the new version to the same value as the current version"},{name:"--no-commit-hooks",description:"Do not run git commit hooks when using the npm version command"},{name:"--no-git-tag-version",description:"Do not tag the commit when using the npm version command"},{name:"--preid",description:'The "prerelease identifier" to use as a prefix for the "prerelease" part of a semver. Like the rc in 1.2.0-rc.8',args:{name:"prerelease-id"}},{name:"--sign-git-tag",description:"If set to true, then the npm version command will tag the version using -s to add a signature"}]},{name:["view","v","info","show"],description:"View registry info",options:[...r,c]},{name:"whoami",description:"Display npm username",options:[s]}]};var W={alias:async(e,n)=>{let a=await n({command:"npm",args:["prefix"]});if(a.status!==0)throw new Error("npm prefix command failed");let i=await n({command:"cat",args:[`${a.stdout.trim()}/package.json`]}),t=JSON.parse(i.stdout).scripts?.[e];if(!t)throw new Error(`Script not found: '${e}'`);return t}},U=new Set(["vue","vite","nuxt","react-native","degit","expo","jest","next","electron","prisma","eslint","prettier","tsc","typeorm","babel","remotion","autocomplete-tools","redwood","rw","create-completion-spec","publish-spec-to-team","capacitor","cap"]),ae={custom:async(e,n,a)=>{let{stdout:i}=await n({command:"yarn",args:["global","dir"]}),{stdout:t}=await n({command:"cat",args:[`${i.trim()}/package.json`]});if(t.trim()=="")return[];try{let p=JSON.parse(t),o=p.dependencies||{},g=p.devDependencies||{};return[...Object.keys(o),...Object.keys(g)].filter(f=>!e.includes(f)).map(f=>({name:f,icon:"\u{1F4E6}"}))}catch{}return[]}},te={script:["yarn","list","--depth=0","--json"],postProcess:e=>{if(e.trim()=="")return[];try{return JSON.parse(e).data.trees.map(i=>({name:i.name.split("@")[0],icon:"\u{1F4E6}"}))}catch{}return[]}},B={script:["yarn","config","list"],postProcess:function(e){if(e.trim()=="")return[];try{let n=e.indexOf("{"),a=e.indexOf("}"),i=e.substring(n,a+1);i=i.replace(/\'/gi,'"').replace("lastUpdateCheck",'"lastUpdateCheck"').replace("registry",'"lastUpdateCheck"');let t=JSON.parse(i);if(t)return Object.keys(t).map(p=>({name:p}))}catch{}return[]}},b={script:["bash","-c","until [[ -f package.json ]] || [[ $PWD = '/' ]]; do cd ..; done; cat package.json"],postProcess:function(e,n=[]){if(e.trim()==="")return[];try{let a=JSON.parse(e),i=a.dependencies??{},t=a.devDependencies,p=a.optionalDependencies??{};return Object.assign(i,t,p),Object.keys(i).filter(o=>!n.some(u=>u===o)).map(o=>({name:o,icon:"\u{1F4E6}",description:i[o]?"dependency":p[o]?"optionalDependency":"devDependency"}))}catch(a){return console.error(a),[]}}},m=[{name:["-s","--silent"],description:"Skip Yarn console logs"},{name:"--no-default-rc",description:"Prevent Yarn from automatically detecting yarnrc and npmrc files"},{name:"--use-yarnrc",description:"Specifies a yarnrc file that Yarn should use (.yarnrc only, not .npmrc) (default: )",args:{name:"path",template:"filepaths"}},{name:"--verbose",description:"Output verbose messages on internal operations"},{name:"--offline",description:"Trigger an error if any required dependencies are not available in local cache"},{name:"--prefer-offline",description:"Use network only if dependencies are not available in local cache"},{name:["--enable-pnp","--pnp"],description:"Enable the Plug'n'Play installation"},{name:"--json",description:"Format Yarn log messages as lines of JSON"},{name:"--ignore-scripts",description:"Don't run lifecycle scripts"},{name:"--har",description:"Save HAR output of network traffic"},{name:"--ignore-platform",description:"Ignore platform checks"},{name:"--ignore-engines",description:"Ignore engines check"},{name:"--ignore-optional",description:"Ignore optional dependencies"},{name:"--force",description:"Install and build packages even if they were built before, overwrite lockfile"},{name:"--skip-integrity-check",description:"Run install without checking if node_modules is installed"},{name:"--check-files",description:"Install will verify file tree of packages for consistency"},{name:"--no-bin-links",description:"Don't generate bin links when setting up packages"},{name:"--flat",description:"Only allow one version of a package"},{name:["--prod","--production"],description:"Instruct Yarn to ignore NODE_ENV and take its production-or-not status from this flag instead"},{name:"--no-lockfile",description:"Don't read or generate a lockfile"},{name:"--pure-lockfile",description:"Don't generate a lockfile"},{name:"--frozen-lockfile",description:"Don't generate a lockfile and fail if an update is needed"},{name:"--update-checksums",description:"Update package checksums from current repository"},{name:"--link-duplicates",description:"Create hardlinks to the repeated modules in node_modules"},{name:"--link-folder",description:"Specify a custom folder to store global links",args:{name:"path",template:"folders"}},{name:"--global-folder",description:"Specify a custom folder to store global packages",args:{name:"path",template:"folders"}},{name:"--modules-folder",description:"Rather than installing modules into the node_modules folder relative to the cwd, output them here",args:{name:"path",template:"folders"}},{name:"--preferred-cache-folder",description:"Specify a custom folder to store the yarn cache if possible",args:{name:"path",template:"folders"}},{name:"--cache-folder",description:"Specify a custom folder that must be used to store the yarn cache",args:{name:"path",template:"folders"}},{name:"--mutex",description:"Use a mutex to ensure only one yarn instance is executing",args:{name:"type[:specifier]"}},{name:"--emoji",description:"Enables emoji in output",args:{default:"true",suggestions:["true","false"]}},{name:"--cwd",description:"Working directory to use",args:{name:"cwd",template:"folders"}},{name:["--proxy","--https-proxy"],description:"",args:{name:"host"}},{name:"--registry",description:"Override configuration registry",args:{name:"url"}},{name:"--no-progress",description:"Disable progress bar"},{name:"--network-concurrency",description:"Maximum number of concurrent network requests",args:{name:"number"}},{name:"--network-timeout",description:"TCP timeout for network requests",args:{name:"milliseconds"}},{name:"--non-interactive",description:"Do not show interactive prompts"},{name:"--scripts-prepend-node-path",description:"Prepend the node executable dir to the PATH in scripts"},{name:"--no-node-version-check",description:"Do not warn when using a potentially unsupported Node version"},{name:"--focus",description:"Focus on a single workspace by installing remote copies of its sibling workspaces"},{name:"--otp",description:"One-time password for two factor authentication",args:{name:"otpcode"}}],ie={script:function(e){return e[e.length-1]===""?void 0:["curl","-s","-H","Accept: application/json",`https://api.npms.io/v2/search?q=${"create-"+e[e.length-1]}&size=20`]},cache:{ttl:100*24*60*60*3},postProcess:function(e){try{return JSON.parse(e).results.map(n=>({name:n.package.name.substring(7),description:n.package.description}))}catch{return[]}}},fe={name:"yarn",description:"Manage packages and run scripts",generateSpec:async(e,n)=>({name:"yarn",subcommands:(await n({command:"bash",args:["-c","until [[ -d node_modules/ ]] || [[ $PWD = '/' ]]; do cd ..; done; ls -1 node_modules/.bin/"]})).stdout.split(`
|
|
3
|
+
`).filter(t=>U.has(t)).map(t=>({name:t,loadSpec:t==="rw"?"redwood":t,icon:"fig://icon?type=package"}))}),args:{generators:D,filterStrategy:"fuzzy",parserDirectives:W,isOptional:!0,isCommand:!0},options:[{name:"--disable-pnp",description:"Disable the Plug'n'Play installation"},{name:"--emoji",description:"Enable emoji in output (default: true)",args:{name:"bool",suggestions:[{name:"true"},{name:"false"}]}},{name:["--enable-pnp","--pnp"],description:"Enable the Plug'n'Play installation"},{name:"--flat",description:"Only allow one version of a package"},{name:"--focus",description:"Focus on a single workspace by installing remote copies of its sibling workspaces"},{name:"--force",description:"Install and build packages even if they were built before, overwrite lockfile"},{name:"--frozen-lockfile",description:"Don't generate a lockfile and fail if an update is needed"},{name:"--global-folder",description:"Specify a custom folder to store global packages",args:{template:"folders"}},{name:"--har",description:"Save HAR output of network traffic"},{name:"--https-proxy",description:"",args:{name:"path",suggestions:[{name:"https://"}]}},{name:"--ignore-engines",description:"Ignore engines check"},{name:"--ignore-optional",description:"Ignore optional dependencies"},{name:"--ignore-platform",description:"Ignore platform checks"},{name:"--ignore-scripts",description:"Don't run lifecycle scripts"},{name:"--json",description:"Format Yarn log messages as lines of JSON (see jsonlines.org)"},{name:"--link-duplicates",description:"Create hardlinks to the repeated modules in node_modules"},{name:"--link-folder",description:"Specify a custom folder to store global links",args:{template:"folders"}},{name:"--modules-folder",description:"Rather than installing modules into the node_modules folder relative to the cwd, output them here",args:{template:"folders"}},{name:"--mutex",description:"Use a mutex to ensure only one yarn instance is executing",args:[{name:"type",suggestions:[{name:":"}]},{name:"specifier",suggestions:[{name:":"}]}]},{name:"--network-concurrency",description:"Maximum number of concurrent network requests",args:{name:"number"}},{name:"--network-timeout",description:"TCP timeout for network requests",args:{name:"milliseconds"}},{name:"--no-bin-links",description:"Don't generate bin links when setting up packages"},{name:"--no-default-rc",description:"Prevent Yarn from automatically detecting yarnrc and npmrc files"},{name:"--no-lockfile",description:"Don't read or generate a lockfile"},{name:"--non-interactive",description:"Do not show interactive prompts"},{name:"--no-node-version-check",description:"Do not warn when using a potentially unsupported Node version"},{name:"--no-progress",description:"Disable progress bar"},{name:"--offline",description:"Trigger an error if any required dependencies are not available in local cache"},{name:"--otp",description:"One-time password for two factor authentication",args:{name:"otpcode"}},{name:"--prefer-offline",description:"Use network only if dependencies are not available in local cache"},{name:"--preferred-cache-folder",description:"Specify a custom folder to store the yarn cache if possible",args:{template:"folders"}},{name:["--prod","--production"],description:"",args:{}},{name:"--proxy",description:"",args:{name:"host"}},{name:"--pure-lockfile",description:"Don't generate a lockfile"},{name:"--registry",description:"Override configuration registry",args:{name:"url"}},{name:["-s","--silent"],description:"Skip Yarn console logs, other types of logs (script output) will be printed"},{name:"--scripts-prepend-node-path",description:"Prepend the node executable dir to the PATH in scripts",args:{suggestions:[{name:"true"},{name:"false"}]}},{name:"--skip-integrity-check",description:"Run install without checking if node_modules is installed"},{name:"--strict-semver",description:""},...m,{name:["-v","--version"],description:"Output the version number"},{name:["-h","--help"],description:"Output usage information"}],subcommands:[{name:"add",description:"Installs a package and any packages that it depends on",args:{name:"package",generators:l,debounce:!0,isVariadic:!0},options:[...m,{name:["-W","--ignore-workspace-root-check"],description:"Required to run yarn add inside a workspace root"},{name:["-D","--dev"],description:"Save package to your `devDependencies`"},{name:["-P","--peer"],description:"Save package to your `peerDependencies`"},{name:["-O","--optional"],description:"Save package to your `optionalDependencies`"},{name:["-E","--exact"],description:"Install exact version",dependsOn:["--latest"]},{name:["-T","--tilde"],description:"Install most recent release with the same minor version"},{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"audit",description:"Perform a vulnerability audit against the installed packages",options:[{name:"--summary",description:"Only print the summary"},{name:"--groups",description:"Only audit dependencies from listed groups. Default: devDependencies, dependencies, optionalDependencies",args:{name:"group_name",isVariadic:!0}},{name:"--level",description:"Only print advisories with severity greater than or equal to one of the following: info|low|moderate|high|critical. Default: info",args:{name:"severity",suggestions:[{name:"info"},{name:"low"},{name:"moderate"},{name:"high"},{name:"critical"}]}},{name:["-h","--help"],description:"Output usage information"}]},{name:"autoclean",description:"Cleans and removes unnecessary files from package dependencies",options:[{name:["-h","--help"],description:"Output usage information"},{name:["-i","--init"],description:"Creates the .yarnclean file if it does not exist, and adds the default entries"},{name:["-f","--force"],description:"If a .yarnclean file exists, run the clean process"}]},{name:"bin",description:"Displays the location of the yarn bin folder",options:[{name:["-h","--help"],description:"Output usage information"}]},{name:"cache",description:"Yarn cache list will print out every cached package",options:[...m,{name:["-h","--help"],description:"Output usage information"}],subcommands:[{name:"clean",description:"Clear global cache"},{name:"dir",description:"Print yarn\u2019s global cache path"},{name:"list",description:"Print out every cached package",options:[{name:"--pattern",description:"Filter cached packages by pattern",args:{name:"pattern"}}]}]},{name:"config",description:"Configure yarn",options:[{name:["-h","--help"],description:"Output usage information"}],subcommands:[{name:"set",description:"Sets the config key to a certain value",options:[{name:["-g","--global"],description:"Set global config"}]},{name:"get",description:"Print the value for a given key",args:{generators:B}},{name:"delete",description:"Deletes a given key from the config",args:{generators:B}},{name:"list",description:"Displays the current configuration"}]},{name:"create",description:"Creates new projects from any create-* starter kits",args:{name:"cli",generators:ie,loadSpec:async e=>({name:"create-"+e,type:"global"}),isCommand:!0},options:[...m,{name:["-h","--help"],description:"Output usage information"}]},{name:"exec",description:"",options:[{name:["-h","--help"],description:"Output usage information"}]},{name:"generate-lock-entry",description:"Generates a lock file entry",options:[{name:"--use-manifest",description:"Specify which manifest file to use for generating lock entry",args:{template:"filepaths"}},{name:"--resolved",description:"Generate from <*.tgz>#<hash>",args:{template:"filepaths"}},{name:["-h","--help"],description:"Output usage information"}]},{name:"global",description:"Manage yarn globally",subcommands:[{name:"add",description:"Install globally packages on your operating system",args:{name:"package",generators:l,debounce:!0,isVariadic:!0}},{name:"bin",description:"Displays the location of the yarn global bin folder"},{name:"dir",description:"Displays the location of the global installation folder"},{name:"ls",description:"List globally installed packages (deprecated)"},{name:"list",description:"List globally installed packages"},{name:"remove",description:"Remove globally installed packages",args:{name:"package",filterStrategy:"fuzzy",generators:ae,isVariadic:!0},options:[...m,{name:["-W","--ignore-workspace-root-check"],description:"Required to run yarn remove inside a workspace root"},{name:["-h","--help"],description:"Output usage information"}]},{name:"upgrade",description:"Upgrade globally installed packages",options:[...m,{name:["-S","--scope"],description:"Upgrade packages under the specified scope",args:{name:"scope"}},{name:["-L","--latest"],description:"List the latest version of packages"},{name:["-E","--exact"],description:"Install exact version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-P","--pattern"],description:"Upgrade packages that match pattern",args:{name:"pattern"}},{name:["-T","--tilde"],description:"Install most recent release with the same minor version. Only used when --latest is specified"},{name:["-C","--caret"],description:"Install most recent release with the same major version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"upgrade-interactive",description:"Display the outdated packages before performing any upgrade",options:[{name:"--latest",description:"Use the version tagged latest in the registry"}]}],options:[...m,{name:"--prefix",description:"Bin prefix to use to install binaries",args:{name:"prefix"}},{name:"--latest",description:"Bin prefix to use to install binaries"},{name:["-h","--help"],description:"Output usage information"}]},{name:"help",description:"Output usage information"},{name:"import",description:"Generates yarn.lock from an npm package-lock.json file"},{name:"info",description:"Show information about a package"},{name:"init",description:"Interactively creates or updates a package.json file",options:[...m,{name:["-y","--yes"],description:"Use default options"},{name:["-p","--private"],description:"Use default options and private true"},{name:["-i","--install"],description:"Install a specific Yarn release",args:{name:"version"}},{name:"-2",description:"Generates the project using Yarn 2"},{name:["-h","--help"],description:"Output usage information"}]},{name:"install",description:"Install all the dependencies listed within package.json",options:[...m,{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"licenses",description:"",subcommands:[{name:"list",description:"List licenses for installed packages"},{name:"generate-disclaimer",description:"List of licenses from all the packages"}]},{name:"link",description:"Symlink a package folder during development",args:{isOptional:!0,name:"package"},options:[...m,{name:["-h","--help"],description:"Output usage information"}]},{name:"list",description:"Lists all dependencies for the current working directory",options:[{name:"--depth",description:"Restrict the depth of the dependencies"},{name:"--pattern",description:"Filter the list of dependencies by the pattern"}]},{name:"login",description:"Store registry username and email"},{name:"logout",description:"Clear registry username and email"},{name:"node",description:""},{name:"outdated",description:"Checks for outdated package dependencies",options:[...m,{name:["-h","--help"],description:"Output usage information"}]},{name:"owner",description:"Manage package owners",subcommands:[{name:"list",description:"Lists all of the owners of a package",args:{name:"package"}},{name:"add",description:"Adds the user as an owner of the package",args:{name:"package"}},{name:"remove",description:"Removes the user as an owner of the package",args:[{name:"user"},{name:"package"}]}]},{name:"pack",description:"Creates a compressed gzip archive of package dependencies",options:[{name:"--filename",description:"Creates a compressed gzip archive of package dependencies and names the file filename"}]},{name:"policies",description:"Defines project-wide policies for your project",subcommands:[{name:"set-version",description:"Will download the latest stable release",options:[{name:"--rc",description:"Download the latest rc release"}]}]},{name:"publish",description:"Publishes a package to the npm registry",args:{name:"Tarball or Folder",template:"folders"},options:[...m,{name:["-h","--help"],description:"Output usage information"},{name:"--major",description:"Auto-increment major version number"},{name:"--minor",description:"Auto-increment minor version number"},{name:"--patch",description:"Auto-increment patch version number"},{name:"--premajor",description:"Auto-increment premajor version number"},{name:"--preminor",description:"Auto-increment preminor version number"},{name:"--prepatch",description:"Auto-increment prepatch version number"},{name:"--prerelease",description:"Auto-increment prerelease version number"},{name:"--preid",description:"Add a custom identifier to the prerelease",args:{name:"preid"}},{name:"--message",description:"Message",args:{name:"message"}},{name:"--no-git-tag-version",description:"No git tag version"},{name:"--no-commit-hooks",description:"Bypass git hooks when committing new version"},{name:"--access",description:"Access",args:{name:"access"}},{name:"--tag",description:"Tag",args:{name:"tag"}}]},{name:"remove",description:"Remove installed package",args:{filterStrategy:"fuzzy",generators:b,isVariadic:!0},options:[...m,{name:["-W","--ignore-workspace-root-check"],description:"Required to run yarn remove inside a workspace root"},{name:["-h","--help"],description:"Output usage information"}]},{name:"run",description:"Runs a defined package script",options:[...m,{name:["-h","--help"],description:"Output usage information"}],args:[{name:"script",description:"Script to run from your package.json",generators:D,filterStrategy:"fuzzy",parserDirectives:W,isCommand:!0},{name:"env",suggestions:["env"],description:"Lists environment variables available to scripts",isOptional:!0}]},{name:"tag",description:"Add, remove, or list tags on a package"},{name:"team",description:"Maintain team memberships",subcommands:[{name:"create",description:"Create a new team",args:{name:"<scope:team>"}},{name:"destroy",description:"Destroys an existing team",args:{name:"<scope:team>"}},{name:"add",description:"Add a user to an existing team",args:[{name:"<scope:team>"},{name:"<user>"}]},{name:"remove",description:"Remove a user from a team they belong to",args:{name:"<scope:team> <user>"}},{name:"list",description:"If performed on an organization name, will return a list of existing teams under that organization. If performed on a team, it will instead return a list of all users belonging to that particular team",args:{name:"<scope>|<scope:team>"}}]},{name:"unlink",description:"Unlink a previously created symlink for a package"},{name:"unplug",description:""},{name:"upgrade",description:"Upgrades packages to their latest version based on the specified range",args:{name:"package",generators:b,filterStrategy:"fuzzy",isVariadic:!0,isOptional:!0},options:[...m,{name:["-S","--scope"],description:"Upgrade packages under the specified scope",args:{name:"scope"}},{name:["-L","--latest"],description:"List the latest version of packages"},{name:["-E","--exact"],description:"Install exact version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-P","--pattern"],description:"Upgrade packages that match pattern",args:{name:"pattern"}},{name:["-T","--tilde"],description:"Install most recent release with the same minor version. Only used when --latest is specified"},{name:["-C","--caret"],description:"Install most recent release with the same major version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"upgrade-interactive",description:"Upgrades packages in interactive mode",options:[{name:"--latest",description:"Use the version tagged latest in the registry"}]},{name:"version",description:"Update version of your package",options:[...m,{name:["-h","--help"],description:"Output usage information"},{name:"--new-version",description:"New version",args:{name:"version"}},{name:"--major",description:"Auto-increment major version number"},{name:"--minor",description:"Auto-increment minor version number"},{name:"--patch",description:"Auto-increment patch version number"},{name:"--premajor",description:"Auto-increment premajor version number"},{name:"--preminor",description:"Auto-increment preminor version number"},{name:"--prepatch",description:"Auto-increment prepatch version number"},{name:"--prerelease",description:"Auto-increment prerelease version number"},{name:"--preid",description:"Add a custom identifier to the prerelease",args:{name:"preid"}},{name:"--message",description:"Message",args:{name:"message"}},{name:"--no-git-tag-version",description:"No git tag version"},{name:"--no-commit-hooks",description:"Bypass git hooks when committing new version"},{name:"--access",description:"Access",args:{name:"access"}},{name:"--tag",description:"Tag",args:{name:"tag"}}]},{name:"versions",description:"Displays version information of the currently installed Yarn, Node.js, and its dependencies"},{name:"why",description:"Show information about why a package is installed",args:{name:"package",filterStrategy:"fuzzy",generators:te},options:[...m,{name:["-h","--help"],description:"Output usage information"},{name:"--peers",description:"Print the peer dependencies that match the specified name"},{name:["-R","--recursive"],description:"List, for each workspace, what are all the paths that lead to the dependency"}]},{name:"workspace",description:"Manage workspace",filterStrategy:"fuzzy",generateSpec:async(e,n)=>{let i=(await n({command:"yarn",args:["--version"]})).stdout.startsWith("1."),t=async()=>{let{stdout:o}=await n({command:"yarn",args:["workspaces","info"]}),g=o.indexOf("{"),u=o.lastIndexOf("}");return Object.entries(JSON.parse(o.slice(g,u+1))).map(([S,{location:f}])=>({name:S,location:f}))},p=async()=>(await n({command:"yarn",args:["workspaces","list","--json"]})).stdout.split(`
|
|
4
|
+
`).map(g=>JSON.parse(g.trim()));try{return{name:"workspace",subcommands:(i?await t():await p()).map(({name:u,location:S})=>({name:u,description:"Workspaces",args:{name:"script",generators:{cache:{strategy:"stale-while-revalidate",ttl:6e4},script:["cat",`${S}/package.json`],postProcess:function(f){if(f.trim()=="")return[];try{let F=JSON.parse(f).scripts;if(F)return Object.keys(F).map(x=>({name:x}))}catch{}return[]}}}}))}}catch(o){console.error(o)}return{name:"workspaces"}}},{name:"workspaces",description:"Show information about your workspaces",options:[{name:"subcommand",description:"",args:{suggestions:[{name:"info"},{name:"run"}]}},{name:"flags",description:""}]},{name:"set",description:"Set global Yarn options",subcommands:[{name:"resolution",description:"Enforce a package resolution",args:[{name:"descriptor",description:"A descriptor for the package, in the form of 'lodash@npm:^1.2.3'"},{name:"resolution",description:"The version of the package to resolve"}],options:[{name:["-s","--save"],description:"Persist the resolution inside the top-level manifest"}]},{name:"version",description:"Lock the Yarn version used by the project",args:{name:"version",description:"Use the specified version, which can also be a Yarn 2 build (e.g 2.0.0-rc.30) or a Yarn 1 build (e.g 1.22.1)",template:"filepaths",suggestions:[{name:"from-sources",insertValue:"from sources"},"latest","canary","classic","self"]},options:[{name:"--only-if-needed",description:"Only lock the Yarn version if it isn't already locked"}]}]}]};var se=e=>e.startsWith("warning:")||e.startsWith("error:")?e.split(`
|
|
5
5
|
`).slice(1).join(`
|
|
6
|
-
`):e,
|
|
7
|
-
`).map(
|
|
8
|
-
`).slice(3).filter(
|
|
6
|
+
`):e,J={script:["git","branch","--no-color"],postProcess:function(e){let n=se(e);return n.startsWith("fatal:")?[]:n.split(`
|
|
7
|
+
`).map(a=>{let i=a.trim(),t=a.match(/\S+/g);if(t&&t.length>1){if(t[0]=="*")return{name:a.replace("*","").trim(),description:"Current branch",icon:"\u2B50\uFE0F"};t[0]=="+"&&(i=a.replace("+","").trim())}return{name:i,description:"Branch",icon:"fig://icon?type=git"}})}},oe={script:["pnpm","ls"],postProcess:function(e){return e.includes("ERR_PNPM")?[]:e.split(`
|
|
8
|
+
`).slice(3).filter(a=>!!a&&!a.toLowerCase().includes("dependencies")&&!a.includes("link:")).map(a=>a.replace(/\s/,"@")).map(a=>({name:a,icon:"fig://icon?type=package"}))}},h={name:["--filter","-F"],args:{template:"filepaths",name:"Filepath / Package",description:"To only select packages under the specified directory, you may specify any absolute path, typically in POSIX format"},description:`Filtering allows you to restrict commands to specific subsets of packages.
|
|
9
9
|
pnpm supports a rich selector syntax for picking packages by name or by relation.
|
|
10
|
-
More details: https://pnpm.io/filtering`},
|
|
11
|
-
|
|
12
|
-
For instance, pnpm add debug -W`},{name:["--global","-g"],description:"Install a package globally"},{name:"--workspace",description:"Only adds the new dependency if it is found in the workspace"},k],ne=[{name:"add",description:"Installs a package and any packages that it depends on. By default, any new package is installed as a production dependency",args:{name:"package",generators:y,debounce:!0,isVariadic:!0},options:[...N,..._]},{name:["install","i"],description:`Pnpm install is used to install all dependencies for a project.
|
|
10
|
+
More details: https://pnpm.io/filtering`},T=[{name:"--offline",description:"If true, pnpm will use only packages already available in the store. If a package won't be found locally, the installation will fail"},{name:"--prefer-offline",description:"If true, staleness checks for cached data will be bypassed, but missing data will be requested from the server. To force full offline mode, use --offline"},{name:"--ignore-scripts",description:"Do not execute any scripts defined in the project package.json and its dependencies"},{name:"--reporter",description:"Allows you to choose the reporter that will log debug info to the terminal about the installation progress",args:{name:"Reporter Type",suggestions:["silent","default","append-only","ndjson"]}},{name:"--allow-build",description:"A list of package names that are allowed to run postinstall scripts during installation. Prefix a name with ! to deny its build instead",isRepeatable:!0,args:{name:"package"}}],V=[{name:["-P","--prod"],description:"Pnpm will not install any package listed in devDependencies and will remove those insofar they were already installed"},{name:["-D","--dev"],description:"Only devDependencies are installed and dependencies are removed insofar they were already installed"},{name:"--no-optional",description:"OptionalDependencies are not installed"},{name:"--lockfile-only",description:"When used, only updates pnpm-lock.yaml and package.json instead of checking node_modules and downloading dependencies"},{name:"--frozen-lockfile",description:"If true, pnpm doesn't generate a lockfile and fails to install if the lockfile is out of sync with the manifest / an update is needed or no lockfile is present"},{name:"--no-frozen-lockfile",description:"Allow the lockfile to be updated, overriding a frozenLockfile: true setting"},{name:"--prefer-frozen-lockfile",description:"Prefer the existing lockfile over re-resolving, even when the manifest may have changed"},{name:"--fix-lockfile",description:"Fix broken lockfile entries automatically"},{name:"--force",description:"Reinstall every package the lockfile names, relinking packages an earlier install already materialized"},{name:"--node-linker",description:"Which node linker to use. Overrides the configured value",args:{name:"Linker",suggestions:["isolated","hoisted","pnp"]}},{name:"--use-store-server",description:"Starts a store server in the background. Removed in pnpm v11 along with pnpm server",deprecated:!0},{name:"--shamefully-hoist",description:"Creates a flat node_modules structure, similar to that of npm or yarn. WARNING: This is highly discouraged"}],Y=[{name:["-P","--save-prod"],description:"Install the specified packages as regular dependencies"},{name:["-D","--save-dev"],description:"Install the specified packages as devDependencies"},{name:["-O","--save-optional"],description:"Install the specified packages as optionalDependencies"},{name:"--no-save",description:"Prevents saving to `dependencies`",deprecated:!0},{name:["-E","--save-exact"],description:"Saved dependencies will be configured with an exact version rather than using pnpm's default semver range operator"},{name:"--save-peer",description:"Using --save-peer will add one or more packages to peerDependencies and install them as dev dependencies"},{name:"--ignore-workspace-root-check",description:`Adding a new dependency to the root workspace package fails, unless the --ignore-workspace-root-check or -w flag is used.
|
|
11
|
+
For instance, pnpm add debug -w`},{name:["--global","-g"],description:"Install a package globally"},{name:"--workspace",description:"Only adds the new dependency if it is found in the workspace"},{name:"--save-catalog",description:"Save the new dependency to the default catalog"},{name:"--save-catalog-name",description:"Save the new dependency to the specified catalog",args:{name:"catalog"}},{name:"--config",description:"Add the package as a configuration dependency"},h],re=[{name:"add",description:"Installs a package and any packages that it depends on. By default, any new package is installed as a production dependency",args:{name:"package",generators:l,debounce:!0,isVariadic:!0},options:[...T,...Y]},{name:["install","i"],description:`Pnpm install is used to install all dependencies for a project.
|
|
13
12
|
In a CI environment, installation fails if a lockfile is present but needs an update.
|
|
14
13
|
Inside a workspace, pnpm install installs all dependencies in all the projects.
|
|
15
|
-
If you want to disable this behavior, set the recursive-install setting to false`,async generateSpec(e){let n=e.filter(
|
|
16
|
-
When used without arguments, updates all dependencies. You can use patterns to update specific dependencies`,args:{name:"Package",isOptional:!0,filterStrategy:"fuzzy",generators:
|
|
17
|
-
If specific packages are updated, the command will fail if any of the updated dependencies are not found inside the workspace. For instance, the following command fails if express is not a workspace package: pnpm up -r --workspace express`},
|
|
18
|
-
When used not inside a workspace, removes a dependency (or dependencies) from every package found in subdirectories`},{name:"--global",description:"Remove a global package"},{name:["-P","--save-prod"],description:"Only remove the dependency from dependencies"},{name:["-D","--save-dev"],description:"Only remove the dependency from devDependencies"},{name:["--save-optional","-O"],description:"Only remove the dependency from optionalDependencies"},
|
|
14
|
+
If you want to disable this behavior, set the recursive-install setting to false`,async generateSpec(e){let n=e.filter(a=>a.trim()!==""&&!a.startsWith("-")).length>2;return{name:"install",options:[...T,...n?Y:V]}},args:{name:"package",isOptional:!0,generators:l,debounce:!0,isVariadic:!0}},{name:["install-test","it"],description:"Runs pnpm install followed immediately by pnpm test. It takes exactly the same arguments as pnpm install",options:[...T,...V,{name:"--no-bail",description:"Continue running workspace tests after a failure"}]},{name:["ci","clean-install","ic","install-clean"],description:"Runs pnpm clean followed by pnpm install --frozen-lockfile",options:[...T,...V]},{name:["clean","purge"],description:"Safely remove node_modules directories from the current project (or every workspace project). A clean script in package.json overrides the built-in command",options:[{name:["-l","--lockfile"],description:"Also remove pnpm-lock.yaml files"}]},{name:["update","upgrade","up"],description:`Pnpm update updates packages to their latest version based on the specified range.
|
|
15
|
+
When used without arguments, updates all dependencies. You can use patterns to update specific dependencies`,args:{name:"Package",isOptional:!0,filterStrategy:"fuzzy",generators:b,isVariadic:!0},options:[{name:["--recursive","-r"],description:"Concurrently runs update in all subdirectories with a package.json (excluding node_modules)"},{name:["--latest","-L"],description:"Ignores the version range specified in package.json. Instead, the version specified by the latest tag will be used (potentially upgrading the packages across major versions)"},{name:["--global","-g"],description:"Update global packages"},{name:["-P","--prod"],description:"Only update packages in dependencies and optionalDependencies"},{name:["-D","--dev"],description:"Only update packages in devDependencies"},{name:"--depth",description:"How deep should levels of dependencies be inspected. 0 means top-level dependencies only",args:{name:"number"}},{name:"--no-save",description:"Do not write the updated ranges back to package.json. The lockfile is still updated"},{name:"--no-optional",description:"Don't update packages in optionalDependencies"},{name:["--interactive","-i"],description:"Show outdated dependencies and select which ones to update"},{name:"--workspace",description:`Tries to link all packages from the workspace. Versions are updated to match the versions of packages inside the workspace.
|
|
16
|
+
If specific packages are updated, the command will fail if any of the updated dependencies are not found inside the workspace. For instance, the following command fails if express is not a workspace package: pnpm up -r --workspace express`},h]},{name:["remove","rm","uninstall","un"],description:"Removes packages from node_modules and from the project's package.json",args:{name:"Package",filterStrategy:"fuzzy",generators:b,isVariadic:!0},options:[{name:["--recursive","-r"],description:`When used inside a workspace, removes a dependency (or dependencies) from every workspace package.
|
|
17
|
+
When used not inside a workspace, removes a dependency (or dependencies) from every package found in subdirectories`},{name:["--global","-g"],description:"Remove a global package"},{name:["-P","--save-prod"],description:"Only remove the dependency from dependencies"},{name:["-D","--save-dev"],description:"Only remove the dependency from devDependencies"},{name:["--save-optional","-O"],description:"Only remove the dependency from optionalDependencies"},h]},{name:["link","ln"],description:"Links a local package as a dependency. Only relative or absolute paths are accepted",args:{name:"Path",template:"folders",isVariadic:!0},options:[{name:["--dir","-C"],description:"Changes the link location to <dir>"},{name:"--global",description:"Removed in pnpm v11. To register a local package's bins globally, use pnpm add -g . instead",deprecated:!0}]},{name:["unlink","dislink"],description:`Unlinks a system-wide package (inverse of pnpm link).
|
|
19
18
|
If called without arguments, all linked dependencies will be unlinked.
|
|
20
|
-
This is similar to yarn unlink, except pnpm re-installs the dependency after removing the external link`,args:[{name:"Package",filterStrategy:"fuzzy",generators:
|
|
21
|
-
node_modules/.bin is added to the PATH, so pnpm exec allows executing commands of dependencies`,args:{name:"Scripts",filterStrategy:"fuzzy",generators:
|
|
22
|
-
The name of the current package is available through the environment variable PNPM_PACKAGE_NAME (supported from pnpm v2.22.0 onwards)`},{name:"--parallel",description:"Completely disregard concurrency and topological sorting, running a given script immediately in all matching packages with prefixed streaming output. This is the preferred flag for long-running processes over many packages, for instance, a lengthy build process"},
|
|
19
|
+
This is similar to yarn unlink, except pnpm re-installs the dependency after removing the external link`,args:[{name:"Package",filterStrategy:"fuzzy",generators:b,isVariadic:!0},{template:"filepaths"}],options:[{name:["--recursive","-r"],description:"Unlink in every package found in subdirectories or in every workspace package, when executed inside a workspace"},h]},{name:"import",description:"Pnpm import generates a pnpm-lock.yaml from an npm package-lock.json (or npm-shrinkwrap.json) file"},{name:["rebuild","rb"],description:"Rebuild a package",args:[{name:"Package",filterStrategy:"fuzzy",generators:b,isVariadic:!0},{template:"filepaths"}],options:[{name:["--recursive","-r"],description:"This command runs the pnpm rebuild command in every package of the monorepo"},{name:"--pending",description:"Rebuild packages that were not built during installation, such as under --ignore-scripts"},h]},{name:"prune",description:"Removes unnecessary packages",options:[{name:"--prod",description:"Remove the packages specified in devDependencies"},{name:"--no-optional",description:"Remove the packages specified in optionalDependencies"}]},{name:"fetch",description:"EXPERIMENTAL FEATURE: Fetch packages from a lockfile into virtual store, package manifest is ignored: https://pnpm.io/cli/fetch",options:[{name:"--prod",description:"Development packages will not be fetched"},{name:"--dev",description:"Only development packages will be fetched"}]},{name:"patch",description:"This command will cause a package to be extracted in a temporary directory intended to be editable at will",args:{name:"package",generators:oe},options:[{name:["--edit-dir","-d"],description:"The package that needs to be patched will be extracted to this directory",args:{name:"dir",template:"folders"}},{name:"--ignore-existing",description:"Ignore existing patch files when patching"}]},{name:"patch-commit",args:{name:"dir"},description:"Generate a patch out of a directory",options:[{name:"--patches-dir",description:"The generated patch file will be saved to this directory",args:{name:"dir",template:"folders"}}]},{name:"patch-remove",description:"Remove existing patch files",args:{name:"package",isVariadic:!0}},{name:"dedupe",description:"Deduplicate packages in the lockfile",options:[{name:"--check",description:"Check if running dedupe would result in changes without installing packages or editing the lockfile. Exits with a non-zero status code if changes are possible"},h]},{name:"deploy",description:"Deploy a package from a workspace",args:{name:"Target deploy directory",template:"folders"},options:[{name:["-P","--prod"],description:"Only production dependencies are installed"},{name:["-D","--dev"],description:"Only devDependencies are installed"},{name:"--no-optional",description:"OptionalDependencies are not installed"},{name:"--legacy",description:"Use the legacy deploy implementation"},h]},{name:"approve-builds",description:"Approve dependencies for running scripts during installation. Prefix a package name with ! to deny it",args:{name:"package",isOptional:!0,isVariadic:!0},options:[{name:"--all",description:"Approve all pending dependencies without interactive prompts"},{name:["--global","-g"],description:"Approve builds for globally installed packages"}]},{name:"ignored-builds",description:"Print the list of packages with blocked build scripts"}],pe=[{name:["run","run-script"],description:"Runs a script defined in the package's manifest file",args:{name:"Scripts",filterStrategy:"fuzzy",generators:D,isVariadic:!0},options:[{name:["-r","--recursive"],description:`This runs an arbitrary command from each package's "scripts" object. If a package doesn't have the command, it is skipped. If none of the packages have the command, the command fails`},{name:"--if-present",description:"You can use the --if-present flag to avoid exiting with a non-zero exit code when the script is undefined. This lets you run potentially undefined scripts without breaking the execution chain"},{name:"--parallel",description:"Completely disregard concurrency and topological sorting, running a given script immediately in all matching packages with prefixed streaming output. This is the preferred flag for long-running processes over many packages, for instance, a lengthy build process"},{name:"--stream",description:"Stream output from child processes immediately, prefixed with the originating package directory. This allows output from different packages to be interleaved"},{name:["-s","--sequential"],description:"Run the specified scripts one by one"},{name:"--reporter-hide-prefix",description:"Hide workspace prefix from output from child processes that are run in parallel, and only print the raw output"},h]},{name:"exec",description:`Execute a shell command in scope of a project.
|
|
20
|
+
node_modules/.bin is added to the PATH, so pnpm exec allows executing commands of dependencies`,args:{name:"Scripts",filterStrategy:"fuzzy",generators:b,isVariadic:!0},options:[{name:["-r","--recursive"],description:`Execute the shell command in every project of the workspace.
|
|
21
|
+
The name of the current package is available through the environment variable PNPM_PACKAGE_NAME (supported from pnpm v2.22.0 onwards)`},{name:"--parallel",description:"Completely disregard concurrency and topological sorting, running a given script immediately in all matching packages with prefixed streaming output. This is the preferred flag for long-running processes over many packages, for instance, a lengthy build process"},{name:["-c","--shell-mode"],description:"Run the command inside of a shell. Uses /bin/sh on UNIX and cmd.exe on Windows"},h]},{name:"dlx",description:"Run a package in a temporary environment",args:{name:"command",generators:l,debounce:!0},options:[{name:"--package",description:"The package to install before running the command",isRepeatable:!0,args:{name:"package",generators:l,debounce:!0}},{name:["-c","--shell-mode"],description:"Runs the command inside of a shell. Uses /bin/sh on UNIX and cmd.exe on Windows"},{name:"--allow-build",description:"A list of package names that are allowed to run postinstall scripts during installation",isRepeatable:!0,args:{name:"package"}}]},{name:"create",description:"Creates a project from a create-* starter kit",args:{name:"starter kit"},options:[{name:"--allow-build",description:"A list of package names that are allowed to run postinstall scripts during installation",isRepeatable:!0,args:{name:"package"}}]},{name:["test","t","tst"],description:`Runs an arbitrary command specified in the package's test property of its scripts object.
|
|
23
22
|
The intended usage of the property is to specify a command that runs unit or integration testing for your program`},{name:"start",description:`Runs an arbitrary command specified in the package's start property of its scripts object. If no start property is specified on the scripts object, it will attempt to run node server.js as a default, failing if neither are present.
|
|
24
|
-
The intended usage of the property is to specify a command that starts your program`}],
|
|
23
|
+
The intended usage of the property is to specify a command that starts your program`},{name:"stop",description:`Runs a package's "stop" script, if one was provided`},{name:"restart",description:'Restarts a package. Runs "stop", "restart" (if present), and "start" scripts, and associated pre- and post- scripts'}],ce=[{name:"audit",description:`Checks for known security issues with the installed packages.
|
|
25
24
|
If security issues are found, try to update your dependencies via pnpm update.
|
|
26
25
|
If a simple update does not fix all the issues, use overrides to force versions that are not vulnerable.
|
|
27
26
|
For instance, if lodash@<2.1.0 is vulnerable, use overrides to force lodash@^2.1.0.
|
|
28
|
-
Details at: https://pnpm.io/cli/audit`,options:[{name:"--audit-level",description:"Only print advisories with severity greater than or equal to <severity>",args:{name:"Audit Level",default:"low",suggestions:["low","moderate","high","critical"]}},{name:"--fix",description:"Add overrides to the
|
|
29
|
-
Positional arguments are name-pattern@version-range identifiers, which will limit the results to only the packages named. For example, pnpm list "babel-*" "eslint-*" semver@5`,options:[{name:["--recursive","-r"],description:"Perform command on every package in subdirectories or on every workspace package, when executed inside a workspace"},{name:"--json",description:"Log output in JSON format"},{name:"--long",description:"Show extended information"},{name:"--parseable",description:"Outputs package directories in a parseable format instead of their tree view"},{name:"--global",description:"List packages in the global install directory instead of in the current project"},{name:"--depth",description:`Max display depth of the dependency tree.
|
|
30
|
-
pnpm ls --depth 0 will list direct dependencies only. pnpm ls --depth -1 will list projects only. Useful inside a workspace when used with the -r option`,args:{name:"number"}},{name:["--dev","-D"],description:"Only list dev dependencies"},{name:["--prod","-P"],description:"Only list production dependencies"},{name:"--no-optional",description:"Don't list optionalDependencies"},
|
|
27
|
+
Details at: https://pnpm.io/cli/audit`,options:[{name:"--audit-level",description:"Only print advisories with severity greater than or equal to <severity>",args:{name:"Audit Level",default:"low",suggestions:["low","moderate","high","critical"]}},{name:"--fix",description:"Add overrides to the pnpm-workspace.yaml file in order to force non-vulnerable versions of the dependencies. Use --fix=update to update the vulnerable packages in the lockfile instead",requiresSeparator:!0,args:{name:"method",isOptional:!0,suggestions:["override","update"]}},{name:["--interactive","-i"],description:"Review the advisories selected by --fix and pick which ones to apply",dependsOn:["--fix"]},{name:"--ignore",description:"Ignore a vulnerability by its GitHub advisory ID (GHSA)",isRepeatable:!0,args:{name:"GHSA"}},{name:"--ignore-unfixable",description:"Ignore all advisories with no resolution"},{name:"--json",description:"Output audit report in JSON format"},{name:["--dev","-D"],description:"Only audit dev dependencies"},{name:["--prod","-P"],description:"Only audit production dependencies"},{name:"--no-optional",description:"Don't audit optionalDependencies"},{name:"--ignore-registry-errors",description:"If the registry responds with a non-200 status code, the process should exit with 0. So the process will fail only if the registry actually successfully responds with found vulnerabilities"}],subcommands:[{name:"signatures",description:"Verifies the ECDSA registry signatures of installed packages against the public keys published by each registry"}]},{name:["list","ls"],description:`This command will output all the versions of packages that are installed, as well as their dependencies, in a tree-structure.
|
|
28
|
+
Positional arguments are name-pattern@version-range identifiers, which will limit the results to only the packages named. For example, pnpm list "babel-*" "eslint-*" semver@5`,options:[{name:["--recursive","-r"],description:"Perform command on every package in subdirectories or on every workspace package, when executed inside a workspace"},{name:"--json",description:"Log output in JSON format"},{name:"--long",description:"Show extended information"},{name:"--parseable",description:"Outputs package directories in a parseable format instead of their tree view"},{name:["--global","-g"],description:"List packages in the global install directory instead of in the current project"},{name:"--depth",description:`Max display depth of the dependency tree.
|
|
29
|
+
pnpm ls --depth 0 will list direct dependencies only. pnpm ls --depth -1 will list projects only. Useful inside a workspace when used with the -r option`,args:{name:"number"}},{name:"--exclude-peers",description:"Exclude peer dependencies from the results (but dependencies of peer dependencies are not ignored)"},{name:"--only-projects",description:"Display only dependencies that are also projects within the workspace"},{name:"--lockfile-only",description:"List packages from the lockfile only, without checking node_modules"},{name:["--dev","-D"],description:"Only list dev dependencies"},{name:["--prod","-P"],description:"Only list production dependencies"},{name:"--no-optional",description:"Don't list optionalDependencies"},h]},{name:"outdated",description:"Checks for outdated packages. The check can be limited to a subset of the installed packages by providing arguments (patterns are supported)",options:[{name:["--recursive","-r"],description:"Check for outdated dependencies in every package found in subdirectories, or in every workspace package when executed inside a workspace"},{name:"--long",description:"Print details"},{name:["--global","-g"],description:"List outdated global packages"},{name:"--format",description:"Prints the outdated dependencies in the given format",args:{name:"format",suggestions:["table","list","json"]}},{name:"--no-table",description:"Prints the outdated dependencies in a list format instead of the default table. Good for small consoles"},{name:"--compatible",description:"Prints only versions that satisfy specifications in package.json"},{name:["--dev","-D"],description:"Only list dev dependencies"},{name:["--prod","-P"],description:"Only list production dependencies"},{name:"--no-optional",description:"Doesn't check optionalDependencies"}]},{name:"why",description:"Shows all packages that depend on the specified package",args:{name:"Scripts",filterStrategy:"fuzzy",generators:b,isVariadic:!0},options:[{name:["--recursive","-r"],description:"Show the dependency tree for the specified package on every package in subdirectories or on every workspace package when executed inside a workspace"},{name:"--json",description:"Log output in JSON format"},{name:"--long",description:"Show verbose output"},{name:"--parseable",description:"Show parseable output instead of tree view"},{name:"--global",description:"List packages in the global install directory instead of in the current project"},{name:["--dev","-D"],description:"Only display the dependency tree for packages in devDependencies"},{name:["--prod","-P"],description:"Only display the dependency tree for packages in dependencies"},{name:"--no-optional",description:"Don't display packages from optionalDependencies"},{name:"--depth",description:"Display only dependencies within a specific depth",args:{name:"number"}},h]},{name:["licenses","licences"],description:"Check the licenses of the installed packages",subcommands:[{name:"list",description:"List licenses for installed packages",options:[{name:["--recursive","-r"],description:"Run the command for every project in the workspace instead of only the current project"},{name:"--json",description:"Output the information in JSON format"},{name:"--long",description:"Show more details (such as a link to the repo)"},{name:["--dev","-D"],description:"Only dependencies in devDependencies"},{name:["--prod","-P"],description:"Only dependencies in dependencies and optionalDependencies"},{name:"--no-optional",description:"Don't check optionalDependencies"},h]}]},{name:"peers",description:"Checks for unmet or missing peer dependency issues",subcommands:[{name:"check",description:"Checks for unmet and missing peer dependency issues by reading the lockfile",options:[{name:"--json",description:"Output the information in JSON format"}]}]},{name:"sbom",description:"Generate a Software Bill of Materials (SBOM)",options:[{name:"--sbom-format",description:"The SBOM output format (required)",isRequired:!0,args:{name:"format",suggestions:["cyclonedx","spdx"]}},{name:"--sbom-type",description:"The component type for the root package",args:{name:"type",default:"library"}},{name:"--out",description:"Write SBOM to a file instead of stdout. Use %s for the package name and %v for the version",args:{name:"file",template:"filepaths"}},{name:"--split",description:"Generate a separate SBOM for each matched workspace package"},{name:"--lockfile-only",description:"Only use lockfile data (skip reading from the store)"},{name:"--exclude-peers",description:"Exclude peer dependencies"},{name:["--prod","-P"],description:"Only include production dependencies"},{name:["--dev","-D"],description:"Only include dev dependencies"},{name:"--no-optional",description:"Exclude optional dependencies"},h]},{name:["view","info","show","v"],description:"View registry information about a package",args:{name:"package",generators:l,debounce:!0},options:[{name:"--json",description:"Show information in JSON format"}]}],$=[{name:"publish",description:`Publishes a package to the registry.
|
|
31
30
|
When publishing a package inside a workspace, the LICENSE file from the root of the workspace is packed with the package (unless the package has a license of its own).
|
|
32
31
|
You may override some fields before publish, using the publishConfig field in package.json. You also can use the publishConfig.directory to customize the published subdirectory (usually using third party build tools).
|
|
33
|
-
When running this command recursively (pnpm -r publish), pnpm will publish all the packages that have versions not yet published to the registry`,args:{name:"Branch",generators:
|
|
32
|
+
When running this command recursively (pnpm -r publish), pnpm will publish all the packages that have versions not yet published to the registry`,args:{name:"Branch",generators:J},options:[{name:"--tag",description:"Publishes the package with the given tag. By default, pnpm publish updates the latest tag",args:{name:"<tag>"}},{name:"--dry-run",description:"Does everything a publish would do except actually publishing to the registry"},{name:"--ignore-scripts",description:"Ignores any publish related lifecycle scripts (prepublishOnly, postpublish, and the like)"},{name:"--no-git-checks",description:"Don't check if current branch is your publish branch, clean, and up-to-date"},{name:"--access",description:"Tells the registry whether the published package should be public or restricted",args:{name:"Type",suggestions:["public","restricted"]}},{name:"--force",description:"Try to publish packages even if their current version is already found in the registry"},{name:"--report-summary",description:"Save the list of published packages to pnpm-publish-summary.json. Useful when some other tooling is used to report the list of published packages"},{name:"--otp",description:"One-time password for two-factor-authenticated registries",args:{name:"otp"}},{name:"--provenance",description:"Generate a provenance attestation for the published package"},{name:"--publish-branch",description:"The branch publishing is allowed from. Defaults to master / main",args:{name:"Branch",generators:J}},{name:"--json",description:"Print the per-package publish summary in JSON"},h]},{name:["recursive","m","multi","-r"],description:"Runs a pnpm command recursively on all subdirectories in the package or every available workspace",options:[{name:"--link-workspace-packages",description:`Link locally available packages in workspaces of a monorepo into node_modules instead of re-downloading them from the registry. This emulates functionality similar to yarn workspaces.
|
|
34
33
|
When this is set to deep, local packages can also be linked to subdependencies.
|
|
35
|
-
Be advised that it is encouraged instead to use npmrc for this setting, to enforce the same behaviour in all environments. This option exists solely so you may override that if necessary`,args:{name:"bool or `deep`",suggestions:["
|
|
34
|
+
Be advised that it is encouraged instead to use npmrc for this setting, to enforce the same behaviour in all environments. This option exists solely so you may override that if necessary`,args:{name:"bool or `deep`",suggestions:["true","false","deep"]}},{name:"--workspace-concurrency",description:"Set the maximum number of tasks to run simultaneously. For unlimited concurrency use Infinity",args:{name:"<number>"}},{name:"--bail",description:"Stops when a task throws an error"},{name:"--no-bail",description:"Don't stop when a task throws an error"},{name:"--sort",description:"Packages are sorted topologically (dependencies before dependents)"},{name:"--no-sort",description:"Disable packages sorting"},{name:"--reverse",description:"The order of packages is reversed"},h]},{name:"server",description:"Manage a store server. Removed in pnpm v11 with no replacement",deprecated:!0,subcommands:[{name:"start",description:"Starts a server that performs all interactions with the store. Other commands will delegate any store-related tasks to this server",options:[{name:"--background",description:"Runs the server in the background, similar to daemonizing on UNIX systems"},{name:"--network-concurrency",description:"The maximum number of network requests to process simultaneously",args:{name:"number"}},{name:"--protocol",description:"The communication protocol used by the server. When this is set to auto, IPC is used on all systems except for Windows, which uses TCP",args:{name:"Type",suggestions:["auto","tcp","ipc"]}},{name:"--port",description:"The port number to use when TCP is used for communication. If a port is specified and the protocol is set to auto, regardless of system type, the protocol is automatically set to use TCP",args:{name:"port number"}},{name:"--store-dir",description:"The directory to use for the content addressable store",args:{name:"Path",template:"filepaths"}},{name:"--lock",description:"Set to make the package store immutable to external processes while the server is running or not"},{name:"--no-lock",description:"Set to make the package store mutable to external processes while the server is running or not"},{name:"--ignore-stop-requests",description:"Prevents you from stopping the server using pnpm server stop"},{name:"--ignore-upload-requests",description:"Prevents creating a new side effect cache during install"}]},{name:"stop",description:"Stops the store server"},{name:"status",description:"Prints information about the running server"}]},{name:"store",description:"Managing the package store",subcommands:[{name:"status",description:`Checks for modified packages in the store.
|
|
36
35
|
Returns exit code 0 if the content of the package is the same as it was at the time of unpacking`},{name:"add",description:`Functionally equivalent to pnpm add,
|
|
37
36
|
except this adds new packages to the store directly without modifying any projects or files outside of the store`},{name:"prune",description:`Removes orphan packages from the store.
|
|
38
37
|
Pruning the store will save disk space, however may slow down future installations involving pruned packages.
|
|
39
38
|
Ultimately, it is a safe operation, however not recommended if you have orphaned packages from a package you intend to reinstall.
|
|
40
39
|
Please read the FAQ for more information on unreferenced packages and best practices.
|
|
41
|
-
Please note that this is prohibited when a store server is running`},{name:"path",description:"Returns the path to the active store directory"}]},{name:"init",description:"Creates a basic package.json file in the current directory, if it doesn't exist already"},{name:"doctor",description:"Checks for known common issues with pnpm configuration"}],W=[...ne,...ae,...te,...G],M=["add","exec","install","list","outdated","publish","rebuild","remove","run","test","unlink","update","why"],ie=W.filter(e=>Array.isArray(e.name)?e.name.some(n=>M.includes(n)):M.includes(e.name));G[1].subcommands=ie;var se=[{name:["-C","--dir"],args:{name:"path",template:"folders"},isPersistent:!0,description:"Run as if pnpm was started in <path> instead of the current working directory"},{name:["-w","--workspace-root"],args:{name:"workspace"},isPersistent:!0,description:"Run as if pnpm was started in the root of the <workspace> instead of the current working directory"},{name:["-h","--help"],isPersistent:!0,description:"Output usage information"},{name:["-v","--version"],description:"Show pnpm's version"}],oe={name:"pnpm",description:"Fast, disk space efficient package manager",args:{name:"Scripts",filterStrategy:"fuzzy",generators:D,isVariadic:!0},filterStrategy:"fuzzy",generateSpec:async(e,n)=>{let{script:t,postProcess:i}=f;return i===void 0?void 0:{name:"pnpm",subcommands:i((await n({command:t[0],args:t.slice(1)})).stdout,e)?.filter(s=>s!==null).map(({name:s})=>s)?.filter(s=>R.has(s)).map(s=>({name:s,loadSpec:s,icon:"fig://icon?type=package"}))}},subcommands:W,options:se},ue=oe;export{ue as default};
|
|
40
|
+
Please note that this is prohibited when a store server is running`},{name:"path",description:"Returns the path to the active store directory"}]},{name:"init",description:"Creates a basic package.json file in the current directory, if it doesn't exist already",options:[{name:"--bare",description:"Create a package.json file with the bare minimum of required fields"},{name:"--init-type",description:'Set the module system for the package. Defaults to "module"',args:{name:"type",suggestions:["commonjs","module"]}},{name:"--init-package-manager",description:"Pin the latest pnpm version in package.json, through devEngines.packageManager and packageManager"}]},{name:"doctor",description:"Checks for known common issues with pnpm configuration"},{name:"self-update",description:"Updates pnpm to the latest version (or the one specified)",args:{name:"version",isOptional:!0}},{name:["runtime","rt"],description:"Manage runtimes",subcommands:[{name:"set",description:"Installs the specified version of a runtime (e.g. node, deno, bun)",args:[{name:"name",suggestions:["node","deno","bun"]},{name:"version",suggestions:["lts","latest","nightly","rc"]}],options:[{name:["--global","-g"],description:"Installs the runtime globally"}]}]},{name:"env",description:"Manage Node.js versions. Deprecated in favour of pnpm runtime",deprecated:!0},{name:"with",description:`Runs pnpm at a specific version (or the currently running one) for a single invocation, ignoring the "packageManager" and "devEngines.packageManager" fields of the project's manifest`,args:[{name:"version",suggestions:["current","next"]},{name:"pnpm args",isOptional:!0,isVariadic:!0}]},{name:"setup",description:"Sets up pnpm",options:[{name:["--force","-f"],description:"Override the PNPM_HOME env variable in case it already exists"}]},{name:"bin",description:"Print the directory where pnpm will install executables",options:[{name:["--global","-g"],description:"Print the global executables directory"}]},{name:"root",description:"Print the effective node_modules directory",options:[{name:["--global","-g"],description:"Print the global packages directory"}]},{name:"prefix",description:"Print the current package prefix"},{name:["config","c"],description:"Manage the pnpm configuration files",subcommands:[{name:"set",description:"Set the config key to the value provided",args:[{name:"key"},{name:"value"}]},{name:"get",description:"Print the config value for the provided key",args:{name:"key"}},{name:"delete",description:"Remove the config key from the config file",args:{name:"key"}},{name:"list",description:"Show all the config settings"}],options:[{name:["--global","-g"],description:"Operate on the global config file"},{name:"--location",description:"Which config to read or write",args:{name:"location",suggestions:["project","global"]}},{name:"--json",description:"Show all types of values in JSON format (not just objects and arrays)"}]},{name:"get",description:"Print the config value for the provided key. Shorthand for pnpm config get",args:{name:"key"}},{name:"set",description:"Set the config key to the value provided. Shorthand for pnpm config set",args:[{name:"key"},{name:"value"}]},{name:"pkg",description:"Manages your package.json"},{name:["set-script","ss"],description:"Set a script in package.json"},{name:"cache",description:"Inspect and manage the metadata cache",subcommands:[{name:"list",description:"Lists the available packages metadata cache. Supports filtering by glob"},{name:"list-registries",description:"Lists all registries that have their metadata cache locally"},{name:"path",description:"Prints the path to the cache directory"},{name:"view",description:"Views information from the specified package's cache",args:{name:"package"}},{name:"delete",description:"Deletes metadata cache for the specified packages. Supports patterns",args:{name:"package",isVariadic:!0}},{name:"prune",description:"Deletes registry metadata cache directories that this version of pnpm can no longer read"}]},{name:"pack",description:"Create a tarball from a package",options:[{name:"--dry-run",description:"Do everything pack would do except writing the tarball to disk"},{name:"--pack-destination",description:"Directory in which to save the tarball",args:{name:"dir",template:"folders"}},{name:"--out",description:"Customize the output path. %s expands to the package name and %v to the version",args:{name:"path",template:"filepaths"}},{name:"--json",description:"Print the packed tarball and its contents in JSON"}]},{name:"stage",description:"Stage packages for publishing, deferring proof-of-presence (2FA) to a later point in time"},{name:"change",description:"Record a change intent: which packages a change affects, the bump type for each, and a summary that becomes the changelog entry",options:[{name:"--bump",description:"Bump type for the named packages",args:{name:"type",suggestions:["none","patch","minor","major"]}},{name:"--summary",description:"The summary for the changelog entry",args:{name:"summary"}}]},{name:"version",description:"Apply the pending change intents"},{name:"lane",description:"Manage per-package release lanes"},{name:"pipeline",description:"Runs a named pipeline of workspace tasks the way a CI run would",args:{name:"name",isOptional:!0}},{name:"tasks",description:"Inspect tasks in concurrency groups",subcommands:[{name:"status",description:"Show running and waiting tasks in concurrency groups"}]},{name:"permissions",description:"Review what dependencies may do: run build scripts and provide agent skills",subcommands:[{name:"approve",description:"Approve or deny what the dependencies awaiting approval may do"},{name:["list","ls"],description:"List the decisions in pnpm-workspace.yaml and what awaits approval"}]},{name:"approve",description:"Approve or deny what dependencies may do. Same as pnpm permissions approve"},{name:"shim",description:"Manage context-aware shims for packages that are not installed globally, so a project decides which version runs"},{name:"pack-app",description:"Pack a CommonJS entry file into a standalone executable for one or more target platforms"},{name:"pm",description:"Runs the built-in pnpm command even when a package.json script with the same name exists"},{name:"find-hash",description:"Lists the packages that include the file with the specified hash",args:{name:"hash"}},{name:"cat-file",description:"Prints the contents of a file based on the hash value stored in the index file",args:{name:"hash"}},{name:"cat-index",description:"Prints the index file of a specific package from the store",args:{name:"package"}},{name:["login","adduser"],description:"Log in to an npm registry",options:[{name:"--scope",description:"Associate the login token with a package scope",args:{name:"scope"}}]},{name:"logout",description:"Log out of an npm registry"},{name:"whoami",description:"Displays your pnpm username"},{name:["dist-tag","dist-tags"],description:"Manage a package's distribution tags",subcommands:[{name:"add",description:"Tags the specified version of the package",args:[{name:"package@version"},{name:"tag",isOptional:!0}]},{name:"rm",description:"Removes a tag from the package",args:[{name:"package"},{name:"tag"}]},{name:"ls",description:"Lists the distribution tags of the package",args:{name:"package",isOptional:!0}}]},{name:"deprecate",description:"Deprecates a version of a package in the registry",args:[{name:"package@version"},{name:"message"}]},{name:"undeprecate",description:"Removes deprecation from a version of a package in the registry",args:{name:"package@version"}},{name:"unpublish",description:"Removes a package from the registry",args:{name:"package@version",isOptional:!0},options:[{name:"--force",description:"Removes the package from the registry regardless of what version is currently published"}]},{name:["search","s","se","find"],description:"Search for packages in the registry",args:{name:"query",isVariadic:!0},options:[{name:"--json",description:"Show search results in JSON format"}]},{name:["docs","home"],description:"Opens the documentation of a package in the browser",args:{name:"package",generators:l,debounce:!0}},{name:"repo",description:"Opens the URL of the package's repository in a browser",args:{name:"package",generators:l,debounce:!0}},{name:["bugs","issues"],description:"Opens the bug tracker URL of a package in the default browser",args:{name:"package",generators:l,debounce:!0}},{name:["owner","owners"],description:"Manage package owners on the registry"},{name:"access",description:"Manage package access and visibility on the registry"},{name:"team",description:"Manage organization teams and team memberships"},{name:"token",description:"Manage authentication tokens on the registry"},{name:"profile",description:"Change settings on your registry profile"},{name:"star",description:"Marks a package as a favorite",args:{name:"package"}},{name:"unstar",description:"Unmarks a package as a favorite",args:{name:"package"}},{name:"stars",description:"Lists all packages starred by a specific user",args:{name:"username",isOptional:!0}},{name:"ping",description:"Test connectivity to the configured registry"},{name:"completion",description:"Print shell completion code to stdout",args:{name:"shell",suggestions:["bash","fish","pwsh","zsh"]}}],X=[...re,...ce,...pe,...$],H=["add","exec","install","list","outdated","publish","rebuild","remove","run","test","unlink","update","why"],de=X.filter(e=>Array.isArray(e.name)?e.name.some(n=>H.includes(n)):H.includes(e.name));$[1].subcommands=de;var le=[{name:["-C","--dir"],args:{name:"path",template:"folders"},isPersistent:!0,description:"Run as if pnpm was started in <path> instead of the current working directory"},{name:["-w","--workspace-root"],isPersistent:!0,description:"Run the command on the root workspace project"},{...h,isPersistent:!0},{name:"--filter-prod",args:{name:"pattern"},isPersistent:!0,description:"Like --filter, but follow only production dependencies when selecting projects"},{name:"--ignore-workspace",isPersistent:!0,description:"Run as if the project were standalone, ignoring any pnpm-workspace.yaml above it"},{name:"--env-file",args:{name:"path",template:"filepaths"},isPersistent:!0,isRepeatable:!0,description:"Load environment variables from a dotenv-style file before running"},{name:"--loglevel",args:{name:"level",suggestions:["silent","error","warn","info","debug"]},isPersistent:!0,description:"What level of logs to print"},{name:["-y","--yes"],isPersistent:!0,description:"Automatically answer yes to prompts"},{name:["-h","--help"],isPersistent:!0,description:"Output usage information"},{name:["-v","--version"],description:"Show pnpm's version"}],me={name:"pnpm",description:"Fast, disk space efficient package manager",args:{name:"Scripts",filterStrategy:"fuzzy",generators:D,isVariadic:!0},filterStrategy:"fuzzy",generateSpec:async(e,n)=>{let{script:a,postProcess:i}=b;return i===void 0?void 0:{name:"pnpm",subcommands:i((await n({command:a[0],args:a.slice(1)})).stdout,e)?.filter(o=>o!==null).map(({name:o})=>o)?.filter(o=>U.has(o)).map(o=>({name:o,loadSpec:o,icon:"fig://icon?type=package"}))}},subcommands:X,options:le},ve=me;export{ve as default};
|