8.0.2 • Published 1 year ago

kokona v8.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

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