@versatiles/release-tool 2.2.0 → 2.2.2

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/README.md CHANGED
@@ -230,4 +230,8 @@ E-->8
230
230
  E-->A
231
231
  E-->B
232
232
  E-->C
233
+
234
+ style 0 fill-opacity:0.2
235
+ style 1 fill-opacity:0.2
236
+ style 3 fill-opacity:0.2
233
237
  ```
@@ -16,6 +16,9 @@ export async function generateDependencyGraph(directory) {
16
16
  if (typeof output !== 'string')
17
17
  panic('no output');
18
18
  output = output.replace('flowchart LR', 'flowchart TB');
19
- process.stdout.write(Buffer.from('```mermaid\n' + output + '```\n'));
19
+ const matches = Array.from(output.matchAll(/subgraph ([0-9a-z]+)/gi));
20
+ for (const [_match, id] of matches)
21
+ output += `\nstyle ${id} fill-opacity:0.2`;
22
+ process.stdout.write(Buffer.from('```mermaid\n' + output + '\n```\n'));
20
23
  }
21
24
  //# sourceMappingURL=deps-graph.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versatiles/release-tool",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "VersaTiles release and documentation tools",
5
5
  "bin": {
6
6
  "vrt": "./dist/index.js"