From a4853f173d6354ea0ebebbdf42feee3cbb39a7d4 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 17 Nov 2023 17:30:05 +0300 Subject: [PATCH] ci: add bun to test matrix, measure coverage, enable CC reporting --- .github/workflows/ci.yaml | 2 +- README.md | 1 + src/main/js/index.mjs | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 109c578..3593b54 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -87,7 +87,7 @@ jobs: - name: Deps run: | bun install - ln -s ../ ./node_modules/zx-extra +# ln -s ../ ./node_modules/zx-extra - name: Run tests timeout-minutes: 2 diff --git a/README.md b/README.md index b61fb74..7e33268 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ ## Requirements * Node.js >= 16.0.0 +* Bun >= 1.0.12 ## Install ```shell diff --git a/src/main/js/index.mjs b/src/main/js/index.mjs index f8d5bbc..ab70138 100644 --- a/src/main/js/index.mjs +++ b/src/main/js/index.mjs @@ -25,8 +25,11 @@ export const $ = new DeepProxy(_$, ({name, DEFAULT, target: t, trapName, args}) return DEFAULT } const env = t.env - t.env = {...t.env, PATH: npmRunPath({cwd: t.cwd})} try { + console.log('PATH0=', t.env.PATH) + const PATH = npmRunPath({cwd: t.cwd}) + console.log('PATH1=', PATH) + t.env = {...t.env, PATH} return t(...args) } finally { t.env = env