Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use require.resolve to locate google-gax #76

Merged
merged 5 commits into from
Oct 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions typescript/src/start_script.ts
Original file line number Diff line number Diff line change
@@ -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')