From de2829bf7a5ef100d668ca5004872780f812e301 Mon Sep 17 00:00:00 2001 From: Yudai NAKATA Date: Wed, 3 Apr 2024 23:01:45 +0900 Subject: [PATCH] test: use `import` option and run test on Node 20 --- .github/workflows/test.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8626e2a..22b368a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: - name: Set up Node.js 18 uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 cache: "npm" - name: Install dependencies run: npm ci diff --git a/package.json b/package.json index 16a0ab2..4230dea 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "build": "tsc --build tsconfig.build.json", "format": "biome format . --write", "lint": "biome check .", - "test": "node --loader=tsx/esm src/jsx-runtime.test.tsx", + "test": "node --import=tsx/esm src/jsx-runtime.test.tsx", "prebuild": "node --eval 'fs.rmSync(`dist`, { recursive: true, force: true })'", "prepack": "npm run build -- --force" },