I already do it, but not in TS. There is a scripting language that is as available in most/all (non-Windows) systems as Bash: Python.
Edit: zero-dependency Python.
Edit: zero-dependency Python.
Stopped using python for scripting for this reason
life() {
python3 << EOF
print(42)
EOF
}I've started using Python for many more tasks after I discovered this feature. I'm primarily a JS/TS developer, but the ability to write a "standalone" script that can pull in third-party dependencies without affecting your current project is a massive productivity boost.
That convenience you think boosts productivity is a short term thing, using comments for dependency management is an anti pattern imo