build fix (fixes 579)

This commit is contained in:
Eugene Pankov 2018-12-21 23:06:24 +01:00
parent 6e13914712
commit 504cfcf8ff
2 changed files with 3 additions and 4 deletions

View file

@ -6,8 +6,8 @@ const appInfo = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../app/packa
const electronInfo = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../node_modules/electron/package.json')))
exports.version = childProcess.execSync('git describe --tags', {encoding:'utf-8'})
exports.version = exports.version.substring(1)
exports.version = exports.version.replace('-g', 'g')
exports.version = exports.version.substring(1).trim()
exports.version = exports.version.replace('-', '-c')
exports.builtinPlugins = [
'terminus-core',

View file

@ -6,7 +6,6 @@ import { first } from 'rxjs/operators'
import { Injectable } from '@angular/core'
import { Logger, LogService, ConfigService } from 'terminus-core'
import { exec } from 'mz/child_process'
import TerminalModule from '..'
import { SessionOptions } from '../api'
let macOSNativeProcessList
@ -248,7 +247,7 @@ export class Session extends BaseSession {
}
}
@Injectable({ providedIn: TerminalModule })
@Injectable({ providedIn: 'root' })
export class SessionsService {
sessions: {[id: string]: BaseSession} = {}
logger: Logger