Skip to content

Commit ac900cb

Browse files
authored
Merge pull request #338 from gren-lang/hide-gren-run-output
Put `gren run` output under `.gren` dir
2 parents 3fa3f6a + 98564d4 commit ac900cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Terminal/Run.gren

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ run config =
187187
let
188188
getOutline =
189189
config.path
190+
-- compiled to [project path]/.gren/filename
190191
|> Path.parentPath
192+
|> Maybe.andThen Path.parentPath
191193
|> Maybe.withDefault (Path.fromPosixString ".")
192194
|> getProjectOutline config.fsPermission
193195
in
@@ -260,7 +262,7 @@ getOutputPath projectOutline =
260262
{ outputType =
261263
outputType
262264
, outputPath =
263-
fileName
265+
".gren/" ++ fileName
264266
|> Path.fromPosixString
265267
|> Path.prepend projectOutline.projectPath
266268
}

0 commit comments

Comments
 (0)