(config: Config)
| 42 | * Returns absolute path to the client folder. This is hard-coded for now. |
| 43 | */ |
| 44 | export function clientFolderAbsolutePath(config: Config): string { |
| 45 | const client = getClientPlugin(config); |
| 46 | |
| 47 | if ('bundle' in client.config && client.config.bundle) { |
| 48 | // not proud of this one |
| 49 | const renamed: Map<string, string> | undefined = |
| 50 | // @ts-expect-error |
| 51 | config._FRAGILE_CLIENT_BUNDLE_RENAMED; |
| 52 | return path.resolve(config.output.path, 'client', `${renamed?.get('index') ?? 'index'}.ts`); |
| 53 | } |
| 54 | |
| 55 | return client.name; |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Recursively copies files and directories. |
no test coverage detected