Skip to content

Commit 7cdbe15

Browse files
chore: remove single dependency, fs-extra (#1687)
Co-authored-by: chris <chris@bumblehead.com>
1 parent 23c5349 commit 7cdbe15

4 files changed

Lines changed: 4 additions & 9 deletions

File tree

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
"eslint-plugin-prettier": "^5.4.1",
108108
"eslint-plugin-promise": "^7.2.1",
109109
"filesize": "^10.1.6",
110-
"fs-extra": "^11.3.0",
111110
"globals": "^16.2.0",
112111
"gzip-size": "^7.0.0",
113112
"history": "^5.3.0",

scripts/bundle/move-compiled.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import { readFileSync } from 'fs';
1+
import { readFileSync, cpSync } from 'fs';
22
import { join } from 'path';
3-
import { copySync } from 'fs-extra/esm';
43

54
const cwd = process.cwd();
65
const pkgJSONtext = readFileSync(join(cwd, 'package.json'));
76
const pkgJSON = JSON.parse(pkgJSONtext);
8-
97
if (!pkgJSON.private) {
10-
copySync(join(cwd, '../../build/packages/', pkgJSON.name, 'src'), join(cwd, 'tmpDist'), { overwrite: true });
8+
cpSync(join(cwd, '../../build/packages/', pkgJSON.name, 'src'), join(cwd, 'tmpDist'), { recursive: true, force: true });
119
}

scripts/bundle/move-typedefs.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { join } from 'path';
2-
import { readFileSync } from 'fs';
3-
import { copySync } from 'fs-extra/esm';
2+
import { readFileSync, cpSync } from 'fs';
43
import { readFilesInDir } from './read-files-in-dir.js';
54

65
const cwd = process.cwd();
@@ -22,6 +21,6 @@ if (!pkgJSON.private) {
2221
});
2322

2423
for (const file of allTsFiles) {
25-
copySync(file.absolutePath, destFolder + file.relativePath, { overwrite: true });
24+
cpSync(file.absolutePath, destFolder + file.relativePath, { recursive: true, force: true });
2625
}
2726
}

0 commit comments

Comments
 (0)