aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-28 14:02:47 +0100
committerChocobozzz <me@florianbigard.com>2020-01-28 14:03:12 +0100
commit005b51b977e624b64107ccd10594920e5a6c264c (patch)
treea33b34098cccb451f3d79d88f4774ee1839a722f
parente669ff58736e919cbc300e1880d995006592fa0c (diff)
downloadPeerTube-005b51b977e624b64107ccd10594920e5a6c264c.tar.gz
PeerTube-005b51b977e624b64107ccd10594920e5a6c264c.tar.zst
PeerTube-005b51b977e624b64107ccd10594920e5a6c264c.zip
Force node 10 usage
-rw-r--r--package.json2
-rw-r--r--server.ts4
-rw-r--r--server/tools/peertube-import-videos.ts4
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"
diff --git a/server.ts b/server.ts
index 8df3add2c..b14ebf623 100644
--- a/server.ts
+++ b/server.ts
@@ -1,10 +1,6 @@
1import { registerTSPaths } from './server/helpers/register-ts-paths' 1import { registerTSPaths } from './server/helpers/register-ts-paths'
2
3registerTSPaths() 2registerTSPaths()
4 3
5// FIXME: https://github.com/nodejs/node/pull/16853
6require('tls').DEFAULT_ECDH_CURVE = 'auto'
7
8import { isTestInstance } from './server/helpers/core-utils' 4import { isTestInstance } from './server/helpers/core-utils'
9if (isTestInstance()) { 5if (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 @@
1import { registerTSPaths } from '../helpers/register-ts-paths' 1import { registerTSPaths } from '../helpers/register-ts-paths'
2
3registerTSPaths() 2registerTSPaths()
4 3
5// FIXME: https://github.com/nodejs/node/pull/16853
6require('tls').DEFAULT_ECDH_CURVE = 'auto'
7
8import * as program from 'commander' 4import * as program from 'commander'
9import { join } from 'path' 5import { join } from 'path'
10import { doRequestAndSaveToFile } from '../helpers/requests' 6import { doRequestAndSaveToFile } from '../helpers/requests'