diff --git a/package.json b/package.json index 7c6092b..008a24a 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,7 @@ "scripts": { "build:scss": "npx sass src/static/css:dist/static/css", "copy:html": "cp src/static/*.* dist/static", - "build:js:fe": "npx tsc src/static/js/*.ts --outDir dist/static/js", - "build:js:be": "npx tsc --skipLibCheck src/*.ts --outDir dist", - "build": "npm run build:js:fe && npm run build:js:be && npm run build:scss && npm run copy:html", + "build": "npx tsc && npm run build:scss && npm run copy:html", "start": "npm run build && node dist/server.js", "dev": "npm run build && npx ts-node src/server.ts" }, diff --git a/src/server.ts b/src/server.ts index 63384f6..0f6b977 100644 --- a/src/server.ts +++ b/src/server.ts @@ -1,7 +1,7 @@ import HttpServer from './http'; import IO, { ISensors } from './io'; import VideoSocket from './ws'; -import * as programs from './programs.json' +import programs from './programs.json' const HTTP_PORT = process.env.HTTP_PORT ? parseInt(process.env.HTTP_PORT, 10) : 8080; const WS_PORT = process.env.WS_PORT ? parseInt(process.env.WS_PORT, 10) : 3003; diff --git a/tsconfig.json b/tsconfig.json index 76fc191..d9273be 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -106,7 +106,7 @@ "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ "skipLibCheck": true /* Skip type checking all .d.ts files. */ }, - "include": ["src/**/*.ts"], + "include": ["src/**/*.ts", "src/**/*.json"], "exclude": [ "node_modules","./node_modules/@roamhq/wrtc" ]