import "reflect-metadata" ; import { install as installSourceMapSupport } from "source-map-support" ; installSourceMapSupport ( ) ; import * as path from "path" ; import { initSentry } from "./lib/telemetry/sentry" ; /** The version of zwave-js, exported for your convenience */ const packageJsonPath = require . resolve ( "zwave-js/package.json" ) ; const packageJson = require ( packageJsonPath ) ; const libraryRootDir = path . dirname ( packageJsonPath ) ; const libName = packageJson . name ; const libVersion = packageJson . version ; if ( process . env . NODE_ENV !== "test" && ! /\-[a-f0-9]{7,}$/ . test ( libVersion ) && ! /\-pr\-\d+\-$/ . test ( libVersion ) ) { void initSentry ( libraryRootDir , libName , libVersion ) . catch ( ( ) => { } ) ; } export * from "./CommandClass" ; export * from "./Controller" ; export * from "./Driver" ; export * from "./Error" ; export * from "./Node" ; export * from "./Utils" ; export * from "./Values" ; export { libVersion } ;