diff --git a/app/package.json b/app/package.json index 56dbc482..fe991d5e 100644 --- a/app/package.json +++ b/app/package.json @@ -25,10 +25,13 @@ "electron-debug": "^1.0.1", "electron-is-dev": "0.1.2", "electron-squirrel-startup": "^1.0.0", - "fs-promise": "^2.0.2", "js-yaml": "3.8.2", + "mz": "^2.6.0", "path": "0.12.7", "rxjs": "5.3.0", "zone.js": "0.8.4" + }, + "devDependencies": { + "@types/mz": "0.0.31" } } diff --git a/app/src/plugins.ts b/app/src/plugins.ts index 046d14ea..d67dc281 100644 --- a/app/src/plugins.ts +++ b/app/src/plugins.ts @@ -1,4 +1,4 @@ -import * as fs from 'fs-promise' +import * as fs from 'mz/fs' import * as path from 'path' const nodeModule = require('module') const nodeRequire = (global as any).require @@ -75,7 +75,7 @@ export async function findPlugins (): Promise { } try { - let info = await fs.readJson(infoPath) + let info = JSON.parse(await fs.readFile(infoPath, {encoding: 'utf-8'})) console.log(pluginDir, builtinPluginsPath) foundPlugins.push({ name: pluginName.substring('terminus-'.length), diff --git a/app/webpack.config.js b/app/webpack.config.js index 1fea6f38..25f74a29 100644 --- a/app/webpack.config.js +++ b/app/webpack.config.js @@ -55,10 +55,10 @@ module.exports = { '@angular/forms': 'commonjs @angular/forms', '@angular/common': 'commonjs @angular/common', '@ng-bootstrap/ng-bootstrap': 'commonjs @ng-bootstrap/ng-bootstrap', - 'fs-promise': 'commonjs fs-promise', 'electron': 'commonjs electron', 'electron-is-dev': 'commonjs electron-is-dev', 'module': 'commonjs module', + 'mz': 'commonjs mz', 'path': 'commonjs path', 'rxjs': 'commonjs rxjs', 'zone.js': 'commonjs zone.js', diff --git a/package.json b/package.json index a7e6803a..e33e5960 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,6 @@ "tslint": "5.1.0", "tslint-config-standard": "5.0.2", "tslint-eslint-rules": "4.0.0", - "typedoc": "^0.7.1", "typescript": "2.2.2", "url-loader": "0.5.7", "val-loader": "0.5.0",