Suggestion: make yarn
scripts available on server (build version)
#937
Labels
Importance: Nice to have
Issues that don't need to be included, just nice to have
Currently if you try to run the scripts such as
yarn migrate
oryarn backup
, the server complains about missingts-node
, which makes sense since the JS build doesn't need it. However it is possible to run them by writing a long-winded command into the build folder and running the actual .js file usingnode
.It would be good if this was a bit easier.
Suggestion: make a common "scripts" file for parsing these yarn commands -- if in development, run the script as it does currently. But in production, run a different version of the command that calls the compiled '.js' verison of the script.
I'm thinking this would be good for:
yarn migrate
yarn backup
yarn cleanup
(Pending, not indevelop
yet)It might also be good if we could run
yarn release
from the server, so we could run builds directly from the server, but that would require a bit more work.The text was updated successfully, but these errors were encountered: