We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b28d725 commit 1df4002Copy full SHA for 1df4002
1 file changed
packages/nx-payload/src/executors/payload-build/payload-build.ts
@@ -12,11 +12,15 @@ export async function payloadBuildExecutor(
12
) {
13
const normalizedOptions = normalizeOptions(options, context);
14
15
+ // Since build target depends on this target, we must start with a clean output
16
+ const preCleanup = normalizedOptions.outputPath
17
+ ? [`rimraf ${normalizedOptions.outputPath} || true`]
18
+ : [];
19
+
20
const output = await runCommandsImpl(
21
{
22
commands: [
- // Since build target depends on this target, we must start with a clean output
- `rimraf ${normalizedOptions.outputPath} || true`,
23
+ ...preCleanup,
24
'npx payload build',
25
'npx payload generate:types',
26
'npx payload generate:graphQLSchema'
0 commit comments