From 11bda688ea46df67d79189df5df4438c930aa9fe Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Sat, 22 Nov 2025 11:37:20 -0500 Subject: [PATCH] Test against our supported node versions --- .github/workflows/ci.yml | 6 +++++- files/_js_babel.config.mjs | 4 +++- files/_ts_babel.config.mjs | 4 +++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a650b64c..923d604a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,13 +30,17 @@ jobs: os: - ubuntu-latest - windows-latest + node: + - 20 + - 22 + - 24 steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: ${{ matrix.node }} cache: pnpm - name: Set TEMP to D:/Temp on windows if: ${{matrix.os}} == windows-latest diff --git a/files/_js_babel.config.mjs b/files/_js_babel.config.mjs index 384ce96f..9809140a 100644 --- a/files/_js_babel.config.mjs +++ b/files/_js_babel.config.mjs @@ -1,3 +1,5 @@ +import { dirname } from 'node:path'; +import { fileURLToPath } from 'node:url'; import { babelCompatSupport, templateCompatSupport, @@ -28,7 +30,7 @@ export default { [ '@babel/plugin-transform-runtime', { - absoluteRuntime: import.meta.dirname, + absoluteRuntime: dirname(fileURLToPath(import.meta.url)), useESModules: true, regenerator: false, }, diff --git a/files/_ts_babel.config.mjs b/files/_ts_babel.config.mjs index a2abf221..6f5fd0ff 100644 --- a/files/_ts_babel.config.mjs +++ b/files/_ts_babel.config.mjs @@ -1,3 +1,5 @@ +import { dirname } from 'node:path'; +import { fileURLToPath } from 'node:url'; import { babelCompatSupport, templateCompatSupport, @@ -36,7 +38,7 @@ export default { [ '@babel/plugin-transform-runtime', { - absoluteRuntime: import.meta.dirname, + absoluteRuntime: dirname(fileURLToPath(import.meta.url)), useESModules: true, regenerator: false, },