Skip to content

Commit f2dc40d

Browse files
committed
fix: wip for type fix and dtslint > tsd issue
1 parent 3dea29d commit f2dc40d

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed

package.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"shadowgate15 (https://github.com/shadowgate15)"
1313
],
1414
"dependencies": {
15-
"@breejs/later": "^4.1.0",
15+
"@breejs/later": "^4.2.0",
1616
"boolean": "^3.2.0",
1717
"combine-errors": "^3.0.3",
1818
"cron-validate": "^1.4.5",
@@ -24,36 +24,36 @@
2424
"safe-timers": "^1.1.0"
2525
},
2626
"devDependencies": {
27-
"@commitlint/cli": "^18.4.3",
28-
"@commitlint/config-conventional": "^18.4.3",
27+
"@commitlint/cli": "^19.3.0",
28+
"@commitlint/config-conventional": "^19.2.2",
2929
"@goto-bus-stop/envify": "^5.0.0",
3030
"@sinonjs/fake-timers": "^11.2.2",
31-
"@types/node": "^20.9.3",
31+
"@types/node": "^20.12.7",
3232
"@types/safe-timers": "^1.1.2",
33-
"@typescript-eslint/eslint-plugin": "^5.62.0",
34-
"@typescript-eslint/parser": "^5.62.0",
33+
"@typescript-eslint/eslint-plugin": "^7.8.0",
34+
"@typescript-eslint/parser": "^7.8.0",
3535
"ava": "^5.3.1",
3636
"cross-env": "^7.0.3",
3737
"delay": "5",
38-
"dtslint": "^4.2.1",
3938
"eslint": "8.39.0",
4039
"eslint-config-xo-lass": "^2.0.1",
4140
"events.once": "^2.0.2",
4241
"fixpack": "^4.0.0",
43-
"husky": "^8.0.3",
42+
"husky": "^9.0.11",
4443
"into-stream": "7",
45-
"lint-staged": "^15.1.0",
44+
"lint-staged": "^15.2.2",
4645
"nyc": "^15.1.0",
4746
"remark-cli": "11",
4847
"remark-preset-github": "^4.0.4",
48+
"tsd": "^0.31.0",
4949
"xo": "0.54"
5050
},
5151
"engines": {
5252
"node": ">=12.17.0 <13.0.0-0||>=13.2.0"
5353
},
5454
"files": [
5555
"src",
56-
"types/index.d.ts"
56+
"types"
5757
],
5858
"homepage": "https://github.com/breejs/bree",
5959
"keywords": [
@@ -148,14 +148,13 @@
148148
},
149149
"scripts": {
150150
"ava": "cross-env NODE_ENV=test ava",
151-
"dtslint": "cross-env NODE_ENV=test dtslint types",
152151
"lint": "npm run lint:js && npm run lint:md && fixpack",
153152
"lint:js": "xo --fix --ignore examples/",
154153
"lint:md": "remark . -qfo",
155154
"nyc": "cross-env NODE_ENV=test nyc ava",
156155
"prepare": "husky install",
157156
"pretest": "npm run lint",
158-
"test": "npm run ava && npm run dtslint",
157+
"test": "npm run ava && tsd",
159158
"test-coverage": "cross-env NODE_ENV=test nyc npm run test"
160159
},
161160
"types": "types"

test-d/index.test-d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { expectType, expectNotType } from 'tsd';
2+
import Bree from '..';
3+
4+
const bree = new Bree({});
5+
6+
expectType<Bree.Constructor>(Bree);
7+
expectType<Bree.Bree>(bree);

types/tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as path from 'node:path';
2-
import * as Bree from 'bree';
2+
import * as Bree from '..';
33

44
Bree.extend((o, b) => {}, {});
55

0 commit comments

Comments
 (0)