Skip to content

Commit d22f746

Browse files
committed
Update index.ts
1 parent 8ff656e commit d22f746

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/cli/src/bin/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/usr/bin/env node
2-
import { resolve } from 'node:path';
2+
import { relative, resolve } from 'node:path';
33
import { fileURLToPath } from 'node:url';
44
import { parseArgs } from 'node:util';
5-
import path from 'path';
65
import * as process from 'process';
76
import { $ } from 'execa';
87

@@ -125,7 +124,7 @@ switch (command) {
125124
}
126125

127126
case 'patch-compat-table': {
128-
const patchesPath = path.relative(process.cwd(), fileURLToPath(new URL('../../patches', import.meta.url)));
127+
const patchesPath = relative(process.cwd(), fileURLToPath(new URL('../../patches', import.meta.url)));
129128

130129
try {
131130
await $`patch-package --patch-dir ${patchesPath}`;

0 commit comments

Comments
 (0)