Skip to content

Commit 3d5d19e

Browse files
fix: allow description in command flags (#4)
1 parent a766c57 commit 3d5d19e

File tree

5 files changed

+319
-7
lines changed

5 files changed

+319
-7
lines changed

.github/workflows/test.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ jobs:
2121
node-version: ${{ matrix.node-version }}
2222
- name: Install dependencies
2323
run: npx ci
24+
- name: Build
25+
run: npm run build
2426
- name: Lint
2527
if: ${{ matrix.node-version == '14.x' }}
2628
run: npm run lint
2729
- name: Test
28-
run: npm run test --if-present
30+
run: npm run test
31+
- name: Test DTS
32+
run: npm run test:dts

package.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"scripts": {
3535
"build": "tsup src/index.ts --dts --format esm,cjs --minify",
3636
"lint": "eslint .",
37-
"test": "CI=true jest"
37+
"test": "CI=true jest",
38+
"test:dts": "tsd"
3839
},
3940
"husky": {
4041
"hooks": {
@@ -48,7 +49,7 @@
4849
},
4950
"dependencies": {
5051
"terminal-columns": "^1.4.1",
51-
"type-flag": "^2.0.0"
52+
"type-flag": "^2.0.1"
5253
},
5354
"devDependencies": {
5455
"@pvtnbr/eslint-config": "^0.11.0",
@@ -61,6 +62,7 @@
6162
"husky": "^4.3.8",
6263
"jest": "^27.4.7",
6364
"lint-staged": "^12.1.2",
65+
"tsd": "^0.19.1",
6466
"tsup": "^5.11.10",
6567
"typescript": "^4.5.4"
6668
},
@@ -69,5 +71,8 @@
6971
"rules": {
7072
"unicorn/no-process-exit": "off"
7173
}
74+
},
75+
"tsd": {
76+
"directory": "tests"
7277
}
7378
}

0 commit comments

Comments
 (0)