Always insert the dirs option when initializing a new project in the trigger.config.ts

This commit is contained in:
Eric Allam
2024-09-12 13:28:43 +01:00
parent 8c690a960c
commit a50063ce04
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"trigger.dev": patch
---
Always insert the dirs option when initializing a new project in the trigger.config.ts
+1 -1
View File
@@ -489,7 +489,7 @@ async function writeConfigFile(
projectRef: project.externalRef,
triggerDirectoriesOption: triggerDir.isCustomValue
? `\n dirs: ["${triggerDir.location}"],`
: "",
: `\n dirs: ["/src/trigger"],`,
},
outputPath,
override: options.overrideConfig,