mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-29 04:21:39 -04:00
BREAKING CHANGE: The `installPkgDeps` API function is now called `install`. The old `install` is renamed to `installPkgs`. Unlike the old `install`, `installPkgs` does nothing, if the `pkgs` array contains no elements.
15 lines
660 B
TypeScript
15 lines
660 B
TypeScript
import test = require('tape')
|
|
import * as pnpm from '../src'
|
|
|
|
test('API', t => {
|
|
t.equal(typeof pnpm.install, 'function', 'exports install()')
|
|
t.equal(typeof pnpm.installPkgs, 'function', 'exports installPkgs()')
|
|
t.equal(typeof pnpm.uninstall, 'function', 'exports uninstall()')
|
|
t.equal(typeof pnpm.linkFromGlobal, 'function', 'exports linkFromGlobal()')
|
|
t.equal(typeof pnpm.linkFromRelative, 'function', 'exports linkFromRelative()')
|
|
t.equal(typeof pnpm.linkToGlobal, 'function', 'exports linkToGlobal()')
|
|
t.equal(typeof pnpm.prune, 'function', 'exports prune()')
|
|
t.equal(typeof pnpm.prunePkgs, 'function', 'exports prunePkgs()')
|
|
t.end()
|
|
})
|