@graphql-markdown/core 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -13
- package/src/renderer.js +4 -2
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/graphql-markdown/graphql-markdown/issues"
|
|
7
7
|
},
|
|
8
|
-
"version": "1.6.
|
|
8
|
+
"version": "1.6.1",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "src/index.js",
|
|
11
11
|
"repository": {
|
|
@@ -29,13 +29,12 @@
|
|
|
29
29
|
"stryker": "stryker run"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@graphql-markdown/utils": "^1.5.
|
|
32
|
+
"@graphql-markdown/utils": "^1.5.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@graphql-markdown/diff": "^1.0.
|
|
36
|
-
"@graphql-markdown/printer-legacy": "^1.4.
|
|
37
|
-
"graphql-config": "^5.0.2"
|
|
38
|
-
"prettier": "^2.8"
|
|
35
|
+
"@graphql-markdown/diff": "^1.0.14",
|
|
36
|
+
"@graphql-markdown/printer-legacy": "^1.4.1",
|
|
37
|
+
"graphql-config": "^5.0.2"
|
|
39
38
|
},
|
|
40
39
|
"peerDependenciesMeta": {
|
|
41
40
|
"@graphql-markdown/printer-legacy": {
|
|
@@ -46,15 +45,8 @@
|
|
|
46
45
|
},
|
|
47
46
|
"graphql-config": {
|
|
48
47
|
"optional": true
|
|
49
|
-
},
|
|
50
|
-
"prettier": {
|
|
51
|
-
"optional": true
|
|
52
48
|
}
|
|
53
49
|
},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@graphql-markdown/printer-legacy": "^1.1.3",
|
|
56
|
-
"graphql-config": "^5.0.2"
|
|
57
|
-
},
|
|
58
50
|
"directories": {
|
|
59
51
|
"test": "tests"
|
|
60
52
|
},
|
package/src/renderer.js
CHANGED
|
@@ -130,7 +130,8 @@ module.exports = class Renderer {
|
|
|
130
130
|
|
|
131
131
|
await saveFile(
|
|
132
132
|
filePath,
|
|
133
|
-
|
|
133
|
+
content,
|
|
134
|
+
this.prettify ? prettifyMarkdown : undefined,
|
|
134
135
|
);
|
|
135
136
|
|
|
136
137
|
const pagePath = path.relative(this.outputDir, filePath);
|
|
@@ -167,7 +168,8 @@ module.exports = ${JSON.stringify(sidebar, null, 2)};
|
|
|
167
168
|
const filePath = path.join(this.outputDir, SIDEBAR);
|
|
168
169
|
await saveFile(
|
|
169
170
|
filePath,
|
|
170
|
-
|
|
171
|
+
jsonSidebar,
|
|
172
|
+
this.prettify ? prettifyJavascript : undefined,
|
|
171
173
|
);
|
|
172
174
|
|
|
173
175
|
return path.relative("./", filePath);
|