MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / copyToTemp

Function copyToTemp

dev-packages/e2e-tests/lib/copyToTemp.ts:6–11  ·  view source on GitHub ↗
(originalPath: string, tmpDirPath: string)

Source from the content-addressed store, hash-verified

4import { isAbsolute, join, resolve } from 'path';
5
6export async function copyToTemp(originalPath: string, tmpDirPath: string): Promise<void> {
7 // copy files to tmp dir
8 await cp(originalPath, tmpDirPath, { recursive: true });
9
10 fixPackageJson(tmpDirPath);
11}
12
13function fixPackageJson(cwd: string): void {
14 const packageJsonPath = join(cwd, 'package.json');

Callers 2

runFunction · 0.90
runFunction · 0.90

Calls 1

fixPackageJsonFunction · 0.85

Tested by

no test coverage detected