File tree Expand file tree Collapse file tree 5 files changed +33
-37
lines changed
Expand file tree Collapse file tree 5 files changed +33
-37
lines changed Original file line number Diff line number Diff line change @@ -2,31 +2,30 @@ name: Node.js CI
22
33on :
44 push :
5- branches : [ "main" ]
5+ branches : ["main"]
66 pull_request :
7- branches : [ "main" ]
7+ branches : ["main"]
88
99jobs :
1010 build :
11-
1211 runs-on : ubuntu-latest
1312
1413 strategy :
1514 matrix :
1615 node-version : [18.x, 20.x, 22.x]
1716
1817 steps :
19- - uses : actions/checkout@v4
20- - name : Install pnpm
21- uses : pnpm/action-setup@v4
22- with :
23- version : 10
24- - name : Use Node.js ${{ matrix.node-version }}
25- uses : actions/setup-node@v4
26- with :
27- node-version : ${{ matrix.node-version }}
28- cache : ' pnpm'
29- - name : Install dependencies
30- run : pnpm install
31- - run : pnpm run build
32- - run : pnpm run test
18+ - uses : actions/checkout@v4
19+ - name : Install pnpm
20+ uses : pnpm/action-setup@v4
21+ with :
22+ version : 10
23+ - name : Use Node.js ${{ matrix.node-version }}
24+ uses : actions/setup-node@v4
25+ with :
26+ node-version : ${{ matrix.node-version }}
27+ cache : " pnpm"
28+ - name : Install dependencies
29+ run : pnpm install
30+ - run : pnpm run build
31+ - run : pnpm run test
Original file line number Diff line number Diff line change 22
33A command-line tool for generating Markdown documentation for a ` .d.ts ` file.
44
5- > [ !IMPORTANT]
6- This is ** NOT** fit for production use. Use at your own risk.
5+ > [ !IMPORTANT]
6+ > This is ** NOT** fit for production use. Use at your own risk.
77
88## Usage
99
Original file line number Diff line number Diff line change 11module . exports = {
2- preset : ' ts-jest' ,
3- testEnvironment : ' node' ,
2+ preset : " ts-jest" ,
3+ testEnvironment : " node" ,
44 transform : {
5- ' ^.+\\.tsx?$' : ' ts-jest' ,
5+ " ^.+\\.tsx?$" : " ts-jest" ,
66 } ,
77} ;
Original file line number Diff line number Diff line change 77 "build" : " esbuild src/dts-docs.ts --bundle --platform=node --outfile=dist/index.js --format=cjs --banner:js='#!/usr/bin/env node'" ,
88 "postbuild" : " chmod +x dist/index.js" ,
99 "run" : " node dist/index.js" ,
10- "test" : " jest"
10+ "test" : " jest" ,
11+ "format" : " prettier --write ."
1112 },
1213 "bin" : {
1314 "dts-docs" : " ./dist/index.js"
Original file line number Diff line number Diff line change 1- {
2- "compilerOptions" : {
3- "target" : " esnext" ,
4- "module" : " commonjs" ,
5- "moduleResolution" : " node" ,
6- "sourceMap" : true ,
7- "outDir" : " dist" ,
8- },
9- "include" : [
10- " src/**/*" ,
11- " test/**/*" ,
12- " testdata" ,
13- ]
14- }
1+ {
2+ "compilerOptions" : {
3+ "target" : " esnext" ,
4+ "module" : " commonjs" ,
5+ "moduleResolution" : " node" ,
6+ "sourceMap" : true ,
7+ "outDir" : " dist"
8+ },
9+ "include" : [" src/**/*" , " test/**/*" , " testdata" ]
10+ }
You can’t perform that action at this time.
0 commit comments