Skip to content

Commit cfc2333

Browse files
chore(ts): Add TS3.8 compile test (#8955)
1 parent 0e23d4d commit cfc2333

File tree

5 files changed

+55
-0
lines changed

5 files changed

+55
-0
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,7 @@ jobs:
793793
'standard-frontend-react',
794794
'standard-frontend-react-tracing-import',
795795
'sveltekit',
796+
'generic-ts3.8',
796797
]
797798
build-command:
798799
- false
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@sentry:registry=http://localhost:4873
2+
@sentry-internal:registry=http://localhost:4873
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
2+
// we need to import the SDK to ensure tsc check the types
3+
import * as _SentryBrowser from '@sentry/browser';
4+
import * as _SentryCore from '@sentry/core';
5+
import * as _SentryHub from '@sentry/hub';
6+
import * as _SentryIntegrations from '@sentry/integrations';
7+
import * as _SentryNode from '@sentry/node';
8+
import * as _SentryOpentelemetry from '@sentry/opentelemetry-node';
9+
import * as _SentryReplay from '@sentry/replay';
10+
import * as _SentryTracing from '@sentry/tracing';
11+
import * as _SentryTypes from '@sentry/types';
12+
import * as _SentryUtils from '@sentry/utils';
13+
import * as _SentryWasm from '@sentry/wasm';
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "@sentry-internal/ts3.8-test",
3+
"private": true,
4+
"license": "MIT",
5+
"scripts": {
6+
"build:types": "pnpm run type-check",
7+
"ts-version": "tsc --version",
8+
"type-check": "tsc --project tsconfig.json",
9+
"test:build": "pnpm install && pnpm run build:types",
10+
"test:assert": "pnpm -v"
11+
},
12+
"devDependencies": {
13+
"typescript": "3.8.3"
14+
},
15+
"dependencies": {
16+
"@sentry/browser": "latest || *",
17+
"@sentry/core": "latest || *",
18+
"@sentry/hub": "latest || *",
19+
"@sentry/integrations": "latest || *",
20+
"@sentry/node": "latest || *",
21+
"@sentry/opentelemetry-node": "latest || *",
22+
"@sentry/replay": "latest || *",
23+
"@sentry/tracing": "latest || *",
24+
"@sentry/types": "latest || *",
25+
"@sentry/utils": "latest || *",
26+
"@sentry/wasm": "latest || *"
27+
}
28+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"include": ["index.ts"],
3+
"compilerOptions": {
4+
"lib": ["es6", "DOM"],
5+
"skipLibCheck": false,
6+
"noEmit": true,
7+
"types": [],
8+
"target": "es6",
9+
"moduleResolution": "node"
10+
}
11+
}

0 commit comments

Comments
 (0)