aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-05 21:53:49 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-05 21:53:49 +0200
commit4d4e5cd4dca78480ec7f40e747f424cd107376a4 (patch)
tree1b132aab503751ae0f4c8ee6c7595ad2d65f3a50 /server/initializers
parente02643f32e4c97ca307f8fc5b69be79c40d70a3b (diff)
downloadPeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.tar.gz
PeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.tar.zst
PeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.zip
require -> import
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/checker.ts2
-rw-r--r--server/initializers/constants.ts2
-rw-r--r--server/initializers/database.ts4
-rw-r--r--server/initializers/installer.ts6
-rw-r--r--server/initializers/migrator.ts4
5 files changed, 9 insertions, 9 deletions
diff --git a/server/initializers/checker.ts b/server/initializers/checker.ts
index 0ee01b0e3..8c3d64b60 100644
--- a/server/initializers/checker.ts
+++ b/server/initializers/checker.ts
@@ -1,4 +1,4 @@
1import config = require('config') 1import * as config from 'config'
2 2
3import { database as db } from './database' 3import { database as db } from './database'
4import { CONFIG } from './constants' 4import { CONFIG } from './constants'
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 1072d0de0..7ab019f44 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -1,4 +1,4 @@
1import config = require('config') 1import * as config from 'config'
2import { join } from 'path' 2import { join } from 'path'
3 3
4// Do not use barrels, remain constants as independent as possible 4// Do not use barrels, remain constants as independent as possible
diff --git a/server/initializers/database.ts b/server/initializers/database.ts
index c89a8b23c..b0f47876e 100644
--- a/server/initializers/database.ts
+++ b/server/initializers/database.ts
@@ -1,6 +1,6 @@
1import fs = require('fs') 1import * as fs from 'fs'
2import { join } from 'path' 2import { join } from 'path'
3import Sequelize = require('sequelize') 3import * as Sequelize from 'sequelize'
4 4
5import { CONFIG } from './constants' 5import { CONFIG } from './constants'
6// Do not use barrel, we need to load database first 6// Do not use barrel, we need to load database first
diff --git a/server/initializers/installer.ts b/server/initializers/installer.ts
index 467164107..2f9b58991 100644
--- a/server/initializers/installer.ts
+++ b/server/initializers/installer.ts
@@ -1,8 +1,8 @@
1import { join } from 'path' 1import { join } from 'path'
2import config = require('config') 2import * as config from 'config'
3import { each, series } from 'async' 3import { each, series } from 'async'
4import mkdirp = require('mkdirp') 4import * as mkdirp from 'mkdirp'
5import passwordGenerator = require('password-generator') 5import * as passwordGenerator from 'password-generator'
6 6
7import { database as db } from './database' 7import { database as db } from './database'
8import { USER_ROLES, CONFIG, LAST_MIGRATION_VERSION } from './constants' 8import { USER_ROLES, CONFIG, LAST_MIGRATION_VERSION } from './constants'
diff --git a/server/initializers/migrator.ts b/server/initializers/migrator.ts
index d42cb3ccc..379d43af5 100644
--- a/server/initializers/migrator.ts
+++ b/server/initializers/migrator.ts
@@ -1,6 +1,6 @@
1import { waterfall, eachSeries } from 'async' 1import { waterfall, eachSeries } from 'async'
2import fs = require('fs') 2import * as fs from 'fs'
3import path = require('path') 3import * as path from 'path'
4import * as Sequelize from 'sequelize' 4import * as Sequelize from 'sequelize'
5 5
6import { database as db } from './database' 6import { database as db } from './database'