Skip to content

Commit

Permalink
fix: write sentry-cli executable path
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT committed Nov 30, 2017
1 parent 2bbfd39 commit ffe2d43
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/Helper/SentryCli.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Answers } from 'inquirer';
import * as _ from 'lodash';
import * as path from 'path';
import { IArgs } from '../Constants';

const path = require('path');

export class SentryCli {
constructor(protected argv: IArgs) {}

Expand All @@ -13,15 +12,12 @@ export class SentryCli {
props['defaults/org'] = _.get(answers, 'selectedProject.organization.slug', null);
props['defaults/project'] = _.get(answers, 'selectedProject.slug', null);
props['auth/token'] = _.get(answers, 'wizard.apiKeys.token', null);
// TODO: Check if we need this
/*
try {
const cliPath = require.resolve('sentry-cli-binary/bin/sentry-cli');
props['cli/executable'] = path.relative(process.cwd(), cliPath);
} catch (e) {
// we do nothing and leave everyting as it is
}
*/
return props;
}

Expand Down

0 comments on commit ffe2d43

Please sign in to comment.