How to use @yarnpkg/shell - 2 common examples

To help you get started, we’ve selected a few @yarnpkg/shell examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yarnpkg / berry / packages / yarnpkg-core / sources / scriptUtils.ts View on Github external
export async function executePackageShellcode(locator: Locator, command: string, args: Array, {cwd, project, stdin, stdout, stderr}: ExecutePackageScriptOptions) {
  const {binFolder, env, cwd: realCwd} = await initializePackageEnvironment(locator, {project, cwd});

  try {
    return await execute(command, args, {cwd: realCwd, env, stdin, stdout, stderr});
  } finally {
    await xfs.removePromise(binFolder);
  }
}
github yarnpkg / berry / packages / yarnpkg-core / sources / scriptUtils.ts View on Github external
const realExecutor = async () => {
    return await execute(script, args, {cwd: realCwd, env, stdin, stdout, stderr});
  };

@yarnpkg/shell

BSD-2-Clause
Latest version published 15 days ago

Package Health Score

92 / 100
Full package analysis

Popular @yarnpkg/shell functions

Similar packages