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