File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
packages/cli/src/commands Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @trigger.dev/cli " : patch
3
+ ---
4
+
5
+ fixed the cli init log message to show the correct path to the app route created
Original file line number Diff line number Diff line change @@ -527,7 +527,11 @@ export * from "./examples"
527
527
528
528
await fs . writeFile ( pathModule . join ( directories , routeFileName ) , routeContent ) ;
529
529
530
- logger . success ( `✅ Created app route at ${ usesSrcDir ? "src/" : "" } app/api/trigger.ts` ) ;
530
+ logger . success (
531
+ `✅ Created app route at ${ usesSrcDir ? "src/" : "" } app/api/${ removeFileExtension (
532
+ triggerFileName
533
+ ) } /${ routeFileName } `
534
+ ) ;
531
535
532
536
const triggerFileExists = await pathExists ( pathModule . join ( path , triggerFileName ) ) ;
533
537
@@ -735,3 +739,7 @@ async function setupEnvironmentVariable(
735
739
logger . success ( `✅ Added ${ variableName } =${ renderer ( value ) } to ${ fileName } ` ) ;
736
740
}
737
741
}
742
+
743
+ function removeFileExtension ( filename : string ) {
744
+ return filename . replace ( / \. [ ^ . ] + $ / , "" ) ;
745
+ }
You can’t perform that action at this time.
0 commit comments