Skip to content

[v13] Compilier does not create artifactDirectory if does not exist #3727

Closed
@erictaylor

Description

@erictaylor

Testing the new compiler in v13 we have noticed that usage of artifactDirectory does not work the same as v12. If specified artifact directory does not exist, no directory is created the following error is thrown:

 - The `artifactDirectory` does not exist at `./src/__generated__`.

I'm curious if this is intended behavior or not.

In our project we do not check-in the generated files for Relay into our repo, but opt to rebuild them during build time. So since our artifact directory is git ignored this new behavior breaks our CI usage.

This wouldn't be a problem if I could use a .gitkeep in our artifact directory, but the compiler removes non generated files from the directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions