-
Notifications
You must be signed in to change notification settings - Fork 15
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
Adjust example API usage #37
Comments
I don't understand what is being asked here. The paths used in the API example are just that: examples. Any relative paths you provide to any API will be relative to the CWD. |
So, some of this is probably because I was adjusting scripts from the shell command to using the node API, where the paths are handled differently, so I was not in the mindset that they were strictly relative paths. But also in terms of general use case I think it's more likely that the CWD is the module's folder and the examples should reflect that. |
Only if you're using the
Yes, that's probably true. |
The example API usage for some reason assumes the current working directory is the user's Modules folder, rather than the module folder itself; this contrasts with the shell commands, as those are configured to know the user's Data folder and which subfolder to check in.
So instead of
await compilePack("mymodule/packs/src/actors", "mymodule/packs/actors");
the example usage should either mimic a full path or goawait compilePack("packs/src/actors", "packs/actors");
The text was updated successfully, but these errors were encountered: