First PR to implement application tokens - add new application role in twenty-server - move duplicated constants and types to twenty-shared - will add role configuration utils into twenty-sdk in another PR
9 lines
284 B
TypeScript
9 lines
284 B
TypeScript
import { join } from 'path';
|
|
import { CURRENT_EXECUTION_DIRECTORY } from '@/cli/constants/current-execution-directory';
|
|
|
|
export const formatPath = (appPath?: string) => {
|
|
return appPath && !appPath?.startsWith('/')
|
|
? join(CURRENT_EXECUTION_DIRECTORY, appPath)
|
|
: appPath;
|
|
};
|