MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getProjectRootPath

Function getProjectRootPath

packages/vite/helpers/project.ts:6–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4const require = createRequire(import.meta.url);
5
6export function getProjectRootPath(): string {
7 return process.cwd();
8}
9
10// Get current directory for ES modules (equivalent to __dirname)
11export const __dirname = import.meta.dirname;

Callers 13

main-entry.tsFile · 0.70
ts-config-paths.tsFile · 0.70
ensureGitignoreFunction · 0.70
ensureViteConfigFunction · 0.70
getDependencyPathFunction · 0.70
getProjectFilePathFunction · 0.70
base.tsFile · 0.50
solid.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected