Skip to content

Commit 2308582

Browse files
committed
dev: remove downlevel
1 parent b6f37d1 commit 2308582

File tree

42 files changed

+49
-346
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+49
-346
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@
111111
"@typescript/native-preview": "^7.0.0-dev.20251210.1",
112112
"@vitest/coverage-v8": "^3.2.4",
113113
"deepmerge": "^4.2.2",
114-
"downlevel-dts": "~0.11.0",
115114
"es-check": "^7.2.1",
116115
"eslint": "8.57.0",
117116
"jsdom": "^21.1.2",

packages/aws-serverless/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,6 @@
5454
}
5555
}
5656
},
57-
"typesVersions": {
58-
"<5.0": {
59-
"build/npm/esm/index.d.ts": [
60-
"build/npm/types-ts3.8/index.d.ts"
61-
]
62-
}
63-
},
6457
"publishConfig": {
6558
"access": "public"
6659
},
@@ -83,7 +76,7 @@
8376
"build:layer": "rimraf build/aws && rolldown -c rollup.lambda-extension.config.mjs && yarn ts-node scripts/buildLambdaLayer.ts",
8477
"build:dev": "run-s build:transpile build:types",
8578
"build:transpile": "rolldown -c rollup.npm.config.mjs && yarn build:layer",
86-
"build:types": "yarn downlevel-dts build/npm/esm build/npm/types-ts3.8 --to ts3.8",
79+
"build:types": "echo \"Types included with build\"",
8780
"build:watch": "run-p build:transpile:watch build:types:watch",
8881
"build:dev:watch": "yarn build:watch",
8982
"build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch",

packages/browser-utils/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@
2828
}
2929
}
3030
},
31-
"typesVersions": {
32-
"<5.0": {
33-
"build/esm/index.d.ts": [
34-
"build/types-ts3.8/index.d.ts"
35-
]
36-
}
37-
},
3831
"publishConfig": {
3932
"access": "public"
4033
},
@@ -45,7 +38,7 @@
4538
"build": "run-s build:transpile build:types",
4639
"build:dev": "yarn build",
4740
"build:transpile": "rolldown -c rollup.npm.config.mjs",
48-
"build:types": "yarn downlevel-dts build/esm build/types-ts3.8 --to ts3.8",
41+
"build:types": "echo \"Types included with build\"",
4942
"build:watch": "run-p build:transpile:watch build:types:watch",
5043
"build:dev:watch": "run-p build:transpile:watch build:types:watch",
5144
"build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch",

packages/browser/package.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
],
1515
"main": "build/npm/cjs/prod/index.js",
1616
"module": "build/npm/esm/prod/index.js",
17-
"types": "build/npm/esm/index.d.ts",
17+
"types": "build/npm/esm/prod/index.d.ts",
1818
"exports": {
1919
"./package.json": "./package.json",
2020
".": {
21-
"types": "./build/npm/esm/index.d.ts",
21+
"types": "./build/npm/esm/prod/index.d.ts",
2222
"development": {
2323
"import": "./build/npm/esm/dev/index.js",
2424
"require": "./build/npm/cjs/dev/index.js"
@@ -33,13 +33,6 @@
3333
}
3434
}
3535
},
36-
"typesVersions": {
37-
"<5.0": {
38-
"build/npm/esm/index.d.ts": [
39-
"build/npm/types-ts3.8/index.d.ts"
40-
]
41-
}
42-
},
4336
"publishConfig": {
4437
"access": "public"
4538
},
@@ -59,7 +52,7 @@
5952
"build:dev": "run-s build:transpile build:types",
6053
"build:bundle": "rolldown -c rollup.bundle.config.mjs",
6154
"build:transpile": "rolldown -c rollup.npm.config.mjs",
62-
"build:types": "yarn downlevel-dts build/npm/esm build/npm/types-ts3.8 --to ts3.8",
55+
"build:types": "echo \"Types included with build\"",
6356
"build:watch": "run-p build:transpile:watch build:bundle:watch build:types:watch",
6457
"build:dev:watch": "run-p build:transpile:watch build:types:watch",
6558
"build:bundle:watch": "rolldown -c rollup.bundle.config.mjs --watch",

packages/bun/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@
2828
}
2929
}
3030
},
31-
"typesVersions": {
32-
"<5.0": {
33-
"build/esm/index.d.ts": [
34-
"build/types-ts3.8/index.d.ts"
35-
]
36-
}
37-
},
3831
"publishConfig": {
3932
"access": "public"
4033
},
@@ -49,7 +42,7 @@
4942
"build": "run-s build:transpile build:types",
5043
"build:dev": "yarn build",
5144
"build:transpile": "rolldown -c rollup.npm.config.mjs",
52-
"build:types": "yarn downlevel-dts build/esm build/types-ts3.8 --to ts3.8",
45+
"build:types": "echo \"Types included with build\"",
5346
"build:watch": "run-p build:transpile:watch build:types:watch",
5447
"build:dev:watch": "yarn build:watch",
5548
"build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch",

packages/cloudflare/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@
3838
}
3939
}
4040
},
41-
"typesVersions": {
42-
"<5.0": {
43-
"build/esm/index.d.ts": [
44-
"build/types-ts3.8/index.d.ts"
45-
]
46-
}
47-
},
4841
"publishConfig": {
4942
"access": "public"
5043
},
@@ -69,7 +62,7 @@
6962
"build": "run-s build:transpile build:types",
7063
"build:dev": "yarn build",
7164
"build:transpile": "rolldown -c rollup.npm.config.mjs",
72-
"build:types": "yarn downlevel-dts build/esm build/types-ts3.8 --to ts3.8",
65+
"build:types": "echo \"Types included with build\"",
7366
"build:watch": "run-p build:transpile:watch build:types:watch",
7467
"build:dev:watch": "yarn build:watch",
7568
"build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch",

packages/core/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,14 @@
2828
}
2929
}
3030
},
31-
"typesVersions": {
32-
"<5.0": {
33-
"build/esm/index.d.ts": [
34-
"build/types-ts3.8/index.d.ts"
35-
]
36-
}
37-
},
3831
"publishConfig": {
3932
"access": "public"
4033
},
4134
"scripts": {
4235
"build": "run-s build:transpile build:types",
4336
"build:dev": "yarn build",
4437
"build:transpile": "rolldown -c rollup.npm.config.mjs",
45-
"build:types": "yarn downlevel-dts build/esm build/types-ts3.8 --to ts3.8",
38+
"build:types": "echo \"Types included with build\"",
4639
"build:watch": "run-p build:transpile:watch build:types:watch",
4740
"build:dev:watch": "yarn build:watch",
4841
"build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch",

packages/feedback/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@
2828
}
2929
}
3030
},
31-
"typesVersions": {
32-
"<5.0": {
33-
"build/npm/esm/index.d.ts": [
34-
"build/npm/types-ts3.8/index.d.ts"
35-
]
36-
}
37-
},
3831
"publishConfig": {
3932
"access": "public"
4033
},
@@ -49,7 +42,7 @@
4942
"build:transpile": "rolldown -c rollup.npm.config.mjs",
5043
"build:bundle": "rolldown -c rollup.bundle.config.mjs",
5144
"build:dev": "run-s build:transpile build:types",
52-
"build:types": "yarn downlevel-dts build/npm/esm build/npm/types-ts3.8 --to ts3.8 && yarn node ./scripts/shim-preact-export.js",
45+
"build:types": "yarn node ./scripts/shim-preact-export.js",
5346
"build:watch": "run-p build:transpile:watch build:bundle:watch build:types:watch",
5447
"build:dev:watch": "run-p build:transpile:watch build:types:watch",
5548
"build:transpile:watch": "yarn build:transpile --watch",

packages/feedback/scripts/shim-preact-export.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// preact does not support more modern TypeScript versions, which breaks our users that depend on older
22
// TypeScript versions. To fix this, we shim the types from preact to be any and remove the dependency on preact
3-
// for types directly. This script is meant to be run after the build/npm/types-ts3.8 directory is created.
3+
// for types directly. This script is meant to be run after the build/npm/esm directory is created (where rolldown dts generates types).
44

5-
// Path: build/npm/types-ts3.8/global.d.ts
5+
// Path: build/npm/esm/global.d.ts
66

77
const fs = require('fs');
88
const path = require('path');
@@ -67,8 +67,8 @@ function walk(dir) {
6767
}
6868

6969
function run() {
70-
// recurse through build/npm/types-ts3.8 directory
71-
const dir = path.join('build', 'npm', 'types-ts3.8');
70+
// recurse through build/npm/esm directory (where rolldown dts generates types)
71+
const dir = path.join('build', 'npm', 'esm');
7272
walk(dir);
7373
}
7474

packages/gatsby/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@
3434
}
3535
}
3636
},
37-
"typesVersions": {
38-
"<5.0": {
39-
"build/esm/index.d.ts": [
40-
"build/types-ts3.8/index.d.ts"
41-
]
42-
}
43-
},
4437
"publishConfig": {
4538
"access": "public"
4639
},
@@ -65,7 +58,7 @@
6558
"build:plugin": "tsc -p tsconfig.plugin.json",
6659
"build:transpile": "run-p build:rollup build:plugin",
6760
"build:rollup": "rolldown -c rollup.npm.config.mjs",
68-
"build:types": "yarn downlevel-dts build/esm build/types-ts3.8 --to ts3.8",
61+
"build:types": "echo \"Types included with build\"",
6962
"build:watch": "run-p build:transpile:watch build:types:watch",
7063
"build:dev:watch": "yarn build:watch",
7164
"build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch",

0 commit comments

Comments
 (0)