Error while locating templates files in a monorepo structure #1232
Labels
c: bug
Something isn't working
has workaround
Workaround provided or linked
help wanted
Extra attention is needed
p: 1-normal
Nothing urgent
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: