From ffe2d43c24e7a223aaa3c521fe6c450902246557 Mon Sep 17 00:00:00 2001 From: Daniel Griesser Date: Thu, 30 Nov 2017 14:22:29 +0100 Subject: [PATCH] fix: write sentry-cli executable path --- lib/Helper/SentryCli.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/Helper/SentryCli.ts b/lib/Helper/SentryCli.ts index 7a6f3c6a..7a8d497f 100644 --- a/lib/Helper/SentryCli.ts +++ b/lib/Helper/SentryCli.ts @@ -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) {} @@ -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; }