Skip to content

chore(ts): Add TS3.8 compile test #8955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
28d6f85
fix(ts): Publish downleveled TS3.8 types, fix types path
krystofwoldrich Sep 6, 2023
d721e2a
Fix gatsby npmignore
krystofwoldrich Sep 6, 2023
b92cd62
Add test project to compile with ts 3.8
krystofwoldrich Sep 6, 2023
ea7819d
Revert "Add test project to compile with ts 3.8"
krystofwoldrich Sep 6, 2023
b15d461
Merge branch 'develop' into kw-fix-downleveled-types
krystofwoldrich Sep 6, 2023
9791d1a
Merge commit 'b15d461e9ac57de6776536e497253c31dc540c89' into kw-add-t…
krystofwoldrich Sep 6, 2023
b96ae7d
Add test project to compile with ts 3.8
krystofwoldrich Sep 6, 2023
dcd7bac
Merge branch 'develop' into kw-add-ts-3-8-compile-test
krystofwoldrich Sep 6, 2023
37d9228
Move ts3.8 test app to e2e tests
krystofwoldrich Sep 6, 2023
f9b6528
Merge commit '66a925e2bd17f9eda6c606a54395e9bdcc7a889e' into kw-add-t…
krystofwoldrich Sep 6, 2023
d2b9068
Remove the ts3.8 project from yarn workspaces
krystofwoldrich Sep 6, 2023
918b4b0
Clean up the moved project
krystofwoldrich Sep 6, 2023
f3c2866
Merge branch 'develop' into kw-add-ts-3-8-compile-test
krystofwoldrich Sep 11, 2023
b2e7b2b
Add e2e tests commands
krystofwoldrich Sep 11, 2023
b7e86e9
Merge remote-tracking branch 'origin/kw-add-ts-3-8-compile-test' into…
krystofwoldrich Sep 11, 2023
163f362
Use latest sentry in the e2e ts test
krystofwoldrich Sep 11, 2023
0972f8a
Add the generic e2e test ts 3.8 to gh ci
krystofwoldrich Sep 11, 2023
502122e
remove run-s
krystofwoldrich Sep 11, 2023
0e7ef04
Merge remote-tracking branch 'origin/develop' into kw-add-ts-3-8-comp…
krystofwoldrich Sep 11, 2023
bf434e0
Use local npm
krystofwoldrich Sep 12, 2023
8432f4c
Add DOM to type libs
krystofwoldrich Sep 12, 2023
3401fae
Update build script
krystofwoldrich Sep 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,7 @@ jobs:
'standard-frontend-react',
'standard-frontend-react-tracing-import',
'sveltekit',
'generic-ts3.8',
]
build-command:
- false
Expand Down
2 changes: 2 additions & 0 deletions packages/e2e-tests/test-applications/generic-ts3.8/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@sentry:registry=http://localhost:4873
@sentry-internal:registry=http://localhost:4873
13 changes: 13 additions & 0 deletions packages/e2e-tests/test-applications/generic-ts3.8/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';
28 changes: 28 additions & 0 deletions packages/e2e-tests/test-applications/generic-ts3.8/package.json
Original file line number Diff line number Diff line change
@@ -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 || *"
}
}
11 changes: 11 additions & 0 deletions packages/e2e-tests/test-applications/generic-ts3.8/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"include": ["index.ts"],
"compilerOptions": {
"lib": ["es6", "DOM"],
"skipLibCheck": false,
"noEmit": true,
"types": [],
"target": "es6",
"moduleResolution": "node"
}
}