Skip to content

Commit

Permalink
chore: add plugin version to default context, update rootdir (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtk-grafana authored Sep 25, 2024
1 parent da4049a commit 5828c98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/services/logger.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { LogContext } from '@grafana/faro-web-sdk';
import { FetchError, logError, logInfo, logWarning } from '@grafana/runtime';
import pluginJson from '../plugin.json';
import packageJson from '../../package.json';

const defaultContext = {
app: pluginJson.id,
version: packageJson.version,
};

export const logger = {
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "./.config/tsconfig.json"
"extends": "./.config/tsconfig.json",
"compilerOptions": {
"rootDir": "./"
}
}

0 comments on commit 5828c98

Please sign in to comment.