Files
trezor-suite/packages/suite-build/utils/path.ts

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 '';
}
};