Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit a7c0cee

Browse files
author
Thomas Hunter
authored
[ACS-4723] Remove fs-extra dependency (#1535)
1 parent f9344d5 commit a7c0cee

File tree

3 files changed

+4
-40
lines changed

3 files changed

+4
-40
lines changed

.make-packages.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22

33
const pkg = require('./package.json');
4-
const fs = require('fs-extra');
4+
const fs = require('node:fs');
55

66
const OUTPUT_FOLDER = 'dist';
77

@@ -19,9 +19,9 @@ const rootPackageJson = {
1919
es2015: './esm2015/index.js'
2020
};
2121

22-
fs.copySync('./LICENSE.txt', `${OUTPUT_FOLDER}/LICENSE.txt`);
23-
fs.copySync('./README.md', `${OUTPUT_FOLDER}/README.md`);
22+
fs.copyFileSync('./LICENSE.txt', `${OUTPUT_FOLDER}/LICENSE.txt`);
23+
fs.copyFileSync('./README.md', `${OUTPUT_FOLDER}/README.md`);
2424

25-
fs.writeJsonSync(`${OUTPUT_FOLDER}/package.json`, rootPackageJson, {spaces: 2});
25+
fs.writeFileSync(`${OUTPUT_FOLDER}/package.json`, JSON.stringify(rootPackageJson, null, 2));
2626

2727

package-lock.json

Lines changed: 0 additions & 35 deletions
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
@@ -54,7 +54,6 @@
5454
"cspell": "^6.21.0",
5555
"eslint": "^7.27.0",
5656
"expect.js": "~0.3.1",
57-
"fs-extra": "11.1.0",
5857
"github-api": "^3.4.0",
5958
"markdown-toc": "^1.2.0",
6059
"mocha": "^10.2.0",

0 commit comments

Comments
 (0)