mirror of
https://github.com/nvms/esr.git
synced 2025-12-15 14:30:53 +00:00
pre-copilot
This commit is contained in:
parent
d35e137872
commit
4041957a01
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
.aider*
|
||||
.env
|
||||
1
NextChange.md
Normal file
1
NextChange.md
Normal file
@ -0,0 +1 @@
|
||||
Fix --run with --watch - it does not watch correctly, and instead just exits.
|
||||
BIN
data/mcp-thought-server.sqlite
Normal file
BIN
data/mcp-thought-server.sqlite
Normal file
Binary file not shown.
@ -57,6 +57,13 @@ func (b *Builder) Build(buildOptions *api.BuildOptions) error {
|
||||
b.BuiltCSS = append(b.BuiltCSS, file.Path)
|
||||
}
|
||||
} else {
|
||||
dir := filepath.Dir(file.Path)
|
||||
if _, err := os.Stat(dir); os.IsNotExist(err) {
|
||||
if err := os.MkdirAll(dir, os.ModePerm); err != nil {
|
||||
return fmt.Errorf("esr :: failed to create directory: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
if err := os.WriteFile(file.Path, file.Contents, os.ModePerm); err != nil {
|
||||
return fmt.Errorf("esr :: failed to write file: %v", err)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user