Back to Sentry Javascript

Sentry TypeScript Configuration

packages/typescript/README.md

10.51.01.4 KB
Original Source
<p align="center"> <a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank"> </a> </p>

Sentry TypeScript Configuration

General

Shared typescript configuration used at Sentry.

Installation

sh
# With Yarn:
yarn add --dev @sentry-internal/typescript

# With NPM:
npm install --save-dev @sentry-internal/typescript

Usage

Add the following config files to your project's root directory:

tsconfig.json:

json
{
  "extends": "./node_modules/@sentry-internal/typescript/tsconfig.json",
  "compilerOptions": {
    "baseUrl": ".",
    "rootDir": "src",
    "outDir": "dist"
  }
}

For an example of how to use this package in a monorepo, check out this package's own parent repo, https://github.com/getsentry/sentry-javascript.