0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-13 22:48:31 -05:00
verdaccio/test/cli/e2e-npm6/utils.ts
Juan Picado 1755840cd3
e2e cli npm 6 (#3282)
* chore: add config utility

* improve verdaccio bin location

* add new npm cli e2e tests

* add tests

* rename files
2022-08-02 22:45:16 +02:00

12 lines
298 B
TypeScript

import { join } from 'path';
import { exec } from '@verdaccio/test-cli-commons';
export function getCommand() {
return join(__dirname, './node_modules/.bin/npm');
}
export function npm(...args: string[]) {
console.log('-getCommand()', getCommand());
return exec({}, getCommand(), args);
}