We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c26ad9 + eeb3c76 commit af98a81Copy full SHA for af98a81
2 files changed
.dagger/backend/main.go
@@ -3,6 +3,7 @@ package main
3
import (
4
"context"
5
"runtime"
6
+ "strings"
7
8
"backend/internal/dagger"
9
)
@@ -125,6 +126,10 @@ func (b *Backend) FormatFile(
125
126
// File path to format
127
path string,
128
) *dagger.Directory {
129
+ // Only format go files
130
+ if !strings.HasSuffix(path, ".go") {
131
+ return source
132
+ }
133
return dag.
134
Container().
135
From("golang:1.24").
.dagger/frontend/src/index.ts
@@ -91,6 +91,12 @@ export class Frontend {
91
92
@func()
93
formatFile(source: Directory, path: string): Directory {
94
+ if (
95
+ !(path.endsWith(".ts") || path.endsWith(".html") || path.endsWith(".js"))
96
+ ) {
97
+ return source;
98
99
+
100
return dag
101
.container()
102
.from("node:23")
0 commit comments