Skip to content

Commit

Permalink
Merge pull request #6163 from ShivamCoder23/esm/convert
Browse files Browse the repository at this point in the history
convert import statement to follow esm module
  • Loading branch information
sudhanshutech authored Jan 5, 2025
2 parents 0127ccc + 8d98338 commit 7ae5356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/build/features-to-json.js
Original file line number Diff line number Diff line change
@@ -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}`);

Expand Down

0 comments on commit 7ae5356

Please sign in to comment.