From 64a295fe9021d11d6f5dd608ad319d765424ef2d Mon Sep 17 00:00:00 2001 From: Vladislav Sholokhov Date: Thu, 15 Jan 2026 11:56:51 +0200 Subject: [PATCH] WEB-76336 remove installNodeModules from performance tests GitOrigin-RevId: af872f824efeeeabe581479ad603000704c75e49 --- .../src/com/intellij/ide/starter/webstorm.kt | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/tools/intellij.tools.ide.starter/src/com/intellij/ide/starter/webstorm.kt b/tools/intellij.tools.ide.starter/src/com/intellij/ide/starter/webstorm.kt index 66c6e55d3a23..e9c4d7977c5c 100644 --- a/tools/intellij.tools.ide.starter/src/com/intellij/ide/starter/webstorm.kt +++ b/tools/intellij.tools.ide.starter/src/com/intellij/ide/starter/webstorm.kt @@ -55,28 +55,6 @@ fun downloadAndConfigureNodejs(version: String): Path { return nodePath } -fun installNodeModules(projectDir: Path, nodeVersion: String, packageManager: String, noFrozenLockFile: Boolean = false) { - if (projectDir.resolve("node_modules").exists()) { - logOutput("node_modules folder already exists") - return - } - - val stdout = ExecOutputRedirect.ToString() - val nodejsRoot = getNodePathByVersion(nodeVersion) - val packageManagerPath = getApplicationExecutablePath(nodejsRoot, packageManager) - val args = mutableListOf("$packageManagerPath", "install") - if (noFrozenLockFile) args += "--no-frozen-lockfile" - - ProcessExecutor(presentableName = "installing node modules", - projectDir, - timeout = 10.minutes, - args = args, - environmentVariables = getUpdateEnvVarsWithPrependedPath(nodejsRoot), - stdoutRedirect = stdout, - stderrRedirect = ExecOutputRedirect.ToStdOut("${packageManager} install") - ).start() -} - fun IDETestContext.setUseTypesFromServer(value: Boolean): IDETestContext = applyVMOptionsPatch { addSystemProperty("typescript.compiler.evaluation", value.toString()) }