Skip to content

Commit 559cd46

Browse files
committed
Update dev-dependencies
1 parent 3275bd4 commit 559cd46

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@
4040
"zwitch": "^2.0.0"
4141
},
4242
"devDependencies": {
43-
"@types/node": "^18.0.0",
44-
"c8": "^7.0.0",
45-
"prettier": "^2.0.0",
43+
"@types/node": "^20.0.0",
44+
"c8": "^8.0.0",
45+
"prettier": "^3.0.0",
4646
"remark-cli": "^11.0.0",
4747
"remark-preset-wooorm": "^9.0.0",
48-
"tsd": "^0.25.0",
48+
"tsd": "^0.28.0",
4949
"type-coverage": "^2.0.0",
50-
"typescript": "^4.0.0",
51-
"xo": "^0.53.0"
50+
"typescript": "^5.0.0",
51+
"xo": "^0.55.0"
5252
},
5353
"scripts": {
5454
"prepack": "npm run build && npm run format",
5555
"build": "tsc --build --clean && tsc --build && tsd && type-coverage",
56-
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
56+
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
5757
"test-api": "node --conditions development test/index.js",
5858
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
5959
"test": "npm run build && npm run format && npm run test-coverage"

test/core.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import nodeAssert from 'node:assert/strict'
2+
import test from 'node:test'
3+
import * as mod from '../index.js'
4+
5+
test('api', () => {
6+
nodeAssert.deepEqual(
7+
Object.keys(mod).sort(),
8+
['_void', 'assert', 'literal', 'parent', 'wrap'],
9+
'should expose the public api'
10+
)
11+
})

test/index.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-disable import/no-unassigned-import */
2+
import './core.js'
23
import './node.js'
34
import './parent.js'
45
import './children.js'
@@ -8,15 +9,3 @@ import './doctype.js'
89
import './text.js'
910
import './comment.js'
1011
/* eslint-enable import/no-unassigned-import */
11-
12-
import nodeAssert from 'node:assert/strict'
13-
import test from 'node:test'
14-
import * as mod from '../index.js'
15-
16-
test('api', () => {
17-
nodeAssert.deepEqual(
18-
Object.keys(mod).sort(),
19-
['_void', 'assert', 'literal', 'parent', 'wrap'],
20-
'should expose the public api'
21-
)
22-
})

0 commit comments

Comments
 (0)