@sentry-internal/typescript

Typescript configuration used at Sentry

Usage no npm install needed!

<script type="module">
  import sentryInternalTypescript from 'https://cdn.skypack.dev/@sentry-internal/typescript';
</script>

README


Sentry TypeScript Configuration

npm version npm dm npm dt

typedoc

Links

General

Shared typescript configuration used at Sentry.

Installation

# 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:

tslint.json:

{
  "extends": "@sentry-internal/typescript/tslint"
}

tsconfig.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.