Interface: WxtPackageManager
Package management utils built on top of nypm
Contents
Extends
PackageManager
Properties
addDependency
addDependency: (
name,options?) =>Promise<OperationResult>
Adds dependency to the project.
Parameters
▪ name: string | string[]
Name of the dependency to add.
▪ options?: OperationOptions
Options to pass to the API call.
Source
packages/wxt/src/types.ts:1484
addDevDependency
addDevDependency: (
name,options?) =>Promise<OperationResult>
Adds dev dependency to the project.
Parameters
▪ name: string | string[]
Name of the dev dependency to add.
▪ options?: Omit<OperationOptions, "dev">
Options to pass to the API call.
Source
packages/wxt/src/types.ts:1485
buildMeta
buildMeta?:
string
Inherited from
Nypm.PackageManager.buildMeta
Source
node_modules/.pnpm/nypm@0.6.1/node_modules/nypm/dist/index.d.mts:6
command
command:
string
Inherited from
Nypm.PackageManager.command
Source
node_modules/.pnpm/nypm@0.6.1/node_modules/nypm/dist/index.d.mts:4
downloadDependency
downloadDependency: (
id,downloadDir) =>Promise<string>
Download a package's TGZ file and move it into the downloadDir. Use's npm pack <name>, so you must have setup authorization in .npmrc file, regardless of the package manager used.
Parameters
▪ id: string
Name of the package to download, can include a version (like wxt@0.17.1)
▪ downloadDir: string
Where to store the package.
Source
packages/wxt/src/types.ts:1497
ensureDependencyInstalled
ensureDependencyInstalled: (
name,options?) =>Promise<true|undefined>
Ensures dependency is installed.
Parameters
▪ name: string
Name of the dependency.
▪ options?: Pick<OperationOptions, "dev" | "cwd" | "workspace">
Options to pass to the API call.
Source
packages/wxt/src/types.ts:1486
files
files?:
string[]
Inherited from
Nypm.PackageManager.files
Source
node_modules/.pnpm/nypm@0.6.1/node_modules/nypm/dist/index.d.mts:9
installDependencies
installDependencies: (
options?) =>Promise<OperationResult>
Installs project dependencies.
Parameters
▪ options?: Pick<OperationOptions, "silent" | "cwd" | "packageManager" | "dry"> & object
Options to pass to the API call.
Source
packages/wxt/src/types.ts:1487
listDependencies
listDependencies: (
options?) =>Promise<Dependency[]>
Run npm ls, pnpm ls, or bun pm ls, or yarn list and return the results.
WARNING: Yarn always returns all dependencies
Parameters
▪ options?: object
▪ options.all?: boolean
▪ options.cwd?: string
Source
packages/wxt/src/types.ts:1503
lockFile
lockFile?:
string|string[]
Inherited from
Nypm.PackageManager.lockFile
Source
node_modules/.pnpm/nypm@0.6.1/node_modules/nypm/dist/index.d.mts:8
majorVersion
majorVersion?:
string
Inherited from
Nypm.PackageManager.majorVersion
Source
node_modules/.pnpm/nypm@0.6.1/node_modules/nypm/dist/index.d.mts:7
name
name:
PackageManagerName
Inherited from
Nypm.PackageManager.name
Source
node_modules/.pnpm/nypm@0.6.1/node_modules/nypm/dist/index.d.mts:3
overridesKey
overridesKey:
string
Key used to override package versions. Sometimes called "resolutions".
Source
packages/wxt/src/types.ts:1510
removeDependency
removeDependency: (
name,options?) =>Promise<OperationResult>
Removes dependency from the project.
Parameters
▪ name: string | string[]
Name of the dependency to remove.
▪ options?: OperationOptions
Options to pass to the API call.
Source
packages/wxt/src/types.ts:1488
version
version?:
string
Inherited from
Nypm.PackageManager.version
Source
node_modules/.pnpm/nypm@0.6.1/node_modules/nypm/dist/index.d.mts:5
Generated using typedoc-plugin-markdown and TypeDoc