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

Commit

Permalink
fix: core version (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurkale22 committed Feb 14, 2020
1 parent 6ff5275 commit b6e6814
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions packages/opencensus-core/src/common/version.ts
Expand Up @@ -14,21 +14,5 @@
* limitations under the License.
*/

interface Package {
version: string;
}

// Load the package details. Note that the `require` is performed at runtime,
// which means package.json will be relative to the location of this file.
// If this file has been compiled, it will be in the `/build` directory, so the
// package path is relative to that location. Otherwise, it will be relative
// to the original .ts file.
let pjson: Package;
try {
pjson = require('../../../package.json');
} catch {
pjson = require('../../package.json');
}

// Export the core package version
export const version: string = pjson.version;
export const version = '0.0.19';

0 comments on commit b6e6814

Please sign in to comment.