File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 31
31
- uses : actions/setup-node@v3
32
32
- run : npm install --legacy-peer-deps
33
33
- run : npm run lint
34
+ - run : npm run toc
35
+ - run : git diff --stat --exit-code
34
36
- run : npx prettier --check .
35
37
- run : npm run coverage
Original file line number Diff line number Diff line change @@ -9,13 +9,11 @@ and introduce yourself.
9
9
10
10
---
11
11
12
- <!-- `npm run toc` to regenerate the Table of Contents -->
12
+ ## Table of Contents
13
13
14
14
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
15
15
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
16
16
17
- ## Table of Contents
18
-
19
17
- [ Filing Issues] ( #filing-issues )
20
18
- [ Building From Source] ( #building-from-source )
21
19
- [ Submitting Pull Requests] ( #submitting-pull-requests )
Original file line number Diff line number Diff line change @@ -24,13 +24,11 @@ This is a library to generate and consume the source map format
24
24
25
25
---
26
26
27
- <!-- `npm run toc` to regenerate the Table of Contents -->
27
+ ## Table of Contents
28
28
29
29
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
30
30
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
31
31
32
- ## Table of Contents
33
-
34
32
- [ Examples] ( #examples )
35
33
- [ Consuming a source map] ( #consuming-a-source-map )
36
34
- [ Generating a source map] ( #generating-a-source-map )
Original file line number Diff line number Diff line change 70
70
"coverage" : " nyc --reporter=text --reporter=html npm test" ,
71
71
"prettier" : " prettier --write ." ,
72
72
"clean" : " rm -rf coverage .nyc_output" ,
73
- "toc" : " doctoc --title '## Table of Contents' README.md && doctoc --title '## Table of Contents' CONTRIBUTING.md"
73
+ "toc" : " doctoc --github --notitle README.md CONTRIBUTING.md"
74
74
},
75
75
"devDependencies" : {
76
- "doctoc" : " ^1.3 .1" ,
76
+ "doctoc" : " ^2.2 .1" ,
77
77
"eslint" : " ^8.24.0" ,
78
78
"eslint-config-prettier" : " ^8.5.0" ,
79
79
"nyc" : " ^11.7.1" ,
You can’t perform that action at this time.
0 commit comments