Skip to content

Commit c101877

Browse files
authored
fix: types field should point to .d.cts (#569)
1 parent 5b965b3 commit c101877

File tree

21 files changed

+2121
-3206
lines changed

21 files changed

+2121
-3206
lines changed

.changeset/ninety-cougars-invent.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"eslint-mdx": patch
3+
"eslint-plugin-mdx": patch
4+
---
5+
6+
fix: `types` field should point to `.d.cts`

.lintstagedrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

.nano-staged.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from '@1stg/nano-staged/tsc'

.renovaterc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"github>1stG/configs"
4+
]
5+
}

.yarn/releases/yarn-4.8.1.cjs

Lines changed: 0 additions & 935 deletions
This file was deleted.

.yarn/releases/yarn-4.9.1.cjs

Lines changed: 948 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ plugins:
77
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
88
spec: 'https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js'
99

10-
yarnPath: .yarn/releases/yarn-4.8.1.cjs
10+
yarnPath: .yarn/releases/yarn-4.9.1.cjs

package.json

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"workspaces": [
1111
"packages/*"
1212
],
13-
"packageManager": "yarn@4.8.1",
13+
"packageManager": "yarn@4.9.1",
1414
"scripts": {
1515
"build": "concurrently -r 'yarn:build:*'",
1616
"build:r": "r -f cjs",
@@ -28,25 +28,26 @@
2828
"version": "changeset version && yarn --no-immutable"
2929
},
3030
"devDependencies": {
31-
"@1stg/common-config": "^11.1.2",
31+
"@1stg/common-config": "^13.0.1",
3232
"@changesets/changelog-github": "^0.5.1",
33-
"@changesets/cli": "^2.28.1",
33+
"@changesets/cli": "^2.29.2",
3434
"@commitlint/cli": "^19.8.0",
35-
"@oxc-node/core": "^0.0.22",
36-
"@pkgr/rollup": "^6.0.1",
37-
"@swc/core": "^1.11.16",
35+
"@oxc-node/core": "^0.0.23",
36+
"@pkgr/rollup": "^6.0.3",
37+
"@swc/core": "^1.11.21",
3838
"@swc/jest": "^0.2.37",
3939
"@types/jest": "^29.5.14",
40-
"@types/node": "^22.14.0",
41-
"@types/react": "^19.1.0",
40+
"@types/node": "^22.14.1",
41+
"@types/react": "^19.1.2",
4242
"@types/unist": "^3.0.3",
4343
"@unts/patch-package": "^8.1.1",
4444
"concurrently": "^9.1.2",
45-
"eslint": "^9.24.0",
45+
"eslint": "^9.25.1",
46+
"eslint-plugin-jest": "^28.11.0",
4647
"eslint-plugin-react": "^7.37.5",
4748
"globals": "^16.0.0",
4849
"jest": "^30.0.0-alpha.7",
49-
"lint-staged": "^15.5.0",
50+
"nano-staged": "^0.8.0",
5051
"path-serializer": "^0.3.4",
5152
"prettier": "^3.5.3",
5253
"react": "^19.1.0",
@@ -55,10 +56,9 @@
5556
"ts-node": "^10.9.2",
5657
"type-coverage": "^2.29.7",
5758
"typescript": "^5.8.3",
58-
"yarn-berry-deduplicate": "^6.1.1"
59+
"yarn-berry-deduplicate": "^6.1.3"
5960
},
6061
"resolutions": {
61-
"es5-ext": "npm:@unes/es5-ext@^0.10.64-1",
6262
"eslint-mdx": "link:packages/eslint-mdx",
6363
"eslint-plugin-mdx": "link:packages/eslint-plugin-mdx",
6464
"prettier": "^3.5.3",
@@ -104,11 +104,6 @@
104104
"@1stg/preset"
105105
]
106106
},
107-
"renovate": {
108-
"extends": [
109-
"github>1stG/configs"
110-
]
111-
},
112107
"typeCoverage": {
113108
"atLeast": 100,
114109
"cache": true,

packages/eslint-mdx/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"node": ">=18.0.0"
1616
},
1717
"main": "lib/index.cjs",
18+
"types": "index.d.cts",
1819
"module": "lib/index.js",
1920
"exports": {
2021
".": {
@@ -33,7 +34,6 @@
3334
},
3435
"./package.json": "./package.json"
3536
},
36-
"types": "lib/index.d.ts",
3737
"files": [
3838
"index.d.cts",
3939
"lib"
@@ -62,7 +62,7 @@
6262
"remark-mdx": "^3.1.0",
6363
"remark-parse": "^11.0.0",
6464
"remark-stringify": "^11.0.0",
65-
"synckit": "^0.11.2",
65+
"synckit": "^0.11.4",
6666
"tslib": "^2.8.1",
6767
"unified": "^11.0.5",
6868
"unified-engine": "^11.2.2",

packages/eslint-mdx/shim.d.ts

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,26 @@ declare module 'espree/lib/token-translator' {
44
export default TokenTranslator
55

66
export interface Location {
7-
/**
8-
* The start position.
9-
*/
7+
/** The start position. */
108
start: acorn.Position
11-
/**
12-
* The end position.
13-
*/
9+
/** The end position. */
1410
end: acorn.Position
1511
}
1612

1713
export type Range = [number, number]
1814

1915
export interface EsprimaToken {
20-
/**
21-
* The type of this token.
22-
*/
16+
/** The type of this token. */
2317
type: string
24-
/**
25-
* The string content of the token.
26-
*/
18+
/** The string content of the token. */
2719
value: string
28-
/**
29-
* Location in source text.
30-
*/
20+
/** Location in source text. */
3121
loc: Location | undefined
32-
/**
33-
* start column.
34-
*/
22+
/** Start column. */
3523
start: number | undefined
36-
/**
37-
* end column.
38-
*/
24+
/** End column. */
3925
end: number | undefined
40-
/**
41-
* [start, end] range
42-
*/
26+
/** [start, end] range */
4327
range: Range | undefined
4428
}
4529

0 commit comments

Comments
 (0)