MCPcopy Create free account
hub / github.com/MetaMask/rpc-errors / getWorkspacePath

Function getWorkspacePath

yarn.config.cjs:39–41  ·  view source on GitHub ↗

* Get the absolute path to a file within the workspace. * * @param {Workspace} workspace - The workspace. * @param {string} path - The path to the file, relative to the workspace root. * @returns {string} The absolute path to the file.

(workspace, path)

Source from the content-addressed store, hash-verified

37 * @returns {string} The absolute path to the file.
38 */
39function getWorkspacePath(workspace, path) {
40 return resolve(__dirname, workspace.cwd, path);
41}
42
43/**
44 * Get the contents of a file within the workspace. The file is expected to be

Callers 1

getWorkspaceFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…