Skip to content

Commit b92cd62

Browse files
Add test project to compile with ts 3.8
1 parent d721e2a commit b92cd62

File tree

5 files changed

+59
-0
lines changed

5 files changed

+59
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"packages/sveltekit",
6666
"packages/tracing",
6767
"packages/tracing-internal",
68+
"packages/ts3.8-test",
6869
"packages/types",
6970
"packages/typescript",
7071
"packages/utils",

packages/ts3.8-test/index.ts

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';

packages/ts3.8-test/package.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "@sentry-internal/ts3.8-test",
3+
"version": "7.67.0",
4+
"private": true,
5+
"license": "MIT",
6+
"scripts": {
7+
"build:types": "run-s ts-version type-check",
8+
"ts-version": "tsc --version",
9+
"type-check": "tsc --project tsconfig.json"
10+
},
11+
"devDependencies": {
12+
"typescript": "3.8.3"
13+
},
14+
"dependencies": {
15+
"@sentry/browser": "7.67.0",
16+
"@sentry/core": "7.67.0",
17+
"@sentry/hub": "7.67.0",
18+
"@sentry/integrations": "7.67.0",
19+
"@sentry/node": "7.67.0",
20+
"@sentry/opentelemetry-node": "7.67.0",
21+
"@sentry/replay": "7.67.0",
22+
"@sentry/tracing": "7.67.0",
23+
"@sentry/types": "7.67.0",
24+
"@sentry/utils": "7.67.0",
25+
"@sentry/wasm": "7.67.0"
26+
}
27+
}

packages/ts3.8-test/tsconfig.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"include": [
3+
"index.ts",
4+
],
5+
"compilerOptions": {
6+
"skipLibCheck": false,
7+
"noEmit": true,
8+
"types": [],
9+
"jsx": "react",
10+
"target": "es6",
11+
"moduleResolution": "node",
12+
},
13+
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27298,6 +27298,11 @@ typescript-memoize@^1.0.0-alpha.3, typescript-memoize@^1.0.1:
2729827298
resolved "https://registry.yarnpkg.com/typescript-memoize/-/typescript-memoize-1.0.1.tgz#0a8199aa28f6fe18517f6e9308ef7bfbe9a98d59"
2729927299
integrity sha512-oJNge1qUrOK37d5Y6Ly2txKeuelYVsFtNF6U9kXIN7juudcQaHJQg2MxLOy0CqtkW65rVDYuTCOjnSIVPd8z3w==
2730027300

27301+
27302+
version "3.8.3"
27303+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061"
27304+
integrity sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==
27305+
2730127306
2730227307
version "4.0.2"
2730327308
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.2.tgz#7ea7c88777c723c681e33bf7988be5d008d05ac2"

0 commit comments

Comments
 (0)