From a06ff100a8d1c5cfd5429e98faeb9c877b70ac51 Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Thu, 17 Jan 2019 23:31:36 +0100 Subject: [PATCH] Restructure --- package.json | 2 +- electron.ts => src/electron.ts | 4 ++-- tsconfig.json | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) rename electron.ts => src/electron.ts (96%) diff --git a/package.json b/package.json index 73c3ad9..091cddb 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "MQTT-Explorer", "version": "0.0.7", "description": "Explore your message queues", - "main": "dist/electron.js", + "main": "dist/src/electron.js", "scripts": { "start": "electron .", "install": "cd app; npm install; cd ..", diff --git a/electron.ts b/src/electron.ts similarity index 96% rename from electron.ts rename to src/electron.ts index 809fb35..5420374 100644 --- a/electron.ts +++ b/src/electron.ts @@ -1,11 +1,11 @@ -import { UpdateInfo } from './events' +import { UpdateInfo } from '../events' import { BrowserWindow, app } from 'electron' import * as path from 'path' import * as fs from 'fs' const { autoUpdater } = require('electron-updater') const log = require('electron-log') -import { ConnectionManager, updateNotifier } from './backend/src/index' +import { ConnectionManager, updateNotifier } from '../backend/src/index' const isDebugEnabled = Boolean(process.argv.find(arg => arg === 'debug')) require('electron-debug')({ enabled: isDebugEnabled }) diff --git a/tsconfig.json b/tsconfig.json index a1811f7..94a470b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,8 +5,9 @@ "strictNullChecks": true, "outDir": "./dist", "strict": true, + "sourceRoot": "src/", "lib": ["es2017", "dom"], "sourceMap": true }, - "include": ["electron.ts"] + "include": ["src/electron.ts"] }