Remove fs-extra dependency in favor of native node:fs

This commit is contained in:
Mike Cao
2026-03-29 23:12:34 -04:00
parent 224bbbb8de
commit c4e52e7dcd
5 changed files with 962 additions and 995 deletions
+13 -14
View File
@@ -51,17 +51,17 @@
".next/cache"
],
"dependencies": {
"@clickhouse/client": "^1.17.0",
"@clickhouse/client": "^1.18.2",
"@date-fns/utc": "^1.2.0",
"@dicebear/collection": "^9.3.1",
"@dicebear/core": "^9.3.1",
"@dicebear/collection": "^9.4.2",
"@dicebear/core": "^9.4.2",
"@hello-pangea/dnd": "^17.0.0",
"@prisma/adapter-pg": "^7.3.0",
"@prisma/client": "^7.3.0",
"@prisma/adapter-pg": "^7.6.0",
"@prisma/client": "^7.6.0",
"@prisma/extension-read-replicas": "^0.5.0",
"@react-spring/web": "^10.0.3",
"@svgr/cli": "^8.1.0",
"@tanstack/react-query": "^5.90.21",
"@tanstack/react-query": "^5.95.2",
"@umami/react-zen": "^0.245.0",
"bcryptjs": "^3.0.2",
"chalk": "^5.6.2",
@@ -77,26 +77,25 @@
"del": "^6.0.0",
"detect-browser": "^5.2.0",
"dotenv": "^17.3.1",
"esbuild": "^0.25.11",
"fs-extra": "^11.3.3",
"immer": "^10.2.0",
"esbuild": "^0.27.4",
"immer": "^11.1.4",
"ipaddr.js": "^2.3.0",
"is-ci": "^3.0.1",
"is-docker": "^3.0.0",
"is-localhost-ip": "^2.0.0",
"isbot": "^5.1.35",
"isbot": "^5.1.36",
"jsonwebtoken": "^9.0.3",
"jszip": "^3.10.1",
"kafkajs": "^2.1.0",
"lucide-react": "^0.543.0",
"lucide-react": "^1.7.0",
"maxmind": "^5.0.5",
"next": "^16.1.6",
"next": "^16.2.1",
"next-intl": "^4.8.3",
"node-fetch": "^3.2.8",
"npm-run-all": "^4.1.5",
"papaparse": "^5.5.3",
"pg": "^8.18.0",
"prisma": "^7.3.0",
"pg": "^8.20.0",
"prisma": "^7.6.0",
"pure-rand": "^7.0.1",
"react": "^19.2.4",
"react-dom": "^19.2.4",
+945 -976
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -3,7 +3,7 @@
import https from 'node:https';
import path from 'node:path';
import chalk from 'chalk';
import fs from 'fs-extra';
import fs from 'node:fs';
const src = path.resolve(process.cwd(), 'public/intl/messages');
const dest = path.resolve(process.cwd(), 'public/intl/country');
@@ -43,7 +43,7 @@ const downloadFile = (url, filepath) =>
});
const download = async files => {
await fs.ensureDir(dest);
fs.mkdirSync(dest, { recursive: true });
await asyncForEach(files, async file => {
const locale = file.replace('-', '_').replace('.json', '');
+2 -2
View File
@@ -3,7 +3,7 @@
import https from 'node:https';
import path from 'node:path';
import chalk from 'chalk';
import fs from 'fs-extra';
import fs from 'node:fs';
const src = path.resolve(process.cwd(), 'public/intl/messages');
const dest = path.resolve(process.cwd(), 'public/intl/language');
@@ -43,7 +43,7 @@ const downloadFile = (url, filepath) =>
});
const download = async files => {
await fs.ensureDir(dest);
fs.mkdirSync(dest, { recursive: true });
await asyncForEach(files, async file => {
const locale = file.replace('-', '_').replace('.json', '');
-1
View File
@@ -6,7 +6,6 @@ declare module 'chartjs-adapter-date-fns';
declare module 'cors';
declare module 'date-fns-tz';
declare module 'debug';
declare module 'fs-extra';
declare module 'jsonwebtoken';
declare module 'md5';
declare module 'papaparse';