Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhouzi opened this issue May 22, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@zhouzi
Copy link
Owner

zhouzi commented May 22, 2022

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.

@zhouzi zhouzi added the bug Something isn't working label May 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant