diff --git a/.github/build/features-to-json.js b/.github/build/features-to-json.js index b4667d5979b9..edfec44344ef 100755 --- a/.github/build/features-to-json.js +++ b/.github/build/features-to-json.js @@ -1,7 +1,7 @@ #!/usr/bin/env node -const fs = require("fs").promises; // Use fs.promises -const csv = require("csvtojson"); +import { promises as fs } from "fs"; // Use fs.promises +import csv from "csvtojson"; const [major, minor, patch] = process.versions.node.split(".").map(Number); console.log(`Using Node.js version: ${major}.${minor}.${patch}`);