File: drop-prettier.patch

package info (click to toggle)
node-graphql 16.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,368 kB
  • sloc: javascript: 1,480; sh: 20; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (2)
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 = {