🆕 Make outputs executable

This commit is contained in:
steelbrain
2024-02-15 06:50:03 +02:00
parent af1656f7e0
commit 6c4bd6ec9a
4 changed files with 12 additions and 2 deletions

6
.npmignore Normal file
View File

@@ -0,0 +1,6 @@
/src
/typings
biome.json
ffmpeg-over-ip.client.jsonc
ffmpeg-over-ip.server.jsonc
tsconfig.json

View File

@@ -1,16 +1,18 @@
{
"name": "ffmpeg-over-ip",
"version": "0.0.0",
"description": "TODO",
"description": "Connect to remote ffmpeg servers",
"main": "index.js",
"type": "module",
"scripts": {
"prepare": "yarn build:client && yarn build:server && yarn build:permissions",
"build:permissions": "chmod +x lib/server.js lib/client.js",
"build:server": "esbuild src/server.ts --platform=node --bundle --outdir=lib",
"watch:server": "esbuild src/server.ts --platform=node --bundle --outdir=lib --watch",
"build:client": "esbuild src/client.ts --platform=node --bundle --outdir=lib",
"watch:client": "esbuild src/client.ts --platform=node --bundle --outdir=lib --watch"
},
"author": "",
"author": "steelbrain",
"license": "MIT",
"devDependencies": {
"@biomejs/biome": "^1.5.3",

1
src/client.ts Normal file → Executable file
View File

@@ -1,3 +1,4 @@
#!/usr/bin/env node
import http from 'node:http'
import { loadConfig } from './config.js'
import { CONFIG_FILE_SEARCH_PATHS_CLIENT, Runtime } from './constants.js'

1
src/server.ts Normal file → Executable file
View File

@@ -1,3 +1,4 @@
#!/usr/bin/env node
import childProcess from 'node:child_process'
import cluster from 'node:cluster'
import http from 'node:http'