Skip to content

Commit

Permalink
chore(deps): replace "fs-extra" with "fs/promise"
Browse files Browse the repository at this point in the history
As all the file system methods we used in this repo are available in "fs/promise",
it would be ok to replace "fs-extra" and remove the dependency.
  • Loading branch information
yin1999 committed Nov 11, 2023
1 parent 8fad91e commit 5d3e6ba
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 33 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"cld": "^2.9.1",
"fdir": "^6.1.1",
"front-matter": "^4.0.2",
"fs-extra": "^11.1.1",
"husky": "8.0.3",
"lint-staged": "15.0.2",
"markdown-it": "^13.0.2",
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-document-locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Written by Queen Vinyl Da.i'gyu-Kazotetsu (@queengooborg, https://www.queengoob.org)

import fs from "fs-extra";
import fs from "node:fs/promises";
import cld from "cld";
import { fdir } from "fdir";
import MarkdownIt from "markdown-it";
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-url-locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

"use strict";

import fs from "fs-extra";
import fs from "node:fs/promises";
import * as path from "node:path";
import { fdir } from "fdir";
import ora from "ora";
Expand Down
3 changes: 1 addition & 2 deletions scripts/get-sourceCommit.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
//
// Written by Queen Vinyl Da.i'gyu-Kazotetsu (@queengooborg, https://www.queengoob.org)

import fs from "fs-extra";
import cld from "cld";
import fs from "node:fs/promises";
import { fdir } from "fdir";
import fm from "front-matter";
import ora from "ora";
Expand Down
28 changes: 0 additions & 28 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -339,15 +339,6 @@ front-matter@^4.0.2:
dependencies:
js-yaml "^3.13.1"

fs-extra@^11.1.1:
version "11.1.1"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.1.1.tgz#da69f7c39f3b002378b0954bb6ae7efdc0876e2d"
integrity sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==
dependencies:
graceful-fs "^4.2.0"
jsonfile "^6.0.1"
universalify "^2.0.0"

fs.realpath@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
Expand Down Expand Up @@ -393,11 +384,6 @@ [email protected]:
merge2 "^1.4.1"
slash "^4.0.0"

graceful-fs@^4.1.6, graceful-fs@^4.2.0:
version "4.2.11"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3"
integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==

human-signals@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28"
Expand Down Expand Up @@ -486,15 +472,6 @@ js-yaml@^3.13.1:
argparse "^1.0.7"
esprima "^4.0.0"

jsonfile@^6.0.1:
version "6.1.0"
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae"
integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==
dependencies:
universalify "^2.0.0"
optionalDependencies:
graceful-fs "^4.1.6"

[email protected]:
version "2.1.0"
resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52"
Expand Down Expand Up @@ -1184,11 +1161,6 @@ unist-util-visit@^5.0.0:
unist-util-is "^6.0.0"
unist-util-visit-parents "^6.0.0"

universalify@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717"
integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==

util-deprecate@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
Expand Down

0 comments on commit 5d3e6ba

Please sign in to comment.