Skip to content

Commit

Permalink
Merge pull request layer5io#6176 from ShivamCoder23/module/import
Browse files Browse the repository at this point in the history
revert to commonjs module
  • Loading branch information
sudhanshutech authored Jan 6, 2025
2 parents 0d227ef + 18ea701 commit 5c3a40b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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}`);

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/feature-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5c3a40b

Please sign in to comment.