mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-13 22:48:31 -05:00
18348940c4
* chore: rename folders * chore: add search tests * chore: remove old files * Update pnpm-workspace.yaml * chore: fix ui * Update e2e-ci.yml * chore: renovate deps * fix build * chore: add tests
18 lines
602 B
TypeScript
18 lines
602 B
TypeScript
import { join } from 'path';
|
|
|
|
import { exec } from '@verdaccio/test-cli-commons';
|
|
|
|
export function getCommand(projectFolder) {
|
|
return join(projectFolder, './.yarn/releases/yarn.js');
|
|
}
|
|
|
|
export function getYarnCommand() {
|
|
// FUTURE: yarn 4 rc still not available via registry
|
|
// tags: https://repo.yarnpkg.com/tags
|
|
// download binary: https://repo.yarnpkg.com/4.0.0-rc.14/packages/yarnpkg-cli/bin/yarn.js
|
|
return join(__dirname, './bin/yarn-4.0.0-rc.14.cjs');
|
|
}
|
|
|
|
export function yarn(projectFolder, ...args: string[]) {
|
|
return exec({ cwd: projectFolder }, getCommand(projectFolder), args);
|
|
}
|