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

Commit b6e6814

Browse files
authored
fix: core version (#753)
1 parent 6ff5275 commit b6e6814

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

packages/opencensus-core/src/common/version.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,5 @@
1414
* limitations under the License.
1515
*/
1616

17-
interface Package {
18-
version: string;
19-
}
20-
21-
// Load the package details. Note that the `require` is performed at runtime,
22-
// which means package.json will be relative to the location of this file.
23-
// If this file has been compiled, it will be in the `/build` directory, so the
24-
// package path is relative to that location. Otherwise, it will be relative
25-
// to the original .ts file.
26-
let pjson: Package;
27-
try {
28-
pjson = require('../../../package.json');
29-
} catch {
30-
pjson = require('../../package.json');
31-
}
32-
3317
// Export the core package version
34-
export const version: string = pjson.version;
18+
export const version = '0.0.19';

0 commit comments

Comments
 (0)