MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / findPnpmNodeModulesPath

Function findPnpmNodeModulesPath

packages/cli-v3/src/commands/dev.tsx:893–906  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

891}
892
893async function findPnpmNodeModulesPath(): Promise<string | undefined> {
894 return await findUp(
895 async (directory) => {
896 const pnpmModules = join(directory, "node_modules", ".pnpm", "node_modules");
897
898 const hasPnpmNodeModules = await pathExists(pnpmModules);
899
900 if (hasPnpmNodeModules) {
901 return pnpmModules;
902 }
903 },
904 { type: "directory" }
905 );
906}
907
908let hasResolvedEnvVars = false;
909let resolvedEnvVars: Record<string, string> = {};

Callers 1

Calls 1

pathExistsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…