@versatiles/release-tool 2.7.1 → 2.7.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
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
[](https://www.npmjs.com/package/@versatiles/release-tool)
|
|
2
|
+
[](https://www.npmjs.com/package/@versatiles/release-tool)
|
|
3
|
+
[](https://codecov.io/gh/versatiles-org/node-release-tool)
|
|
4
|
+
[](https://github.com/versatiles-org/node-release-tool/actions/workflows/ci.yml)
|
|
5
|
+
[](LICENSE)
|
|
3
6
|
|
|
4
7
|
# VersaTiles Release Tools
|
|
5
8
|
|
|
@@ -19,7 +19,7 @@ export async function generateCommandDocumentation(command) {
|
|
|
19
19
|
}
|
|
20
20
|
catch (error) {
|
|
21
21
|
// Handle errors in generating subcommand documentation.
|
|
22
|
-
throw new Error(`Error generating documentation for subcommand '${fullCommand}': ${getErrorMessage(error)}
|
|
22
|
+
throw new Error(`Error generating documentation for subcommand '${fullCommand}': ${getErrorMessage(error)}`, { cause: error });
|
|
23
23
|
}
|
|
24
24
|
}))).join('');
|
|
25
25
|
return markdown;
|
|
@@ -7,9 +7,9 @@ export type DocFormat = 'markdown' | 'wiki' | 'html';
|
|
|
7
7
|
*/
|
|
8
8
|
export interface TypescriptDocOptions {
|
|
9
9
|
/** Path to the entry point file (default: './src/index.ts') */
|
|
10
|
-
|
|
10
|
+
input?: string;
|
|
11
11
|
/** Output directory for generated docs (default: './docs') */
|
|
12
|
-
|
|
12
|
+
output?: string;
|
|
13
13
|
/** Documentation format: 'markdown', 'wiki', or 'html' (default: 'markdown') */
|
|
14
14
|
format?: DocFormat;
|
|
15
15
|
/** Suppress info-level logging (default: false) */
|
|
@@ -33,8 +33,8 @@ export interface TypescriptDocOptions {
|
|
|
33
33
|
*
|
|
34
34
|
* // Generate HTML docs to custom directory
|
|
35
35
|
* await generateTypescriptDocs({
|
|
36
|
-
*
|
|
37
|
-
*
|
|
36
|
+
* input: './src/main.ts',
|
|
37
|
+
* output: './api-docs',
|
|
38
38
|
* format: 'html'
|
|
39
39
|
* });
|
|
40
40
|
* ```
|
|
@@ -18,14 +18,14 @@ import { panic, warn } from '../lib/log.js';
|
|
|
18
18
|
*
|
|
19
19
|
* // Generate HTML docs to custom directory
|
|
20
20
|
* await generateTypescriptDocs({
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* input: './src/main.ts',
|
|
22
|
+
* output: './api-docs',
|
|
23
23
|
* format: 'html'
|
|
24
24
|
* });
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
27
|
export async function generateTypescriptDocs(options) {
|
|
28
|
-
const {
|
|
28
|
+
const { input, output, quiet } = options;
|
|
29
29
|
const format = options.format ?? 'markdown';
|
|
30
30
|
const isMarkdown = format !== 'html';
|
|
31
31
|
const plugin = [
|
|
@@ -34,8 +34,8 @@ export async function generateTypescriptDocs(options) {
|
|
|
34
34
|
format === 'html' && 'typedoc-github-theme',
|
|
35
35
|
].filter(Boolean);
|
|
36
36
|
const app = await td.Application.bootstrapWithPlugins({
|
|
37
|
-
entryPoints: [
|
|
38
|
-
out:
|
|
37
|
+
entryPoints: [input ?? './src/index.ts'],
|
|
38
|
+
out: output ?? './docs',
|
|
39
39
|
plugin,
|
|
40
40
|
logLevel: quiet ? 'Warn' : 'Info',
|
|
41
41
|
highlightLanguages: ['typescript', 'javascript', 'json', 'shell', 'bash', 'sh', 'css', 'html'],
|
package/dist/index.js
CHANGED
|
@@ -86,7 +86,7 @@ program
|
|
|
86
86
|
.description('Insert Markdown from stdin into a specified section of a Markdown file.')
|
|
87
87
|
.argument('<readme>', 'Path to the target Markdown file (e.g., README.md).', checkFilename)
|
|
88
88
|
.argument('[heading]', 'Heading in the Markdown file where content should be placed. Default is "# API".', '# API')
|
|
89
|
-
.argument('[foldable]', 'Whether to wrap the inserted content in a foldable section.', false)
|
|
89
|
+
.argument('[foldable]', 'Whether to wrap the inserted content in a foldable section.', (v) => v === 'true', false)
|
|
90
90
|
.action(async (mdFilename, heading, foldable) => {
|
|
91
91
|
const buffers = [];
|
|
92
92
|
for await (const data of process.stdin) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versatiles/release-tool",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.2",
|
|
4
4
|
"description": "VersaTiles release and documentation tools",
|
|
5
5
|
"bin": {
|
|
6
6
|
"vrt": "./dist/index.js"
|
|
@@ -39,29 +39,30 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://github.com/versatiles-org/node-release-tool",
|
|
41
41
|
"devDependencies": {
|
|
42
|
+
"@eslint/js": "^10.0.1",
|
|
42
43
|
"@schemastore/package": "^0.0.10",
|
|
43
44
|
"@types/node": "^25.2.3",
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
45
|
-
"@typescript-eslint/parser": "^8.
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
46
|
+
"@typescript-eslint/parser": "^8.56.0",
|
|
46
47
|
"@vitest/coverage-v8": "^4.0.18",
|
|
47
|
-
"eslint": "^
|
|
48
|
+
"eslint": "^10.0.0",
|
|
48
49
|
"husky": "^9.1.7",
|
|
49
50
|
"lint-staged": "^16.2.7",
|
|
50
51
|
"prettier": "^3.8.1",
|
|
51
52
|
"tsx": "^4.21.0",
|
|
52
53
|
"typescript": "^5.9.3",
|
|
53
|
-
"typescript-eslint": "^8.
|
|
54
|
+
"typescript-eslint": "^8.56.0",
|
|
54
55
|
"vitest": "^4.0.18"
|
|
55
56
|
},
|
|
56
57
|
"dependencies": {
|
|
57
|
-
"@inquirer/select": "^5.0.
|
|
58
|
+
"@inquirer/select": "^5.0.7",
|
|
58
59
|
"commander": "^14.0.3",
|
|
59
60
|
"dependency-cruiser": "^17.3.8",
|
|
60
61
|
"npm-check-updates": "^19.3.2",
|
|
61
62
|
"remark": "^15.0.1",
|
|
62
63
|
"remark-gfm": "^4.0.1",
|
|
63
|
-
"typedoc": "^0.28.
|
|
64
|
-
"typedoc-github-theme": "^0.
|
|
64
|
+
"typedoc": "^0.28.17",
|
|
65
|
+
"typedoc-github-theme": "^0.4.0",
|
|
65
66
|
"typedoc-github-wiki-theme": "^2.1.0",
|
|
66
67
|
"typedoc-plugin-markdown": "^4.10.0"
|
|
67
68
|
},
|