pnpm
Version:
A fast implementation of npm install
17 lines (16 loc) • 550 B
TypeScript
import { PackageSpec } from '../install';
import { ResolveResult } from '.';
/**
* Resolves a 'remote' package.
*
* @example
* pkg = {
* raw: 'http://registry.npmjs.org/is-array/-/is-array-1.0.1.tgz',
* scope: null,
* name: null,
* rawSpec: 'http://registry.npmjs.org/is-array/-/is-array-1.0.1.tgz',
* spec: 'http://registry.npmjs.org/is-array/-/is-array-1.0.1.tgz',
* type: 'remote' }
* resolveTarball(pkg)
*/
export default function resolveTarball(spec: PackageSpec): Promise<ResolveResult>;