Skip to content

Commit f1ceade

Browse files
chore: remove unused downlevel-dts (#11034)
* chore: remove unused downlevel-dts * check in lockfile change too * Also remove typesVersions * Apply suggestions from code review Co-authored-by: Arya Emami <[email protected]> * more rimraf and _ts --------- Co-authored-by: Arya Emami <[email protected]>
1 parent 6e03f7c commit f1ceade

File tree

13 files changed

+11
-114
lines changed

13 files changed

+11
-114
lines changed

.gitignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,10 @@ jspm_packages/
7373
.DS_Store
7474
.idea
7575
dist
76-
_ts3.4
77-
_ts4.2
7876
*.tsbuildinfo
7977
.watchmanconfig
8078
.rollup.cache
8179

82-
# the downlevel-dts output folders
83-
_ts3.4
84-
_ts4.2
85-
_ts4.3
86-
8780
# Files copied as part of the build
8881
packages/types/src/generated/**/*.ts
8982

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
"console-fail-test": "^0.5.0",
9494
"cross-fetch": "^4.0.0",
9595
"cspell": "^8.15.2",
96-
"downlevel-dts": ">=0.11.0",
9796
"eslint": "^9.15.0",
9897
"eslint-plugin-eslint-plugin": "^6.3.1",
9998
"eslint-plugin-import": "^2.31.0",

packages/parser/package.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"files": [
66
"dist",
77
"!*.tsbuildinfo",
8-
"_ts4.3",
98
"README.md",
109
"LICENSE"
1110
],
@@ -41,9 +40,8 @@
4140
],
4241
"scripts": {
4342
"build": "tsc -b tsconfig.build.json",
44-
"postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3",
4543
"clean": "tsc -b tsconfig.build.json --clean",
46-
"postclean": "rimraf dist/ _ts4.3/ coverage/",
44+
"postclean": "rimraf dist/ coverage/",
4745
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
4846
"lint": "npx nx lint",
4947
"test": "vitest --run --config=$INIT_CWD/vitest.config.mts",
@@ -62,7 +60,6 @@
6260
},
6361
"devDependencies": {
6462
"@vitest/coverage-v8": "^3.1.1",
65-
"downlevel-dts": "*",
6663
"glob": "*",
6764
"prettier": "^3.2.5",
6865
"rimraf": "*",
@@ -72,12 +69,5 @@
7269
"funding": {
7370
"type": "opencollective",
7471
"url": "https://opencollective.com/typescript-eslint"
75-
},
76-
"typesVersions": {
77-
"<4.7": {
78-
"*": [
79-
"_ts4.3/*"
80-
]
81-
}
8272
}
8373
}

packages/rule-tester/package.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"files": [
66
"dist",
77
"!*.tsbuildinfo",
8-
"_ts4.2",
98
"README.md",
109
"LICENSE"
1110
],
@@ -37,9 +36,8 @@
3736
],
3837
"scripts": {
3938
"build": "tsc -b tsconfig.build.json",
40-
"postbuild": "downlevel-dts dist _ts4.2/dist --to=4.2",
4139
"clean": "tsc -b tsconfig.build.json --clean",
42-
"postclean": "rimraf dist && rimraf _ts3.4 && rimraf coverage",
40+
"postclean": "rimraf dist/ coverage/",
4341
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
4442
"lint": "npx nx lint",
4543
"pretest-eslint-base": "tsc -b tsconfig.build.json",
@@ -79,12 +77,5 @@
7977
},
8078
"publishConfig": {
8179
"access": "public"
82-
},
83-
"typesVersions": {
84-
"<3.8": {
85-
"*": [
86-
"_ts3.4/*"
87-
]
88-
}
8980
}
9081
}

packages/scope-manager/package.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,5 @@
6464
"funding": {
6565
"type": "opencollective",
6666
"url": "https://opencollective.com/typescript-eslint"
67-
},
68-
"typesVersions": {
69-
"<4.7": {
70-
"*": [
71-
"_ts4.3/*"
72-
]
73-
}
7467
}
7568
}

packages/scope-manager/project.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,11 @@
77
"targets": {
88
"build": {
99
"executor": "nx:run-commands",
10-
"outputs": ["{projectRoot}/dist", "{projectRoot}/_ts4.3"],
10+
"outputs": ["{projectRoot}/dist"],
1111
"options": {
1212
"parallel": false,
1313
"cwd": "packages/scope-manager",
14-
"commands": [
15-
"rimraf _ts4.3",
16-
"tsc -b tsconfig.build.json",
17-
"downlevel-dts dist _ts4.3/dist --to=4.3"
18-
]
14+
"commands": ["tsc -b tsconfig.build.json"]
1915
}
2016
},
2117
"clean": {
@@ -26,7 +22,6 @@
2622
"commands": [
2723
"tsc -b tsconfig.build.json --clean",
2824
"rimraf dist",
29-
"rimraf _ts4.3",
3025
"rimraf coverage"
3126
]
3227
}

packages/type-utils/package.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"files": [
66
"dist",
77
"!*.tsbuildinfo",
8-
"_ts4.3",
98
"package.json",
109
"README.md",
1110
"LICENSE"
@@ -38,9 +37,8 @@
3837
],
3938
"scripts": {
4039
"build": "tsc -b tsconfig.build.json",
41-
"postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3",
4240
"clean": "tsc -b tsconfig.build.json --clean",
43-
"postclean": "rimraf dist/ _ts4.3/ coverage/",
41+
"postclean": "rimraf dist/ coverage/",
4442
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
4543
"lint": "npx nx lint",
4644
"test": "vitest --run --config=$INIT_CWD/vitest.config.mts",
@@ -60,7 +58,6 @@
6058
"@typescript-eslint/parser": "8.29.1",
6159
"@vitest/coverage-v8": "^3.1.1",
6260
"ajv": "^6.12.6",
63-
"downlevel-dts": "*",
6461
"prettier": "^3.2.5",
6562
"rimraf": "*",
6663
"typescript": "*",
@@ -69,12 +66,5 @@
6966
"funding": {
7067
"type": "opencollective",
7168
"url": "https://opencollective.com/typescript-eslint"
72-
},
73-
"typesVersions": {
74-
"<4.7": {
75-
"*": [
76-
"_ts4.3/*"
77-
]
78-
}
7969
}
8070
}

packages/types/package.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"files": [
66
"dist",
77
"!*.tsbuildinfo",
8-
"_ts4.3",
98
"package.json",
109
"README.md",
1110
"LICENSE"
@@ -40,9 +39,8 @@
4039
"scripts": {
4140
"copy-ast-spec": "tsx ./tools/copy-ast-spec.mts",
4241
"build": "tsc -b tsconfig.build.json",
43-
"postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3",
4442
"clean": "tsc -b tsconfig.build.json --clean",
45-
"postclean": "rimraf dist && rimraf src/generated && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage",
43+
"postclean": "rimraf dist/ src/generated/ coverage/",
4644
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
4745
"generate-lib": "npx nx run scope-manager:generate-lib",
4846
"lint": "npx nx lint",
@@ -68,7 +66,6 @@
6866
}
6967
},
7068
"devDependencies": {
71-
"downlevel-dts": "*",
7269
"prettier": "^3.2.5",
7370
"rimraf": "*",
7471
"tsx": "*",
@@ -77,12 +74,5 @@
7774
"funding": {
7875
"type": "opencollective",
7976
"url": "https://opencollective.com/typescript-eslint"
80-
},
81-
"typesVersions": {
82-
"<4.7": {
83-
"*": [
84-
"_ts4.3/*"
85-
]
86-
}
8777
}
8878
}

packages/typescript-eslint/package.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"files": [
66
"dist",
77
"!*.tsbuildinfo",
8-
"_ts4.3",
98
"README.md",
109
"LICENSE"
1110
],
@@ -44,9 +43,8 @@
4443
],
4544
"scripts": {
4645
"build": "tsc -b tsconfig.build.json",
47-
"postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3",
4846
"clean": "tsc -b tsconfig.build.json --clean",
49-
"postclean": "rimraf dist/ _ts4.3/ coverage/",
47+
"postclean": "rimraf dist/ coverage/",
5048
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
5149
"lint": "nx lint",
5250
"test": "vitest --run --config=$INIT_CWD/vitest.config.mts",
@@ -63,7 +61,6 @@
6361
},
6462
"devDependencies": {
6563
"@vitest/coverage-v8": "^3.1.1",
66-
"downlevel-dts": "*",
6764
"prettier": "^3.2.5",
6865
"rimraf": "*",
6966
"typescript": "*",
@@ -72,12 +69,5 @@
7269
"funding": {
7370
"type": "opencollective",
7471
"url": "https://opencollective.com/typescript-eslint"
75-
},
76-
"typesVersions": {
77-
"<4.7": {
78-
"*": [
79-
"_ts4.3/*"
80-
]
81-
}
8272
}
8373
}

packages/typescript-estree/package.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"files": [
66
"dist",
77
"!*.tsbuildinfo",
8-
"_ts4.3",
98
"README.md",
109
"LICENSE"
1110
],
@@ -46,9 +45,8 @@
4645
],
4746
"scripts": {
4847
"build": "tsc -b tsconfig.build.json",
49-
"postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3",
5048
"clean": "tsc -b tsconfig.build.json --clean",
51-
"postclean": "rimraf dist && rimraf _ts4.3 && rimraf coverage",
49+
"postclean": "rimraf dist/ coverage/",
5250
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
5351
"lint": "npx nx lint",
5452
"test": "jest --runInBand --verbose",
@@ -79,12 +77,5 @@
7977
"funding": {
8078
"type": "opencollective",
8179
"url": "https://opencollective.com/typescript-eslint"
82-
},
83-
"typesVersions": {
84-
"<4.7": {
85-
"*": [
86-
"_ts4.3/*"
87-
]
88-
}
8980
}
9081
}

packages/utils/package.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"files": [
66
"dist",
77
"!*.tsbuildinfo",
8-
"_ts4.3",
98
"package.json",
109
"README.md",
1110
"LICENSE"
@@ -55,9 +54,8 @@
5554
],
5655
"scripts": {
5756
"build": "tsc -b tsconfig.build.json",
58-
"postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3",
5957
"clean": "tsc -b tsconfig.build.json --clean",
60-
"postclean": "rimraf dist/ _ts4.3/ coverage/",
58+
"postclean": "rimraf dist/ coverage/",
6159
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
6260
"lint": "npx nx lint",
6361
"test": "vitest --run --config=$INIT_CWD/vitest.config.mts",
@@ -84,12 +82,5 @@
8482
"funding": {
8583
"type": "opencollective",
8684
"url": "https://opencollective.com/typescript-eslint"
87-
},
88-
"typesVersions": {
89-
"<4.7": {
90-
"*": [
91-
"_ts4.3/*"
92-
]
93-
}
9485
}
9586
}

packages/visitor-keys/package.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"files": [
66
"dist",
77
"!*.tsbuildinfo",
8-
"_ts4.3",
98
"package.json",
109
"README.md",
1110
"LICENSE"
@@ -39,9 +38,8 @@
3938
],
4039
"scripts": {
4140
"build": "tsc -b tsconfig.build.json",
42-
"postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3",
4341
"clean": "tsc -b tsconfig.build.json --clean",
44-
"postclean": "rimraf dist/ _ts4.3/ coverage/",
42+
"postclean": "rimraf dist/ coverage/",
4543
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
4644
"lint": "npx nx lint",
4745
"test": "vitest --run --config=$INIT_CWD/vitest.config.mts",
@@ -53,7 +51,6 @@
5351
},
5452
"devDependencies": {
5553
"@vitest/coverage-v8": "^3.1.1",
56-
"downlevel-dts": "*",
5754
"prettier": "^3.2.5",
5855
"rimraf": "*",
5956
"typescript": "*",
@@ -62,12 +59,5 @@
6259
"funding": {
6360
"type": "opencollective",
6461
"url": "https://opencollective.com/typescript-eslint"
65-
},
66-
"typesVersions": {
67-
"<4.7": {
68-
"*": [
69-
"_ts4.3/*"
70-
]
71-
}
7262
}
7363
}

0 commit comments

Comments
 (0)