Replies: 2 comments
-
I'm digging around trying to find a solution for this as well. Coming from the rails community, it's really nice to have a script runner like rake to do admin tasks on my project while taking advantage of all the existing code (and polyfills) Remix provides |
Beta Was this translation helpful? Give feedback.
0 replies
-
For anyone stumbling across this, a work around is to use esbuild-register and the For example import { installGlobals } from '@remix-run/node';
installGlobals();
async function main() {
console.log('do stuff');
}
main() And you run the script by running $ node -r esbuild-register path/to/script.ts |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While there might be a way to pull it off today, having a fully supported way to execute command line scripts is extremely helpful when deploying production apps. This lets you bundle in things like basic administration or other capabilities that might equate to a root-level access.
For example a common use case could be a script which creates a new user, or creates a user as an administrator.
Beta Was this translation helpful? Give feedback.
All reactions