diff --git a/.github/build/features-to-json.mjs b/.github/build/features-to-json.js similarity index 97% rename from .github/build/features-to-json.mjs rename to .github/build/features-to-json.js index edfec44344ef..bec519d50a15 100755 --- a/.github/build/features-to-json.mjs +++ b/.github/build/features-to-json.js @@ -1,7 +1,7 @@ #!/usr/bin/env node -import { promises as fs } from "fs"; // Use fs.promises -import csv from "csvtojson"; +const fs = require("fs").promises; +const csv = require("csvtojson"); const [major, minor, patch] = process.versions.node.split(".").map(Number); console.log(`Using Node.js version: ${major}.${minor}.${patch}`); diff --git a/.github/workflows/feature-list.yml b/.github/workflows/feature-list.yml index 63585b06c8bc..e392bfb6bc5d 100644 --- a/.github/workflows/feature-list.yml +++ b/.github/workflows/feature-list.yml @@ -36,7 +36,7 @@ jobs: ls -al # Process the CSV, filter data, and append to feature_data.json - node .github/build/features-to-json.mjs + node .github/build/features-to-json.js - name: Commit changes id: commit-changes diff --git a/Makefile b/Makefile index 2e2017ab27b3..3a5aa5fecf05 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ lint: ## Prepare a list of features for the pricing page. features: curl -L https://docs.google.com/spreadsheets/d/e/2PACX-1vQwzrUSKfuSRcpkp7sJTw1cSB63s4HCjYLJeGPWECsvqn222hjaaONQlN4X8auKvlaB0es3BqV5rQyz/pub\?gid\=1153419764\&single\=true\&output\=csv -o .github/build/spreadsheet.csv - node .github/build/features-to-json.mjs .github/build/spreadsheet.csv src/sections/Pricing/feature_data.json + node .github/build/features-to-json.js .github/build/spreadsheet.csv src/sections/Pricing/feature_data.json rm .github/build/spreadsheet.csv .PHONY: setup build site clean site-fast lint features