[BUG] File Reading Method in the Example script is not appropriate #251
Labels
area/javascript
Specify what technical area given issue relates to. Its goal is to ease filtering good first issues.
bug
Something isn't working
good first issue
Good for newcomers
released
Describe the bug.
The example script uses relative paths (./examples/input.yaml and ./examples/output.yaml) to handle file reading and writing operations, it will fail if executed from different directories.
Expected behavior
The script should manage file paths using the __dirname variable to ensure consistent behaviour irrespective of the current execution directory. This will ensure correct file referencing at all times.
Screenshots
How to Reproduce
npm run dev
cd examples
thennode index.js
🥦 Browser
Other
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
No, someone else can work on it
The text was updated successfully, but these errors were encountered: