mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-05 23:15:23 +01:00
17 lines
477 B
TypeScript
17 lines
477 B
TypeScript
import path from 'path';
|
|
|
|
export const getPathForProject = (project: 'web' | 'desktop' | 'desktop-ui') => {
|
|
const basePath = path.join(__dirname, '..', '..');
|
|
|
|
switch (project) {
|
|
case 'web':
|
|
return path.join(basePath, 'suite-web');
|
|
case 'desktop-ui':
|
|
return path.join(basePath, 'suite-desktop-ui');
|
|
case 'desktop':
|
|
return path.join(basePath, 'suite-desktop');
|
|
default:
|
|
return '';
|
|
}
|
|
};
|