Skip to content

Commit e9a0a51

Browse files
committed
Ignore output directory in build copy
1 parent d77a2a2 commit e9a0a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func buildClient(gameName, output, url string, typescript bool, runtime string)
9595
} else if runtime == "browser" {
9696
err = cp.Copy(".", output, cp.Options{
9797
Skip: func(src string) (bool, error) {
98-
return src == "build" || (src != "node_modules" && strings.HasPrefix(src, "node_modules") && !strings.Contains(src, "@code-game-project")) || src == ".codegame.json" || src == "package.json" || src == "package-lock.json", nil
98+
return src == filepath.Clean(output) || (src != "node_modules" && strings.HasPrefix(src, "node_modules") && !strings.Contains(src, "@code-game-project")) || src == ".codegame.json" || src == "package.json" || src == "package-lock.json", nil
9999
},
100100
})
101101
if err != nil {

0 commit comments

Comments
 (0)