Skip to content

Commit a59ef42

Browse files
committed
test(e2e): avoid extra oxlint install probe
1 parent 72030a0 commit a59ef42

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

ecosystem-ci/verify-install.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { execFileSync } from 'node:child_process';
21
import { readFileSync } from 'node:fs';
3-
import { mkdirSync, writeFileSync } from 'node:fs';
42
import { createRequire } from 'node:module';
53
import path from 'node:path';
64

@@ -53,30 +51,8 @@ try {
5351
process.exit(1);
5452
}
5553

56-
const oxlintBin = path.join(path.dirname(oxlintPkgPath), 'bin', 'oxlint');
57-
const probeDir = path.join(process.cwd(), '.vite-plus-local-oxlint-probe');
58-
mkdirSync(probeDir, { recursive: true });
59-
60-
const configPath = path.join(probeDir, 'vite.config.ts');
61-
const inputPath = path.join(probeDir, 'index.ts');
62-
writeFileSync(
63-
configPath,
64-
"import { defineConfig } from 'vite-plus';\n\nexport default defineConfig({ lint: {} });\n",
65-
);
66-
writeFileSync(inputPath, 'export const value = 1;\n');
67-
68-
execFileSync(process.execPath, [oxlintBin, '-c', configPath, inputPath], {
69-
cwd: probeDir,
70-
stdio: 'inherit',
71-
env: {
72-
...process.env,
73-
VP_VERSION: cliPkg.version,
74-
},
75-
});
76-
7754
console.log(`ok vite-plus@${pkg.version} (${vitePlusSpec ?? 'unknown spec'})`);
7855
console.log(`ok oxlint@${oxlintPkg.version} from vite-plus dependency tree`);
79-
console.log('ok oxlint loaded Vite+ config through local vite-plus');
8056
} catch (error) {
8157
console.error('x vite-plus: not installed or incomplete');
8258
if (error instanceof Error) {

0 commit comments

Comments
 (0)