Skip to content

Commit 98564d4

Browse files
committed
Put gren run output under .gren dir
Fixes #316
1 parent e4e8ec2 commit 98564d4

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)