diff --git a/server/package.json b/server/package.json index c184e1b..52bbb5c 100644 --- a/server/package.json +++ b/server/package.json @@ -19,6 +19,6 @@ "ws": "^8.2.3" }, "scripts": { - "start": "ts-node ./server.ts" + "start": "ts-node ./src/server.ts" } } diff --git a/server/OctoPrintConnection.ts b/server/src/OctoPrintConnection.ts similarity index 97% rename from server/OctoPrintConnection.ts rename to server/src/OctoPrintConnection.ts index d65ee55..e132136 100644 --- a/server/OctoPrintConnection.ts +++ b/server/src/OctoPrintConnection.ts @@ -1,8 +1,8 @@ import * as WebSocket from 'ws'; import fetch from 'node-fetch'; -import {ExtendedMessage} from '../types/messages'; -import * as octoprint from '../types/octoprint'; +import {ExtendedMessage} from '../../types/messages'; +import * as octoprint from '../../types/octoprint'; const PING_TIME = 10000; diff --git a/server/server.ts b/server/src/server.ts similarity index 97% rename from server/server.ts rename to server/src/server.ts index 7d33b3a..962384d 100644 --- a/server/server.ts +++ b/server/src/server.ts @@ -6,7 +6,7 @@ import * as yaml from 'js-yaml'; import * as expressWs from 'express-ws'; import * as WebSocket from 'ws'; -import { ExtendedMessage } from '../types/messages'; +import { ExtendedMessage } from '../../types/messages'; import OctoPrintConnection from './OctoPrintConnection'; const PORT = process.env.PORT || 1234;