Skip to content

Commit c13d3ae

Browse files
committed
remove some code
1 parent b53e239 commit c13d3ae

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

test/prepare.mjs

+4-7
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ const __dirname = dirname(fileURLToPath(import.meta.url)); // https://stackoverf
77

88
function patchTsModules() {
99
const rootDir = __dirname;
10+
const moduleName = "typescript";
1011

11-
/** @param {string} moduleName */
12-
function patchTypescript(moduleName, tspatch) {
13-
const basedir = resolve(rootDir, "node_modules", moduleName);
14-
tspatch(["tsc.js", "typescript.js"], { basedir, dir: basedir });
15-
}
16-
17-
patchTypescript("typescript", patch);
12+
const basedir = resolve(rootDir, "node_modules", moduleName);
13+
// @ts-expect-error -- TODO fix later
14+
patch(["tsc.js", "typescript.js"], { basedir, dir: basedir });
1815
}
1916

2017
patchTsModules();

0 commit comments

Comments
 (0)