(cwd: string)
| 11 | |
| 12 | // TODO: this cannot be changed for now, circular dependency with getSystemPaths, getEsbuildConfig |
| 13 | export async function importBuiltKeystoneConfiguration (cwd: string) { |
| 14 | const builtConfigPath = getBuiltKeystoneConfigurationPath(cwd) |
| 15 | if (!(await fs.stat(builtConfigPath).catch(() => null))) { |
| 16 | console.error('🚨 keystone build has not been run') |
| 17 | throw new ExitError(1) |
| 18 | } |
| 19 | return require(builtConfigPath).default |
| 20 | } |
no test coverage detected