diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 68ecae92b8bd..d6f67986528e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -792,6 +792,7 @@ jobs: 'standard-frontend-react', 'standard-frontend-react-tracing-import', 'sveltekit', + 'generic-ts3.8', ] build-command: - false diff --git a/packages/e2e-tests/test-applications/generic-ts3.8/.npmrc b/packages/e2e-tests/test-applications/generic-ts3.8/.npmrc new file mode 100644 index 000000000000..c6b3ef9b3eaa --- /dev/null +++ b/packages/e2e-tests/test-applications/generic-ts3.8/.npmrc @@ -0,0 +1,2 @@ +@sentry:registry=http://localhost:4873 +@sentry-internal:registry=http://localhost:4873 diff --git a/packages/e2e-tests/test-applications/generic-ts3.8/index.ts b/packages/e2e-tests/test-applications/generic-ts3.8/index.ts new file mode 100644 index 000000000000..823bd62fe09c --- /dev/null +++ b/packages/e2e-tests/test-applications/generic-ts3.8/index.ts @@ -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'; diff --git a/packages/e2e-tests/test-applications/generic-ts3.8/package.json b/packages/e2e-tests/test-applications/generic-ts3.8/package.json new file mode 100644 index 000000000000..dd4a2b22544d --- /dev/null +++ b/packages/e2e-tests/test-applications/generic-ts3.8/package.json @@ -0,0 +1,28 @@ +{ + "name": "@sentry-internal/ts3.8-test", + "private": true, + "license": "MIT", + "scripts": { + "build:types": "pnpm run type-check", + "ts-version": "tsc --version", + "type-check": "tsc --project tsconfig.json", + "test:build": "pnpm install && pnpm run build:types", + "test:assert": "pnpm -v" + }, + "devDependencies": { + "typescript": "3.8.3" + }, + "dependencies": { + "@sentry/browser": "latest || *", + "@sentry/core": "latest || *", + "@sentry/hub": "latest || *", + "@sentry/integrations": "latest || *", + "@sentry/node": "latest || *", + "@sentry/opentelemetry-node": "latest || *", + "@sentry/replay": "latest || *", + "@sentry/tracing": "latest || *", + "@sentry/types": "latest || *", + "@sentry/utils": "latest || *", + "@sentry/wasm": "latest || *" + } +} diff --git a/packages/e2e-tests/test-applications/generic-ts3.8/tsconfig.json b/packages/e2e-tests/test-applications/generic-ts3.8/tsconfig.json new file mode 100644 index 000000000000..932aa58e0c9a --- /dev/null +++ b/packages/e2e-tests/test-applications/generic-ts3.8/tsconfig.json @@ -0,0 +1,11 @@ +{ + "include": ["index.ts"], + "compilerOptions": { + "lib": ["es6", "DOM"], + "skipLibCheck": false, + "noEmit": true, + "types": [], + "target": "es6", + "moduleResolution": "node" + } +}