Skip to content

Commit e211695

Browse files
committed
Format all with Prettier
1 parent 5dbe81e commit e211695

File tree

5 files changed

+33
-37
lines changed

5 files changed

+33
-37
lines changed

.github/workflows/node.js.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,30 @@ name: Node.js CI
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
jobs:
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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
A 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

jest.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.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
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
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"

tsconfig.json

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
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+
}

0 commit comments

Comments
 (0)