- Move from
@digitak/esrun
toesrun
.
- Fix
url
import that would conflict with user-defined url variables.
- Add
esuilbOptions
to theesrun
function.
- Strip shebangs
- Don't use crypto anymore (not compatible for old node versions), use timestamp instead
- Use crypto.getRandomUUID() and remove deprecated cuid dependency
- Generate source maps for better debugging
- Fix temporary file creation for windows and old node versions
- Add sudo mode
- Update esbuild version from
0.14
to0.17
- Use latest grubber version that fixes comments with backticks
- Fix Windows bug when running esrun from a npm script
- Re-add used dependency on cuid
- Fix a rare bug where esbuild would need a require function. Use
createRequire()
from node to emulate the require function - Remove unused dependency on cuid (is a dev dependency only)
- Fix a bug on temporary file mode if node_modules folder does not exist
- Fix usage with interactive CLI
- On windows, the default mode creates a temporary flie that is then executed
- Improve documentation for CLI parameters
- Add an error message when trying to use
--tsconfig
parameter with no value
- Fix file watching that would work only once on some OS
- CLI arguments are passed using the '=' instead of ':' (the colon still work for retro compatibility)
- You can now pass custom node's cli options by prefixing your option name with
--node-
. Example:--node-max-old-space-size=4096
- Fix an error with Windows when passing the code to node. Using stdin now instead of a cli argument. (thanks to @vendethiel for the fix)
- Remove error swallowing that could happen when the node process itself crashes
- Add a link to the changelog in the readme
- New strategy to detect external dependencies. Now check if paths are inside a parent
node_modules
directory instead of checking if the import start with ".", "/", ""n "@/" or "$". The previous strategy used to fail for typescript aliases that didn't start with "@/", "" or "$".
- Update EsBuild version to
0.14
- Fix
.mts
and.cjs
extensions - Better file watching. Do not use custom plugin anymore but EsBuild's metafile
- Remove unused dependency
anymatch
- Re-watching updated dependencies is cleaner and does not need a debounce anymore (though it is sill kept as it can be useful in some cases)
- Add
--tsconfig:path
cli option
- Add support for file constants
__dirname
and__filename
- Add a message when calling cli with no arguments
- Cli now catches esrun errors and log them instead of throwing
- Add
beforeRun
andafterRun
events
- Add
preserveConsole
option to prevent console clear on watch mode - Add CI/CD with version auto-bumping
- Make CLI options more extensible
- Starting this changelog 🎉