github google/zx 7.1.0

latest releases: 8.1.3, 8.1.2, 8.1.1...
21 months ago

Autoinstall

This release introduces a new flag --install which will parse and install all required or imported packages automatically.

import sh from 'tinysh'
sh.say('Hello, world!')

And running zx --install script.mjs will trigger installation of tinysh package! It even possible to specify a needed version in comment with @ symbol:

import sh from 'tinysh' // @^1.0.0

PowerShell

Another big change is for Windows. Now, the default shell on Windows is powershell.exe.

This should fix a lot of issues with "dollar" signs.

Fixes

  • Minimist now correctly parses argv when using zx cli.

Don't miss a new zx release

NewReleases is sending notifications on new releases.