mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-29 08:00:43 -04:00
9 lines
257 B
TypeScript
9 lines
257 B
TypeScript
export function getProjectPath(): string {
|
|
// eslint-disable-next-line turbo/no-undeclared-env-vars
|
|
return (process.env.INIT_CWD || process.cwd()) + '/';
|
|
}
|
|
|
|
export function getProjectName(): string {
|
|
return getProjectPath().split('/').slice(-2)[0];
|
|
}
|