From 6932bda1f0a95b80e95486f9720765b560deb13b Mon Sep 17 00:00:00 2001 From: Gabriel Csapo Date: Sun, 13 Aug 2017 14:56:01 -0700 Subject: [PATCH] 0.1.1 - updates dependencies --- index.js | 8 ++++---- package.json | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index 33df618..4b7ee76 100644 --- a/index.js +++ b/index.js @@ -2,12 +2,12 @@ const { app, BrowserWindow, ipcMain, Tray, Menu, MenuItem, shell } = require('el const path = require('path') const local = require('local-npm'); +const os = require('os'); -const assetsDir = path.join(__dirname, 'assets'); -const tempDir = path.join(__dirname, 'temp'); +const assetsDir = path.resolve(__dirname, 'assets'); const server = local({ - directory: tempDir, + directory: path.resolve(os.homedir(), '.local-npm'), port: 5678, pouchPort: 3040, logLevel: 'error', @@ -22,7 +22,7 @@ const server = local({ let tray; app.on('ready', () => { - tray = new Tray(path.resolve(__dirname, './assets/cloudTemplate.png')); + tray = new Tray(path.resolve(assetsDir, 'cloudTemplate.png')); var requests = 0; var sync = 0; diff --git a/package.json b/package.json index 710b8f3..494db38 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "local-npm-daemon", - "version": "0.1.0", + "version": "0.1.1", "description": "An electron application to run local-npm", "main": "index.js", "scripts": { @@ -18,11 +18,11 @@ }, "homepage": "https://github.com/gabrielcsapo/local-npm-daemon#readme", "devDependencies": { - "electron": "^1.6.11", + "electron": "^1.7.5", "electron-packager": "^8.7.2", - "electron-rebuild": "^1.5.11" + "electron-rebuild": "^1.6.0" }, "dependencies": { - "local-npm": "^2.2.0" + "local-npm": "^2.2.1" } }