kokona
v8.1.0
Published
zx's fork version for TypeScript runtime
Downloads
3
Maintainers
Readme
kokona
This is a fork version of zx
, it used for TypeScript runtime.
Motivation
We often use tsx
to execute .ts
scripts instead of .js
scripts. however, zx
v8 bundles everything, and top-level await doesn't work in CJS module scripts. this package solves this issue.
Example
pnpm i -D kokona
// script.ts
import 'kokona/global'
const run = async () => {
await $`echo "Hello, World!"`
}
run()
pnpm tsx script.ts