File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 60
60
${{steps.size-markdown.outputs.content}}
61
61
<!-- VUE_CORE_SIZE -->
62
62
body-include : ' <!-- VUE_CORE_SIZE -->'
63
-
64
- # Test
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ import { existsSync } from 'node:fs'
7
7
8
8
const currDir = path . resolve ( 'temp/size' )
9
9
const prevDir = path . resolve ( 'temp/size-prev' )
10
- let output = '## Size Report\n'
10
+ let output = '## Size Report\n\n '
11
11
12
12
run ( )
13
13
14
14
async function run ( ) {
15
- await processExports ( )
16
- await renderBaseline ( )
17
15
await renderFiles ( )
16
+ await renderBaseline ( )
17
+ await processExports ( )
18
18
19
19
process . stdout . write ( output )
20
20
}
@@ -75,13 +75,13 @@ async function renderBaseline() {
75
75
async function processExports ( ) {
76
76
const curr = await importJSON ( path . resolve ( currDir , '_exports.json' ) )
77
77
const prev = await importJSON ( path . resolve ( prevDir , '_exports.json' ) )
78
- output += '\n### Exports\n\n'
78
+ output += '\n### Exports\n\n<details>\n\n '
79
79
if ( prev ) {
80
80
output += renderExports ( curr , prev )
81
81
}
82
82
output += `\n\n<details>\n<summary>Show full exports</summary>\n\n${ renderExports (
83
83
curr
84
- ) } \n\n</details>\n\n`
84
+ ) } \n\n</details>\n</details>\n \n`
85
85
}
86
86
87
87
/** @typedef {Record<string, import('@sxzz/export-size').ExportsInfo> } ExportMap */
You can’t perform that action at this time.
0 commit comments