( dir: string, forgeConfig: string | ForgeConfig, )
| 127 | } |
| 128 | |
| 129 | export async function forgeConfigIsValidFilePath( |
| 130 | dir: string, |
| 131 | forgeConfig: string | ForgeConfig, |
| 132 | ): Promise<boolean> { |
| 133 | return ( |
| 134 | typeof forgeConfig === 'string' && |
| 135 | ((await fs.pathExists(path.resolve(dir, forgeConfig))) || |
| 136 | fs.pathExists(path.resolve(dir, `${forgeConfig}.js`))) |
| 137 | ); |
| 138 | } |
| 139 | |
| 140 | const eta = new Eta({ useWith: true, autoEscape: false, autoTrim: false }); |
| 141 |
no outgoing calls
no test coverage detected