diff --git a/package.json b/package.json index c3e6caa9d1..f0d6ae0266 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,6 @@ "@types/sockjs-client": "^1.5.1", "altv-pkg": "^2.3.1", "fkill": "^8.1.1", - "fs-extra": "^11.1.1", "glob": "^10.3.1", "prettier": "^2.6.2", "stylus": "^0.58.1", diff --git a/scripts/documentation/index.js b/scripts/documentation/index.js index c0737417b1..306714d733 100644 --- a/scripts/documentation/index.js +++ b/scripts/documentation/index.js @@ -1,7 +1,7 @@ import path from 'path'; import fs from 'fs'; -import fsextra from 'fs-extra'; import { glob } from 'glob'; +import { writeFile } from '../shared/fileHelpers.js'; const docsPath = join(process.cwd(), './docs'); const filesToRemove = ['.nojekyll', 'modules.md', 'README.md']; @@ -89,5 +89,5 @@ for (let file of files) { i += 1; // Increment by 1 to prevent endless loop } - fsextra.writeFileSync(file, rows.join('\n')); + writeFile(file, rows.join('\n')); }