From e6226d366a0f72c7cacecb9184a6ba1a7004fddc Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 11 Mar 2025 16:41:27 +0000 Subject: [PATCH 1/2] chore(deps): update dependency node to v22 --- .github/workflows/script.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/script.yml b/.github/workflows/script.yml index 1839432..857a8fc 100644 --- a/.github/workflows/script.yml +++ b/.github/workflows/script.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: '20' # You can specify your Node.js version here + node-version: '22' # You can specify your Node.js version here - name: Install dependencies run: npm install From bb5714fb9c3e680ed511dda8ddcbbc602a7262fa Mon Sep 17 00:00:00 2001 From: Charly Abraham Date: Mon, 17 Mar 2025 17:24:43 +0530 Subject: [PATCH 2/2] fix: json import --- src/download.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/download.js b/src/download.js index 0a8a6bc..1e5f173 100644 --- a/src/download.js +++ b/src/download.js @@ -1,5 +1,7 @@ import { downloadNodeBinary, fetchLatestNodeVersion } from "./nodeDownloader.js"; -import platforms from "./platforms.json" assert { type: 'json' }; +import fs from 'fs'; +const platforms = JSON.parse(fs.readFileSync('./platforms.json', 'utf-8')); + (async () => { try {