@versatiles/release-tool 2.3.1 → 2.4.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/README.md
CHANGED
|
@@ -192,6 +192,10 @@ Options:
|
|
|
192
192
|
<!--- This chapter is generated automatically --->
|
|
193
193
|
|
|
194
194
|
```mermaid
|
|
195
|
+
---
|
|
196
|
+
config:
|
|
197
|
+
layout: elk
|
|
198
|
+
---
|
|
195
199
|
flowchart TB
|
|
196
200
|
|
|
197
201
|
subgraph 0["src"]
|
|
@@ -231,7 +235,6 @@ E-->A
|
|
|
231
235
|
E-->B
|
|
232
236
|
E-->C
|
|
233
237
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
style 3 fill-opacity:0.2
|
|
238
|
+
class 0,1,3 subgraphs;
|
|
239
|
+
classDef subgraphs fill-opacity:0.1, fill:#888, color:#888, stroke:#888;
|
|
237
240
|
```
|
|
@@ -15,10 +15,11 @@ export async function generateDependencyGraph(directory) {
|
|
|
15
15
|
let { output } = cruiseResult;
|
|
16
16
|
if (typeof output !== 'string')
|
|
17
17
|
panic('no output');
|
|
18
|
-
output = output.replace('flowchart LR', '
|
|
18
|
+
output = output.replace('flowchart LR', '---\nconfig:\n layout: elk\n---\nflowchart TB');
|
|
19
19
|
const matches = Array.from(output.matchAll(/subgraph ([0-9a-z]+)/gi));
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
const subgraphIds = matches.map(([_match, id]) => id);
|
|
21
|
+
output += `\nclass ${subgraphIds.join(',')} subgraphs;`;
|
|
22
|
+
output += `\nclassDef subgraphs fill-opacity:0.1, fill:#888, color:#888, stroke:#888;`;
|
|
22
23
|
process.stdout.write(Buffer.from('```mermaid\n' + output + '\n```\n'));
|
|
23
24
|
}
|
|
24
25
|
//# sourceMappingURL=deps-graph.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { readFileSync, writeFileSync } from 'node:fs';
|
|
2
|
-
import {
|
|
2
|
+
import { inspect } from 'node:util';
|
|
3
|
+
import { check, info, warn } from '../lib/log.js';
|
|
3
4
|
import { getShell } from '../lib/shell.js';
|
|
4
5
|
/**
|
|
5
6
|
* Upgrades the dependencies in a package.json file to their latest versions, removes existing
|
|
@@ -63,8 +64,12 @@ export async function upgradeDependencies(directory) {
|
|
|
63
64
|
});
|
|
64
65
|
// Step 2: Remove existing dependencies and lock file
|
|
65
66
|
await check('Remove all dependencies', async () => {
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
try {
|
|
68
|
+
await shell.run('rm -f package-lock.json');
|
|
69
|
+
}
|
|
70
|
+
catch (e) {
|
|
71
|
+
warn(inspect(e));
|
|
72
|
+
}
|
|
68
73
|
});
|
|
69
74
|
// Step 3: Reinstall/upgrade all dependencies
|
|
70
75
|
await check('Upgrade all dependencies', shell.stdout('npm update --save'));
|
|
@@ -15,6 +15,7 @@ export async function generateTypescriptDocs(options) {
|
|
|
15
15
|
out: outputPath ?? './docs',
|
|
16
16
|
plugin,
|
|
17
17
|
logLevel: quiet ? 'Warn' : 'Info',
|
|
18
|
+
highlightLanguages: ['typescript', 'javascript', 'json', 'shell', 'bash', 'sh', 'css', 'html'],
|
|
18
19
|
}, [
|
|
19
20
|
new td.TypeDocReader(),
|
|
20
21
|
new td.PackageJsonReader(),
|