Skip to content

Commit e86a890

Browse files
authored
Merge pull request #339 from gren-lang/push-nnxuppqnulzr
Create src/ when init'ing a new project.
2 parents ac900cb + 6ae463d commit e86a890

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Terminal/Init.gren

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,11 @@ generateGrenJson config projectPath deps =
239239
in
240240
Path.append (Path.fromPosixString "gren.json") projectPath
241241
|> FileSystem.writeFile config.fsPermission (Bytes.fromString encodedOutline)
242+
|> Task.andThen
243+
(\_ ->
244+
Path.append (Path.fromPosixString "src") projectPath
245+
|> FileSystem.makeDirectory config.fsPermission { recursive = False }
246+
)
242247
|> Task.mapError FileSystemFailure
243248
|> Task.map (\_ -> newOutline)
244249
)

0 commit comments

Comments
 (0)