You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed a few issues when I tried to setup and run this project.
Invalid default MIGRATION_PATH setting
When you run the start command (which sets the current working directory to ./api), I get this error:
[Error: ENOENT: no such file or directory, scandir '/Users/bartkozorog/Projects/flow-interaction-template-service/dist/migrations'] {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: '/Users/bartkozorog/Projects/flow-interaction-template-service/dist/migrations'
}
This seems to be caused by this setting: MIGRATION_PATH=../dist/migrations. This should probably be MIGRATION_PATH=./dist/migrations (without .. part) instead.
Invalid default TEMPLATE_DIR setting
The default glob pattern used (../templates) is also returning directories. These directory paths are then passed to fs.readFile, which doesn't seem to accept directories, given that it throws:
[Error: EISDIR: illegal operation on a directory, read] {
errno: -21,
code: 'EISDIR',
syscall: 'read'
}
I believe the default setting here should be TEMPLATE_DIR=../templates/**/*.json, which returns all JSON files in subdirectories.
Expected Behavior
Explained above.
Steps To Reproduce
Do a clean project setup (e.g. by cloning the repo and running npm i) and try running it.
Environment
- Node: v16.7.0
- npm: 7.20.3
What are you currently working on that this is blocking?
I'm playing around with this project a bit, to see if we can extend it to support use cases mentioned here: #18 (comment)
The text was updated successfully, but these errors were encountered:
Current Behavior
I've noticed a few issues when I tried to setup and run this project.
MIGRATION_PATH
settingWhen you run the start command (which sets the current working directory to
./api
), I get this error:This seems to be caused by this setting:
MIGRATION_PATH=../dist/migrations
. This should probably beMIGRATION_PATH=./dist/migrations
(without..
part) instead.TEMPLATE_DIR
settingThe default glob pattern used (
../templates
) is also returning directories. These directory paths are then passed tofs.readFile
, which doesn't seem to accept directories, given that it throws:I believe the default setting here should be
TEMPLATE_DIR=../templates/**/*.json
, which returns all JSON files in subdirectories.Expected Behavior
Explained above.
Steps To Reproduce
Do a clean project setup (e.g. by cloning the repo and running
npm i
) and try running it.Environment
What are you currently working on that this is blocking?
I'm playing around with this project a bit, to see if we can extend it to support use cases mentioned here: #18 (comment)
The text was updated successfully, but these errors were encountered: