Skip to content

Commit

Permalink
convert to import statement to follow esm module
Browse files Browse the repository at this point in the history
Signed-off-by: Shivam Gupta <[email protected]>
  • Loading branch information
ShivamCoder23 committed Jan 5, 2025
1 parent bf9d054 commit 146562f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 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
16 changes: 7 additions & 9 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
* See: https://www.gatsbyjs.org/docs/node-apis/
*/

const path = require("path");
const slugify = require("./src/utils/slugify");
const { paginate } = require("gatsby-awesome-pagination");
const { createFilePath } = require("gatsby-source-filesystem");
const FilterWarningsPlugin = require("webpack-filter-warnings-plugin");
const config = require("./gatsby-config");
const {
componentsData,
} = require("./src/sections/Projects/Sistent/components/content");
import path from "path";
import slugify from "./src/utils/slugify.js";
import { paginate } from "gatsby-awesome-pagination";
import { createFilePath } from "gatsby-source-filesystem";
import FilterWarningsPlugin from "webpack-filter-warnings-plugin";
import config from "./gatsby-config.js";
import { componentsData } from "./src/sections/Projects/Sistent/components/content.js";

if (process.env.CI === "true") {
// All process.env.CI conditionals in this file are in place for GitHub Pages, if webhost changes in the future, code may need to be modified or removed.
Expand Down

0 comments on commit 146562f

Please sign in to comment.