Skip to content

Commit bb5714f

Browse files
committed
fix: json import
1 parent e6226d3 commit bb5714f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/download.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { downloadNodeBinary, fetchLatestNodeVersion } from "./nodeDownloader.js";
2-
import platforms from "./platforms.json" assert { type: 'json' };
2+
import fs from 'fs';
3+
const platforms = JSON.parse(fs.readFileSync('./platforms.json', 'utf-8'));
4+
35

46
(async () => {
57
try {

0 commit comments

Comments
 (0)