MCPcopy Create free account
hub / github.com/keystonejs/keystone / importBuiltKeystoneConfiguration

Function importBuiltKeystoneConfiguration

packages/core/src/scripts/utils.ts:13–20  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

11
12// TODO: this cannot be changed for now, circular dependency with getSystemPaths, getEsbuildConfig
13export 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}

Callers 7

startFunction · 0.90
prismaFunction · 0.90
initKeystoneFunction · 0.90
devFunction · 0.90
buildFunction · 0.90
migrateCreateFunction · 0.90
migrateApplyFunction · 0.90

Calls 1

Tested by

no test coverage detected