aboutsummaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/peertube-runner/.gitignore1
-rw-r--r--packages/peertube-runner/.npmignore6
-rw-r--r--packages/peertube-runner/package.json5
-rw-r--r--packages/peertube-runner/peertube-runner.ts5
4 files changed, 15 insertions, 2 deletions
diff --git a/packages/peertube-runner/.gitignore b/packages/peertube-runner/.gitignore
index f06235c46..6426ab063 100644
--- a/packages/peertube-runner/.gitignore
+++ b/packages/peertube-runner/.gitignore
@@ -1,2 +1,3 @@
1node_modules 1node_modules
2dist 2dist
3meta.json
diff --git a/packages/peertube-runner/.npmignore b/packages/peertube-runner/.npmignore
new file mode 100644
index 000000000..f38d9947c
--- /dev/null
+++ b/packages/peertube-runner/.npmignore
@@ -0,0 +1,6 @@
1register
2server
3shared
4meta.json
5peertube-runner.ts
6tsconfig.json
diff --git a/packages/peertube-runner/package.json b/packages/peertube-runner/package.json
index dde0e2d62..f04d0b64f 100644
--- a/packages/peertube-runner/package.json
+++ b/packages/peertube-runner/package.json
@@ -1,7 +1,8 @@
1{ 1{
2 "name": "peertube-runner", 2 "name": "@peertube/peertube-runner",
3 "version": "1.0.0", 3 "version": "0.0.2",
4 "main": "dist/peertube-runner.js", 4 "main": "dist/peertube-runner.js",
5 "bin": "dist/peertube-runner.js",
5 "license": "AGPL-3.0", 6 "license": "AGPL-3.0",
6 "dependencies": {}, 7 "dependencies": {},
7 "devDependencies": { 8 "devDependencies": {
diff --git a/packages/peertube-runner/peertube-runner.ts b/packages/peertube-runner/peertube-runner.ts
index f02526ef9..9c3e498d6 100644
--- a/packages/peertube-runner/peertube-runner.ts
+++ b/packages/peertube-runner/peertube-runner.ts
@@ -1,9 +1,14 @@
1#!/usr/bin/env node
2
1import { Command, InvalidArgumentError } from '@commander-js/extra-typings' 3import { Command, InvalidArgumentError } from '@commander-js/extra-typings'
2import { listRegistered, registerRunner, unregisterRunner } from './register' 4import { listRegistered, registerRunner, unregisterRunner } from './register'
3import { RunnerServer } from './server' 5import { RunnerServer } from './server'
4import { ConfigManager, logger } from './shared' 6import { ConfigManager, logger } from './shared'
5 7
8const packageJSON = require('./package.json')
9
6const program = new Command() 10const program = new Command()
11 .version(packageJSON.version)
7 .option( 12 .option(
8 '--id <id>', 13 '--id <id>',
9 'Runner server id, so you can run multiple PeerTube server runners with different configurations on the same machine', 14 'Runner server id, so you can run multiple PeerTube server runners with different configurations on the same machine',