replaced fs-promise with mz/fs

This commit is contained in:
Eugene Pankov 2017-07-05 14:48:02 +02:00
parent da89560d6b
commit e6ef21fa9d
6 changed files with 4 additions and 7 deletions

View file

@ -38,10 +38,8 @@ module.exports = {
}, },
externals: [ externals: [
'fs', 'fs',
'fs-promise',
'path', 'path',
'node-pty', 'node-pty',
'fs-promise',
/^rxjs/, /^rxjs/,
/^@angular/, /^@angular/,
/^@ng-bootstrap/, /^@ng-bootstrap/,

View file

@ -37,7 +37,6 @@
}, },
"dependencies": { "dependencies": {
"font-manager": "0.2.2", "font-manager": "0.2.2",
"fs-promise": "2.0.2",
"hterm-umdjs": "1.2.0", "hterm-umdjs": "1.2.0",
"mz": "^2.6.0", "mz": "^2.6.0",
"node-pty": "0.6.2", "node-pty": "0.6.2",

View file

@ -1,4 +1,4 @@
import * as fs from 'fs-promise' import * as fs from 'mz/fs'
import * as path from 'path' import * as path from 'path'
import { Injectable } from '@angular/core' import { Injectable } from '@angular/core'
import { TerminalColorSchemeProvider, ITerminalColorScheme } from './api' import { TerminalColorSchemeProvider, ITerminalColorScheme } from './api'

View file

@ -1,4 +1,4 @@
import * as fs from 'fs-promise' import * as fs from 'mz/fs'
import { exec, spawn } from 'mz/child_process' import { exec, spawn } from 'mz/child_process'
import { exec as execCallback } from 'child_process' import { exec as execCallback } from 'child_process'

View file

@ -1,5 +1,5 @@
import * as nodePTY from 'node-pty' import * as nodePTY from 'node-pty'
import * as fs from 'fs-promise' import * as fs from 'mz/fs'
import { Subject } from 'rxjs' import { Subject } from 'rxjs'
import { Injectable } from '@angular/core' import { Injectable } from '@angular/core'
import { Logger, LogService } from 'terminus-core' import { Logger, LogService } from 'terminus-core'

View file

@ -38,10 +38,10 @@ module.exports = {
}, },
externals: [ externals: [
'fs', 'fs',
'fs-promise',
'font-manager', 'font-manager',
'path', 'path',
'node-pty', 'node-pty',
'mz/fs',
'mz/child_process', 'mz/child_process',
'winreg', 'winreg',
/^rxjs/, /^rxjs/,