diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/peertube-runner/.gitignore | 1 | ||||
-rw-r--r-- | packages/peertube-runner/.npmignore | 6 | ||||
-rw-r--r-- | packages/peertube-runner/package.json | 5 | ||||
-rw-r--r-- | packages/peertube-runner/peertube-runner.ts | 5 |
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 @@ | |||
1 | node_modules | 1 | node_modules |
2 | dist | 2 | dist |
3 | meta.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 @@ | |||
1 | register | ||
2 | server | ||
3 | shared | ||
4 | meta.json | ||
5 | peertube-runner.ts | ||
6 | tsconfig.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 | |||
1 | import { Command, InvalidArgumentError } from '@commander-js/extra-typings' | 3 | import { Command, InvalidArgumentError } from '@commander-js/extra-typings' |
2 | import { listRegistered, registerRunner, unregisterRunner } from './register' | 4 | import { listRegistered, registerRunner, unregisterRunner } from './register' |
3 | import { RunnerServer } from './server' | 5 | import { RunnerServer } from './server' |
4 | import { ConfigManager, logger } from './shared' | 6 | import { ConfigManager, logger } from './shared' |
5 | 7 | ||
8 | const packageJSON = require('./package.json') | ||
9 | |||
6 | const program = new Command() | 10 | const 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', |