Skip to content

Commit

Permalink
Added release monitoring for Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
CreepPork committed May 19, 2019
1 parent ebb1395 commit 4bb8044
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { CaptureConsole, RewriteFrames } from '@sentry/integrations';
import * as sentry from '@sentry/node';
import Environment from './environment';

const { name, version } = require('../package.json');

export default class Sentry {
public static init() {
global.__rootdir__ = __dirname || process.cwd();
Expand All @@ -14,6 +16,7 @@ export default class Sentry {
}),
new CaptureConsole(),
],
release: `${name}@${version}`,
});

console.info('Sentry initalized.');
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"sourceMap": true,
"inlineSources": true,
"sourceRoot": "/",
"resolveJsonModule": true,
"outDir": "dist",
"baseUrl": ".",
"paths": {
Expand Down

0 comments on commit 4bb8044

Please sign in to comment.