Skip to content

Commit fdc34b4

Browse files
committed
make abs
1 parent cf2497b commit fdc34b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dev-packages/e2e-tests/lib/copyToTemp.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { readFileSync, writeFileSync } from 'fs';
22
import { cp } from 'fs/promises';
3-
import { join, relative, resolve } from 'path';
3+
import { join, resolve } from 'path';
44

55
export async function copyToTemp(originalPath: string, tmpDirPath: string): Promise<void> {
66
// copy files to tmp dir
@@ -18,15 +18,15 @@ function fixPackageJson(cwd: string): void {
1818

1919
// 1. Fix file dependencies
2020
if (packageJson.devDependencies?.['@sentry-internal/test-utils']) {
21-
const newPath = resolve(relative(cwd, join(__dirname, '../../test-utils')));
21+
const newPath = resolve(join(__dirname, '../../test-utils'));
2222
packageJson.devDependencies['@sentry-internal/test-utils'] = `link:${newPath}`;
2323
// eslint-disable-next-line no-console
2424
console.log(`Fixed devDependencies['@sentry-internal/test-utils'] to ${newPath}`);
2525
}
2626

2727
// 2. Fix volta extends
2828
if (packageJson.volta?.extends === '../../package.json') {
29-
const newPath = resolve(relative(cwd, join(__dirname, '../package.json')));
29+
const newPath = resolve(join(__dirname, '../package.json'));
3030
packageJson.volta.extends = newPath;
3131
// eslint-disable-next-line no-console
3232
console.log(`Fixed volta.extends to ${newPath}`);

0 commit comments

Comments
 (0)