fix: get auto type-gen to work on turbo, by running type gen in a child process outside turbo/webpack (#6714)
Before on turbo: https://github.com/vercel/next.js/issues/66723
This commit is contained in:
@@ -32,7 +32,7 @@ export const createTestHooks = async (testSuiteName = '_community') => {
|
||||
tsConfig.compilerOptions.paths['@payload-config'] = [`./test/${testSuiteName}/config.ts`]
|
||||
await writeFile(tsConfigPath, stringify(tsConfig, null, 2) + '\n')
|
||||
|
||||
process.env.PAYLOAD_CONFIG_PATH = path.resolve(testSuiteName, 'config')
|
||||
process.env.PAYLOAD_CONFIG_PATH = path.resolve(dirname, testSuiteName, 'config.ts')
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user