Skip to content

Commit

Permalink
Add test project to compile with ts 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich committed Sep 6, 2023
1 parent d721e2a commit b92cd62
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"packages/sveltekit",
"packages/tracing",
"packages/tracing-internal",
"packages/ts3.8-test",
"packages/types",
"packages/typescript",
"packages/utils",
Expand Down
13 changes: 13 additions & 0 deletions packages/ts3.8-test/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
// we need to import the SDK to ensure tsc check the types
import * as _SentryBrowser from '@sentry/browser';
import * as _SentryCore from '@sentry/core';
import * as _SentryHub from '@sentry/hub';
import * as _SentryIntegrations from '@sentry/integrations';
import * as _SentryNode from '@sentry/node';
import * as _SentryOpentelemetry from '@sentry/opentelemetry-node';
import * as _SentryReplay from '@sentry/replay';
import * as _SentryTracing from '@sentry/tracing';
import * as _SentryTypes from '@sentry/types';
import * as _SentryUtils from '@sentry/utils';
import * as _SentryWasm from '@sentry/wasm';
27 changes: 27 additions & 0 deletions packages/ts3.8-test/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "@sentry-internal/ts3.8-test",
"version": "7.67.0",
"private": true,
"license": "MIT",
"scripts": {
"build:types": "run-s ts-version type-check",
"ts-version": "tsc --version",
"type-check": "tsc --project tsconfig.json"
},
"devDependencies": {
"typescript": "3.8.3"
},
"dependencies": {
"@sentry/browser": "7.67.0",
"@sentry/core": "7.67.0",
"@sentry/hub": "7.67.0",
"@sentry/integrations": "7.67.0",
"@sentry/node": "7.67.0",
"@sentry/opentelemetry-node": "7.67.0",
"@sentry/replay": "7.67.0",
"@sentry/tracing": "7.67.0",
"@sentry/types": "7.67.0",
"@sentry/utils": "7.67.0",
"@sentry/wasm": "7.67.0"
}
}
13 changes: 13 additions & 0 deletions packages/ts3.8-test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"include": [
"index.ts",
],
"compilerOptions": {
"skipLibCheck": false,
"noEmit": true,
"types": [],
"jsx": "react",
"target": "es6",
"moduleResolution": "node",
},
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -27298,6 +27298,11 @@ typescript-memoize@^1.0.0-alpha.3, typescript-memoize@^1.0.1:
resolved "https://registry.yarnpkg.com/typescript-memoize/-/typescript-memoize-1.0.1.tgz#0a8199aa28f6fe18517f6e9308ef7bfbe9a98d59"
integrity sha512-oJNge1qUrOK37d5Y6Ly2txKeuelYVsFtNF6U9kXIN7juudcQaHJQg2MxLOy0CqtkW65rVDYuTCOjnSIVPd8z3w==

typescript@3.8.3:
version "3.8.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061"
integrity sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==

typescript@4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.2.tgz#7ea7c88777c723c681e33bf7988be5d008d05ac2"
Expand Down

0 comments on commit b92cd62

Please sign in to comment.