From bd624c2939cc6386bd76ae265c176482076eed3e Mon Sep 17 00:00:00 2001 From: JounQin Date: Sun, 10 Dec 2023 01:43:16 +0800 Subject: [PATCH] ci: stick on Node v18.18 and v20.9 related https://github.com/privatenumber/tsx/issues/354 --- .github/workflows/ci.yml | 3 ++- .nvmrc | 2 +- package.json | 2 +- scripts/languages.ts | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da056f74..446de2cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,8 @@ jobs: matrix: node: - 16 - - 18 + - 18.18 + - 20.9 os: - macos-latest - ubuntu-latest diff --git a/.nvmrc b/.nvmrc index b009dfb9..4a58985b 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -lts/* +18.18 diff --git a/package.json b/package.json index d920da14..76c27626 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "workspaces": [ "packages/*" ], - "packageManager": "pnpm@8.10.2", + "packageManager": "pnpm@8.11.0", "scripts": { "build": "run-p build:*", "build:r": "r -f cjs", diff --git a/scripts/languages.ts b/scripts/languages.ts index ac56dfac..1911d69d 100644 --- a/scripts/languages.ts +++ b/scripts/languages.ts @@ -1,7 +1,7 @@ import fs from 'node:fs' import LinguistLanguages from 'linguist-languages' -import { SupportLanguage } from 'prettier' +import type { SupportLanguage } from 'prettier' const EXTRA_SH_LANGUAGES: SupportLanguage[] = [ {