diff --git a/package.json b/package.json index 1d094a9..e2242d9 100644 --- a/package.json +++ b/package.json @@ -8,14 +8,14 @@ "author": "Patrick Matt", "license": "MIT", "scripts": { - "start:site": "ts-node-esm ./serve.site.mts", + "start:site": "node --loader ts-node/esm ./serve.site.mts", "start:server": "npm run build:server && node ./build/server.js", "code:check": "npm run code:check-eslint && yarn code:check-tsc", "code:check-eslint": "eslint --fix ./src/", "code:check-tsc": "tsc -p ./tsconfig.json", "build": "npm run build:site && npm run build:server", - "build:server": "ts-node-esm ./build.server.mts", - "build:site": "ts-node-esm ./build.site.mts", + "build:server": "node --loader ts-node/esm ./build.server.mts", + "build:site": "node --loader ts-node/esm ./build.site.mts", "release": "yarn version --patch && git push --follow-tags" }, "dependencies": { diff --git a/src/server/control.ts b/src/server/control.ts index 0afb29e..96bced5 100644 --- a/src/server/control.ts +++ b/src/server/control.ts @@ -182,7 +182,6 @@ const modeHelper: { settings: { ...settings, timeout: 0, - profile: 'baseline', inline: true, output: '-', }, diff --git a/src/site/components/main/settings/StreamSettings.tsx b/src/site/components/main/settings/StreamSettings.tsx index 8b85645..c967667 100644 --- a/src/site/components/main/settings/StreamSettings.tsx +++ b/src/site/components/main/settings/StreamSettings.tsx @@ -68,11 +68,13 @@ export const StreamSettings: React.FC = ({ > {stream.codec.value === 'H264' && ( - + + + )} {stream.codec.value === 'MJPEG' && ( diff --git a/tsconfig.json b/tsconfig.json index 957b12c..edbd69b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -28,8 +28,9 @@ "isolatedModules": true }, "ts-node": { + "esm": true, "transpileOnly": true, "files": true, /* Enable d.ts files */ - "experimentalResolver": true + "experimentalResolver": true, }, } \ No newline at end of file