From e9c8955f68d18562cab50b8d0500dd62005887f8 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Mon, 28 Oct 2019 15:30:34 -0700 Subject: [PATCH] fix: package.json in build/ caused bad publish (#361) --- src/v3/translation_service_client.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/v3/translation_service_client.ts b/src/v3/translation_service_client.ts index 3cb89bba..6607ff1b 100644 --- a/src/v3/translation_service_client.ts +++ b/src/v3/translation_service_client.ts @@ -19,11 +19,10 @@ import * as gax from 'google-gax'; import * as path from 'path'; -import * as packageJson from '../../package.json'; import * as protosTypes from '../../protos/protos'; import * as gapicConfig from './translation_service_client_config.json'; -const version = packageJson.version; +const version = require('../../../package.json').version; export interface ClientOptions extends gax.GrpcClientOptions, gax.GoogleAuthOptions {