1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: drop prettier
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2022-07-03
--- a/resources/utils.js
+++ b/resources/utils.js
@@ -4,8 +4,6 @@
const path = require('path');
const childProcess = require('child_process');
-const prettier = require('prettier');
-
function exec(command, options) {
const output = childProcess.execSync(command, {
maxBuffer: 10 * 1024 * 1024, // 10MB
@@ -87,8 +85,7 @@
);
function writeGeneratedFile(filepath, body) {
- const formatted = prettier.format(body, { filepath, ...prettierConfig });
- fs.writeFileSync(filepath, formatted);
+ fs.writeFileSync(filepath, body);
}
module.exports = {
|