@versatiles/release-tool 2.4.0 → 2.4.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.
|
@@ -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'));
|
|
@@ -11,10 +11,11 @@ export async function generateTypescriptDocs(options) {
|
|
|
11
11
|
].filter(Boolean);
|
|
12
12
|
const app = await td.Application.bootstrapWithPlugins({
|
|
13
13
|
entryPoints: [entryPoint ?? './src/index.ts'],
|
|
14
|
-
gitRevision: 'main',
|
|
15
14
|
out: outputPath ?? './docs',
|
|
16
15
|
plugin,
|
|
17
16
|
logLevel: quiet ? 'Warn' : 'Info',
|
|
17
|
+
highlightLanguages: ['typescript', 'javascript', 'json', 'shell', 'bash', 'sh', 'css', 'html'],
|
|
18
|
+
groupOrder: ['Classes', 'Variables', 'Functions', '*'],
|
|
18
19
|
}, [
|
|
19
20
|
new td.TypeDocReader(),
|
|
20
21
|
new td.PackageJsonReader(),
|