diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-28 14:02:47 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-28 14:03:12 +0100 |
commit | 005b51b977e624b64107ccd10594920e5a6c264c (patch) | |
tree | a33b34098cccb451f3d79d88f4774ee1839a722f | |
parent | e669ff58736e919cbc300e1880d995006592fa0c (diff) | |
download | PeerTube-005b51b977e624b64107ccd10594920e5a6c264c.tar.gz PeerTube-005b51b977e624b64107ccd10594920e5a6c264c.tar.zst PeerTube-005b51b977e624b64107ccd10594920e5a6c264c.zip |
Force node 10 usage
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | server.ts | 4 | ||||
-rw-r--r-- | server/tools/peertube-import-videos.ts | 4 |
3 files changed, 1 insertions, 9 deletions
diff --git a/package.json b/package.json index fed390c82..b416e9501 100644 --- a/package.json +++ b/package.json | |||
@@ -5,7 +5,7 @@ | |||
5 | "private": true, | 5 | "private": true, |
6 | "licence": "AGPL-3.0", | 6 | "licence": "AGPL-3.0", |
7 | "engines": { | 7 | "engines": { |
8 | "node": ">=8.x" | 8 | "node": ">=10.x" |
9 | }, | 9 | }, |
10 | "bin": { | 10 | "bin": { |
11 | "peertube": "dist/server/tools/peertube.js" | 11 | "peertube": "dist/server/tools/peertube.js" |
@@ -1,10 +1,6 @@ | |||
1 | import { registerTSPaths } from './server/helpers/register-ts-paths' | 1 | import { registerTSPaths } from './server/helpers/register-ts-paths' |
2 | |||
3 | registerTSPaths() | 2 | registerTSPaths() |
4 | 3 | ||
5 | // FIXME: https://github.com/nodejs/node/pull/16853 | ||
6 | require('tls').DEFAULT_ECDH_CURVE = 'auto' | ||
7 | |||
8 | import { isTestInstance } from './server/helpers/core-utils' | 4 | import { isTestInstance } from './server/helpers/core-utils' |
9 | if (isTestInstance()) { | 5 | if (isTestInstance()) { |
10 | require('source-map-support').install() | 6 | require('source-map-support').install() |
diff --git a/server/tools/peertube-import-videos.ts b/server/tools/peertube-import-videos.ts index eaa792763..c7e85b570 100644 --- a/server/tools/peertube-import-videos.ts +++ b/server/tools/peertube-import-videos.ts | |||
@@ -1,10 +1,6 @@ | |||
1 | import { registerTSPaths } from '../helpers/register-ts-paths' | 1 | import { registerTSPaths } from '../helpers/register-ts-paths' |
2 | |||
3 | registerTSPaths() | 2 | registerTSPaths() |
4 | 3 | ||
5 | // FIXME: https://github.com/nodejs/node/pull/16853 | ||
6 | require('tls').DEFAULT_ECDH_CURVE = 'auto' | ||
7 | |||
8 | import * as program from 'commander' | 4 | import * as program from 'commander' |
9 | import { join } from 'path' | 5 | import { join } from 'path' |
10 | import { doRequestAndSaveToFile } from '../helpers/requests' | 6 | import { doRequestAndSaveToFile } from '../helpers/requests' |