Open sflanker opened 2 years ago
As a workaround the following can be used in .replit
:
[interpreter]
command = [ "prybar-nodejs", "-i", "-ps1", "\u001b[33m\uEEA7\u001b[00m ", "-c", "import('./index.js')"]
The straight command line looks like: prybar-nodejs -i -c "import('./index.js')"
Using that command in .replit loop-runs the code on errors, or on process.exit(), and you can't stop a script running easily
Is there a way to improve that command so it executes more smoothly ?
In Node.js 16+ it is possible to have a package entry point be an ECMA Script module. However when you try to run
prybar-nodejs -i index.js
with such a package it fails to load the specified file with the following error:If I change the filename to
index.mjs
I get the following: