-
Notifications
You must be signed in to change notification settings - Fork 180
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
Error while locating templates files in a monorepo structure #1232
Comments
I knew this will bite me 😣 /ping @aprendendofelipe Potentially you need to live with the workaround for now and wait until |
Can confirm this repros @ 7.7.0, and that the workaround still works |
Just for the sake of documentation, I'm experiencing this issue using |
|
@MrPiao @guivictorr @synicko @endor could you all tryout https://www.npmjs.com/package/node-pg-migrate/v/8.0.0-experimental-1328-1 and report any bugs to #1328? |
@Shinigami92 I will comment about monorepo in this issue to keep things organized 😅, I've created this repo to reproduce my problem and I wrote some instructions on the readme. |
@guivictorr perfect, thx |
Describe the bug
Structure of my projet
The server package contains the script to create migrations.
When I run
node-pg-migrate create -j ts
, the binary tries to load the templates files from the server node_modules folder and throws an error because the monorepo node_modules folder contains the packageI found a workaround by adding the option
--templateFileName ../../node_modules/node-pg-migrate/templates/migration-template.ts
to the command line but didn't have the problem in previous versions of node-pg-migrateSteps to reproduce
cd [path_to_monorepo]/packages/server
node-pg-migrate create -j ts [migration_name]
Logs
System Info
Used Module System
esm
The text was updated successfully, but these errors were encountered: