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
Currently, if the source-dir directory is configured, both source-dir and dest directories are required to e
AF4E
xist for all operations.
However, "create" shouldn't care if "dest" exists or not, and "migrate" shouldn't care whether "source-dir" exists.
My use-case is that I write the migrations in TypeScript, and want to copy only the compiled files onto production (and sometimes that I want to "east create" from a fresh repo without having run "tsc"). I get around this by having a separate .eastrc on prod that doesn't specify a source-dir, but it would be nicer if I didn't have to.
I can't just always run npx east init because that fails to make directories recursively, and my migrations directory is "dist/db/migrations", and "dist" doesn't exist.
The text was updated successfully, but these errors were encountered:
Hi, not a regular use-case, for sure 😃
I would add -r|--recursive flag to the init command, could be implemented easily since fs.mkdir has recursive option.
Good point about updating requirements, I think it's still a good solution considering that nodejs v10 is going to reach its end of life in the foreseeable future. I'll try to implement it soon.
Currently, if the source-dir directory is configured, both source-dir and dest directories are required to e AF4E xist for all operations.
However, "create" shouldn't care if "dest" exists or not, and "migrate" shouldn't care whether "source-dir" exists.
My use-case is that I write the migrations in TypeScript, and want to copy only the compiled files onto production (and sometimes that I want to "east create" from a fresh repo without having run "tsc"). I get around this by having a separate
.eastrc
on prod that doesn't specify a source-dir, but it would be nicer if I didn't have to.I can't just always run
npx east init
because that fails to make directories recursively, and my migrations directory is "dist/db/migrations", and "dist" doesn't exist.The text was updated successfully, but these errors were encountered: