Skip to content

Commit 1ce65ac

Browse files
committed
chore: update type gen scripts
1 parent bb46785 commit 1ce65ac

File tree

36 files changed

+166
-262
lines changed

36 files changed

+166
-262
lines changed

packages/astro/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323
"main": "build/cjs/index.client.js",
2424
"module": "build/esm/index.server.js",
2525
"browser": "build/esm/index.client.js",
26-
"types": "build/types/index.types.d.ts",
26+
"types": "build/esm/index.types.d.ts",
2727
"exports": {
2828
".": {
29-
"types": "./build/types/index.types.d.ts",
29+
"types": "./build/esm/index.types.d.ts",
3030
"node": "./build/esm/index.server.js",
3131
"browser": "./build/esm/index.client.js",
3232
"import": "./build/esm/index.client.js",
3333
"require": "./build/cjs/index.server.js"
3434
},
3535
"./middleware": {
36-
"types": "./build/types/integration/middleware/index.types.d.ts",
36+
"types": "./build/esm/integration/middleware/index.types.d.ts",
3737
"node": "./build/esm/integration/middleware/index.js",
3838
"import": "./build/esm/integration/middleware/index.js",
3939
"require": "./build/cjs/integration/middleware/index.js"
@@ -69,11 +69,10 @@
6969
"build": "run-p build:transpile build:types",
7070
"build:dev": "yarn build",
7171
"build:transpile": "rolldown -c rollup.npm.config.mjs",
72-
"build:types": "tsc -p tsconfig.types.json",
72+
"build:types": "echo \"Types included with build\"",
7373
"build:watch": "run-p build:transpile:watch build:types:watch",
7474
"build:dev:watch": "yarn build:watch",
7575
"build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch",
76-
"build:types:watch": "tsc -p tsconfig.types.json --watch",
7776
"build:tarball": "npm pack",
7877
"circularDepCheck": "madge --circular src/index.client.ts && madge --circular src/index.server.ts && madge --circular src/index.types.ts",
7978
"clean": "rimraf build coverage sentry-astro-*.tgz",

packages/aws-serverless/package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
],
1717
"main": "build/npm/cjs/index.js",
1818
"module": "build/npm/esm/index.js",
19-
"types": "build/npm/types/index.d.ts",
19+
"types": "build/npm/esm/index.d.ts",
2020
"exports": {
2121
"./package.json": "./package.json",
2222
".": {
2323
"import": {
24-
"types": "./build/npm/types/index.d.ts",
24+
"types": "./build/npm/esm/index.d.ts",
2525
"default": "./build/npm/esm/index.js"
2626
},
2727
"require": {
28-
"types": "./build/npm/types/index.d.ts",
28+
"types": "./build/npm/esm/index.d.ts",
2929
"default": "./build/npm/cjs/index.js"
3030
}
3131
},
@@ -56,7 +56,7 @@
5656
},
5757
"typesVersions": {
5858
"<5.0": {
59-
"build/npm/types/index.d.ts": [
59+
"build/npm/esm/index.d.ts": [
6060
"build/npm/types-ts3.8/index.d.ts"
6161
]
6262
}
@@ -83,13 +83,10 @@
8383
"build:layer": "rimraf build/aws && rolldown -c rollup.lambda-extension.config.mjs && yarn ts-node scripts/buildLambdaLayer.ts",
8484
"build:dev": "run-p build:transpile build:types",
8585
"build:transpile": "rolldown -c rollup.npm.config.mjs && yarn build:layer",
86-
"build:types": "run-s build:types:core build:types:downlevel",
87-
"build:types:core": "tsc -p tsconfig.types.json",
88-
"build:types:downlevel": "yarn downlevel-dts build/npm/types build/npm/types-ts3.8 --to ts3.8",
86+
"build:types": "yarn downlevel-dts build/npm/esm build/npm/types-ts3.8 --to ts3.8",
8987
"build:watch": "run-p build:transpile:watch build:types:watch",
9088
"build:dev:watch": "yarn build:watch",
9189
"build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch",
92-
"build:types:watch": "tsc -p tsconfig.types.json --watch",
9390
"build:tarball": "npm pack",
9491
"circularDepCheck": "madge --circular src/index.ts",
9592
"clean": "rimraf build dist-awslambda-layer coverage sentry-serverless-*.tgz",

packages/browser-utils/package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@
1414
],
1515
"main": "build/cjs/index.js",
1616
"module": "build/esm/index.js",
17-
"types": "build/types/index.d.ts",
17+
"types": "build/esm/index.d.ts",
1818
"exports": {
1919
"./package.json": "./package.json",
2020
".": {
2121
"import": {
22-
"types": "./build/types/index.d.ts",
22+
"types": "./build/esm/index.d.ts",
2323
"default": "./build/esm/index.js"
2424
},
2525
"require": {
26-
"types": "./build/types/index.d.ts",
26+
"types": "./build/esm/index.d.ts",
2727
"default": "./build/cjs/index.js"
2828
}
2929
}
3030
},
3131
"typesVersions": {
3232
"<5.0": {
33-
"build/types/index.d.ts": [
33+
"build/esm/index.d.ts": [
3434
"build/types-ts3.8/index.d.ts"
3535
]
3636
}
@@ -45,13 +45,10 @@
4545
"build": "run-p build:transpile build:types",
4646
"build:dev": "yarn build",
4747
"build:transpile": "rolldown -c rollup.npm.config.mjs",
48-
"build:types": "run-s build:types:core build:types:downlevel",
49-
"build:types:core": "tsc -p tsconfig.types.json",
50-
"build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8",
48+
"build:types": "yarn downlevel-dts build/esm build/types-ts3.8 --to ts3.8",
5149
"build:watch": "run-p build:transpile:watch build:types:watch",
5250
"build:dev:watch": "run-p build:transpile:watch build:types:watch",
5351
"build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch",
54-
"build:types:watch": "tsc -p tsconfig.types.json --watch",
5552
"build:tarball": "npm pack",
5653
"clean": "rimraf build coverage sentry-internal-browser-utils-*.tgz",
5754
"fix": "eslint . --format stylish --fix",

packages/browser/package.json

Lines changed: 4 additions & 7 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/types/index.d.ts",
17+
"types": "build/npm/esm/index.d.ts",
1818
"exports": {
1919
"./package.json": "./package.json",
2020
".": {
21-
"types": "./build/npm/types/index.d.ts",
21+
"types": "./build/npm/esm/index.d.ts",
2222
"development": {
2323
"import": "./build/npm/esm/dev/index.js",
2424
"require": "./build/npm/cjs/dev/index.js"
@@ -35,7 +35,7 @@
3535
},
3636
"typesVersions": {
3737
"<5.0": {
38-
"build/npm/types/index.d.ts": [
38+
"build/npm/esm/index.d.ts": [
3939
"build/npm/types-ts3.8/index.d.ts"
4040
]
4141
}
@@ -59,14 +59,11 @@
5959
"build:dev": "run-p build:transpile build:types",
6060
"build:bundle": "rolldown -c rollup.bundle.config.mjs",
6161
"build:transpile": "rolldown -c rollup.npm.config.mjs",
62-
"build:types": "run-s build:types:core build:types:downlevel",
63-
"build:types:core": "tsc -p tsconfig.types.json",
64-
"build:types:downlevel": "yarn downlevel-dts build/npm/types build/npm/types-ts3.8 --to ts3.8",
62+
"build:types": "yarn downlevel-dts build/npm/esm build/npm/types-ts3.8 --to ts3.8",
6563
"build:watch": "run-p build:transpile:watch build:bundle:watch build:types:watch",
6664
"build:dev:watch": "run-p build:transpile:watch build:types:watch",
6765
"build:bundle:watch": "rolldown -c rollup.bundle.config.mjs --watch",
6866
"build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch",
69-
"build:types:watch": "tsc -p tsconfig.types.json --watch",
7067
"build:tarball": "npm pack",
7168
"circularDepCheck": "madge --circular src/index.ts",
7269
"clean": "rimraf build coverage .rpt2_cache sentry-browser-*.tgz",

packages/bun/package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919
"./package.json": "./package.json",
2020
".": {
2121
"import": {
22-
"types": "./build/types/index.d.ts",
22+
"types": "./build/esm/index.d.ts",
2323
"default": "./build/esm/index.js"
2424
},
2525
"require": {
26-
"types": "./build/types/index.d.ts",
26+
"types": "./build/esm/index.d.ts",
2727
"default": "./build/cjs/index.js"
2828
}
2929
}
3030
},
3131
"typesVersions": {
3232
"<5.0": {
33-
"build/types/index.d.ts": [
33+
"build/esm/index.d.ts": [
3434
"build/types-ts3.8/index.d.ts"
3535
]
3636
}
@@ -49,13 +49,10 @@
4949
"build": "run-p build:transpile build:types",
5050
"build:dev": "yarn build",
5151
"build:transpile": "rolldown -c rollup.npm.config.mjs",
52-
"build:types": "run-s build:types:core build:types:downlevel",
53-
"build:types:core": "tsc -p tsconfig.types.json",
54-
"build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8",
52+
"build:types": "yarn downlevel-dts build/esm build/types-ts3.8 --to ts3.8",
5553
"build:watch": "run-p build:transpile:watch build:types:watch",
5654
"build:dev:watch": "yarn build:watch",
5755
"build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch",
58-
"build:types:watch": "tsc -p tsconfig.types.json --watch",
5956
"build:tarball": "npm pack",
6057
"circularDepCheck": "madge --circular src/index.ts",
6158
"clean": "rimraf build coverage sentry-bun-*.tgz",

packages/cloudflare/package.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,28 @@
1919
"./package.json": "./package.json",
2020
".": {
2121
"import": {
22-
"types": "./build/types/index.d.ts",
22+
"types": "./build/esm/index.d.ts",
2323
"default": "./build/esm/index.js"
2424
},
2525
"require": {
26-
"types": "./build/types/index.d.ts",
26+
"types": "./build/esm/index.d.ts",
2727
"default": "./build/cjs/index.js"
2828
}
2929
},
3030
"./request": {
3131
"import": {
32-
"types": "./build/types/request.d.ts",
32+
"types": "./build/esm/request.d.ts",
3333
"default": "./build/esm/request.js"
3434
},
3535
"require": {
36-
"types": "./build/types/request.d.ts",
36+
"types": "./build/esm/request.d.ts",
3737
"default": "./build/cjs/request.js"
3838
}
3939
}
4040
},
4141
"typesVersions": {
4242
"<5.0": {
43-
"build/types/index.d.ts": [
43+
"build/esm/index.d.ts": [
4444
"build/types-ts3.8/index.d.ts"
4545
]
4646
}
@@ -69,13 +69,10 @@
6969
"build": "run-p build:transpile build:types",
7070
"build:dev": "yarn build",
7171
"build:transpile": "rolldown -c rollup.npm.config.mjs",
72-
"build:types": "run-s build:types:core build:types:downlevel",
73-
"build:types:core": "tsc -p tsconfig.types.json",
74-
"build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8",
72+
"build:types": "yarn downlevel-dts build/esm build/types-ts3.8 --to ts3.8",
7573
"build:watch": "run-p build:transpile:watch build:types:watch",
7674
"build:dev:watch": "yarn build:watch",
7775
"build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch",
78-
"build:types:watch": "tsc -p tsconfig.types.json --watch",
7976
"build:tarball": "npm pack",
8077
"circularDepCheck": "madge --circular src/index.ts",
8178
"clean": "rimraf build coverage sentry-cloudflare-*.tgz",

packages/core/package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@
1414
],
1515
"main": "build/cjs/index.js",
1616
"module": "build/esm/index.js",
17-
"types": "build/types/index.d.ts",
17+
"types": "build/esm/index.d.ts",
1818
"exports": {
1919
"./package.json": "./package.json",
2020
".": {
2121
"import": {
22-
"types": "./build/types/index.d.ts",
22+
"types": "./build/esm/index.d.ts",
2323
"default": "./build/esm/index.js"
2424
},
2525
"require": {
26-
"types": "./build/types/index.d.ts",
26+
"types": "./build/esm/index.d.ts",
2727
"default": "./build/cjs/index.js"
2828
}
2929
}
3030
},
3131
"typesVersions": {
3232
"<5.0": {
33-
"build/types/index.d.ts": [
33+
"build/esm/index.d.ts": [
3434
"build/types-ts3.8/index.d.ts"
3535
]
3636
}
@@ -42,13 +42,10 @@
4242
"build": "run-p build:transpile build:types",
4343
"build:dev": "yarn build",
4444
"build:transpile": "rolldown -c rollup.npm.config.mjs",
45-
"build:types": "run-s build:types:core build:types:downlevel",
46-
"build:types:core": "tsc -p tsconfig.types.json",
47-
"build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8",
45+
"build:types": "yarn downlevel-dts build/esm build/types-ts3.8 --to ts3.8",
4846
"build:watch": "run-p build:transpile:watch build:types:watch",
4947
"build:dev:watch": "yarn build:watch",
5048
"build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch",
51-
"build:types:watch": "tsc -p tsconfig.types.json --watch",
5249
"build:tarball": "npm pack",
5350
"circularDepCheck": "madge --circular src/index.ts",
5451
"clean": "rimraf build coverage sentry-core-*.tgz",

packages/deno/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"author": "Sentry",
88
"license": "MIT",
99
"module": "build/index.mjs",
10-
"types": "build/index.d.ts",
10+
"types": "build/esm/index.d.ts",
1111
"exports": {
1212
"./package.json": "./package.json",
1313
".": {
@@ -32,7 +32,7 @@
3232
"build": "run-s build:transpile build:types",
3333
"build:dev": "yarn build",
3434
"build:transpile": "yarn deno-types && rolldown -c rollup.npm.config.mjs",
35-
"build:types": "tsc -p tsconfig.types.json",
35+
"build:types": "echo \"Types included with build\"",
3636
"build:tarball": "npm pack",
3737
"circularDepCheck": "madge --circular src/index.ts",
3838
"clean": "rimraf build build-types build-test coverage node_modules/.deno sentry-deno-*.tgz",

packages/feedback/package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@
1414
],
1515
"main": "build/npm/cjs/index.js",
1616
"module": "build/npm/esm/index.js",
17-
"types": "build/npm/types/index.d.ts",
17+
"types": "build/npm/esm/index.d.ts",
1818
"exports": {
1919
"./package.json": "./package.json",
2020
".": {
2121
"import": {
22-
"types": "./build/npm/types/index.d.ts",
22+
"types": "./build/npm/esm/index.d.ts",
2323
"default": "./build/npm/esm/index.js"
2424
},
2525
"require": {
26-
"types": "./build/npm/types/index.d.ts",
26+
"types": "./build/npm/esm/index.d.ts",
2727
"default": "./build/npm/cjs/index.js"
2828
}
2929
}
3030
},
3131
"typesVersions": {
3232
"<5.0": {
33-
"build/npm/types/index.d.ts": [
33+
"build/npm/esm/index.d.ts": [
3434
"build/npm/types-ts3.8/index.d.ts"
3535
]
3636
}
@@ -49,14 +49,11 @@
4949
"build:transpile": "rolldown -c rollup.npm.config.mjs",
5050
"build:bundle": "rolldown -c rollup.bundle.config.mjs",
5151
"build:dev": "run-p build:transpile build:types",
52-
"build:types": "run-s build:types:core build:types:downlevel",
53-
"build:types:core": "tsc -p tsconfig.types.json",
54-
"build:types:downlevel": "yarn downlevel-dts build/npm/types build/npm/types-ts3.8 --to ts3.8 && yarn node ./scripts/shim-preact-export.js",
52+
"build:types": "yarn downlevel-dts build/npm/esm build/npm/types-ts3.8 --to ts3.8 && yarn node ./scripts/shim-preact-export.js",
5553
"build:watch": "run-p build:transpile:watch build:bundle:watch build:types:watch",
5654
"build:dev:watch": "run-p build:transpile:watch build:types:watch",
5755
"build:transpile:watch": "yarn build:transpile --watch",
5856
"build:bundle:watch": "yarn build:bundle --watch",
59-
"build:types:watch": "tsc -p tsconfig.types.json --watch",
6057
"build:tarball": "npm pack",
6158
"circularDepCheck": "madge --circular src/index.ts",
6259
"clean": "rimraf build sentry-internal-feedback-*.tgz",

packages/gatsby/package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,23 @@
2020
],
2121
"main": "build/cjs/index.js",
2222
"module": "build/esm/index.js",
23-
"types": "build/types/index.d.ts",
23+
"types": "build/esm/index.d.ts",
2424
"exports": {
2525
"./package.json": "./package.json",
2626
".": {
2727
"import": {
28-
"types": "./build/types/index.d.ts",
28+
"types": "./build/esm/index.d.ts",
2929
"default": "./build/esm/index.js"
3030
},
3131
"require": {
32-
"types": "./build/types/index.d.ts",
32+
"types": "./build/esm/index.d.ts",
3333
"default": "./build/cjs/index.js"
3434
}
3535
}
3636
},
3737
"typesVersions": {
3838
"<5.0": {
39-
"build/types/index.d.ts": [
39+
"build/esm/index.d.ts": [
4040
"build/types-ts3.8/index.d.ts"
4141
]
4242
}
@@ -65,13 +65,10 @@
6565
"build:plugin": "tsc -p tsconfig.plugin.json",
6666
"build:transpile": "run-p build:rollup build:plugin",
6767
"build:rollup": "rolldown -c rollup.npm.config.mjs",
68-
"build:types": "run-s build:types:core build:types:downlevel",
69-
"build:types:core": "tsc -p tsconfig.types.json",
70-
"build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8",
68+
"build:types": "yarn downlevel-dts build/esm build/types-ts3.8 --to ts3.8",
7169
"build:watch": "run-p build:transpile:watch build:types:watch",
7270
"build:dev:watch": "yarn build:watch",
7371
"build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch",
74-
"build:types:watch": "tsc -p tsconfig.types.json --watch",
7572
"build:tarball": "npm pack",
7673
"circularDepCheck": "madge --circular src/index.ts",
7774
"clean": "rimraf build coverage *.d.ts sentry-gatsby-*.tgz",

0 commit comments

Comments
 (0)