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 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 {