diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e11e7488..68deeb30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,8 @@ jobs: if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == 20 }} - run: pnpm build - run: pnpm vitest run --coverage + - run: pnpm test:register + if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == 20 }} - run: pnpm test:bun --coverage if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == 20 }} - name: nightly release diff --git a/README.md b/README.md index 519b14c7..a118be24 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ const jiti = createJiti(import.meta.url, { debug: true }); You can globally register jiti using [global hooks](https://nodejs.org/api/module.html#initialize). -**Note:** This is an experimental approach and is not recommended unless you have to, please prefer explicit method. +**Note:** This is an experimental approach and only tested to work on Node.js > 20. I don't recommend it and unless you have to, please prefer explicit method. ```js import "jiti/register";