From 5d19c77dcecd0134f17bcd92e268e4f7782276b6 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 3 Nov 2021 18:55:39 -0400 Subject: [PATCH] server: Move source to `src` folder --- server/package.json | 2 +- server/{ => src}/OctoPrintConnection.ts | 4 ++-- server/{ => src}/server.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename server/{ => src}/OctoPrintConnection.ts (97%) rename server/{ => src}/server.ts (97%) 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;