Skip to content

Commit

Permalink
fix: use require.resolve to locate google-gax (#76)
Browse files Browse the repository at this point in the history
* fix: add templates to the package

* fix: use require.resolve to locate google-gax

* update comment
  • Loading branch information
alexander-fenster authored Oct 25, 2019
1 parent c6de4c5 commit 1ff3617
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions typescript/src/start_script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,8 @@ import * as yargs from 'yargs';
import * as fs from 'fs-extra';
const fileSystem = require('file-system');

const GOOGLE_GAX_PROTOS_DIR = path.join(
__dirname,
'..',
'..',
'node_modules',
'google-gax',
'protos'
);
const googleGaxPath = path.dirname(require.resolve('google-gax')); // ...../google-gax/build/src
const GOOGLE_GAX_PROTOS_DIR = path.join(googleGaxPath, '..', '..', 'protos');

const argv = yargs
.array('I')
Expand Down

0 comments on commit 1ff3617

Please sign in to comment.