Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Export package version
Browse files Browse the repository at this point in the history
Exports the current package version from the root level. This allows
users of this module to read the version of the library that has been
loaded.
  • Loading branch information
Justin Smith committed Sep 25, 2018
1 parent d8462a2 commit a050de1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/opencensus-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ export * from './stats/types';
// logger
import * as logger from './common/console-logger';
export {logger};

// version
const version: string = require('../package.json').version;
export { version };

0 comments on commit a050de1

Please sign in to comment.