Skip to content

schemaFactoriesPath should not resolve to local path when it starts with a tilde #53

@zhouzi

Description

@zhouzi

Currently schemaFactoriesPath automatically adds ./ at its start when it doesn't start with a .. It makes it impossible to reference a node module. near-operation-file-preset makes it possible to do so by prepending a tilde:

If you wish to use an NPM package or a local workspace package, make sure to prefix the package name with ~.

It should also work with factories that are not generated in the same directory as the schema factories. So if the path starts with a ~, that character should be removed and not resolved locally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions