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

fix: core version #753

Merged
merged 1 commit into from Feb 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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';