Skip to content

Commit a50063c

Browse files
committed
Always insert the dirs option when initializing a new project in the trigger.config.ts
1 parent 8c690a9 commit a50063c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/strange-cobras-bake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Always insert the dirs option when initializing a new project in the trigger.config.ts

packages/cli-v3/src/commands/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ async function writeConfigFile(
489489
projectRef: project.externalRef,
490490
triggerDirectoriesOption: triggerDir.isCustomValue
491491
? `\n dirs: ["${triggerDir.location}"],`
492-
: "",
492+
: `\n dirs: ["/src/trigger"],`,
493493
},
494494
outputPath,
495495
override: options.overrideConfig,

0 commit comments

Comments
 (0)