Force node 10 usage

pull/2438/head
Chocobozzz 2020-01-28 14:02:47 +01:00
parent e669ff5873
commit 005b51b977
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 1 additions and 9 deletions

View File

@ -5,7 +5,7 @@
"private": true, "private": true,
"licence": "AGPL-3.0", "licence": "AGPL-3.0",
"engines": { "engines": {
"node": ">=8.x" "node": ">=10.x"
}, },
"bin": { "bin": {
"peertube": "dist/server/tools/peertube.js" "peertube": "dist/server/tools/peertube.js"

View File

@ -1,10 +1,6 @@
import { registerTSPaths } from './server/helpers/register-ts-paths' import { registerTSPaths } from './server/helpers/register-ts-paths'
registerTSPaths() registerTSPaths()
// FIXME: https://github.com/nodejs/node/pull/16853
require('tls').DEFAULT_ECDH_CURVE = 'auto'
import { isTestInstance } from './server/helpers/core-utils' import { isTestInstance } from './server/helpers/core-utils'
if (isTestInstance()) { if (isTestInstance()) {
require('source-map-support').install() require('source-map-support').install()

View File

@ -1,10 +1,6 @@
import { registerTSPaths } from '../helpers/register-ts-paths' import { registerTSPaths } from '../helpers/register-ts-paths'
registerTSPaths() registerTSPaths()
// FIXME: https://github.com/nodejs/node/pull/16853
require('tls').DEFAULT_ECDH_CURVE = 'auto'
import * as program from 'commander' import * as program from 'commander'
import { join } from 'path' import { join } from 'path'
import { doRequestAndSaveToFile } from '../helpers/requests' import { doRequestAndSaveToFile } from '../helpers/requests'