i was loading a JSON file using a relative path -- i though it would be relative from the JS file, but instead it is relative from the user's CWD. in my case these are the same directory, so it worked by accident.
i've changed it to use the correct way to load a JSON file: require.
i was loading a JSON file using a relative path -- i though it would be relative from the JS file, but instead it is relative from the user's CWD. in my case these are the same directory, so it worked by accident.
i've changed it to use the correct way to load a JSON file:
require
.