Skip to content

Commit ecc462b

Browse files
committed
ts: lib/config/index.js
1 parent fc2d6d6 commit ecc462b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/config/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const configFilePath = path.resolve(appRootPath, process.env.CMD_CONFIG_FILE ||
3232
'config.json')
3333
const fileConfig = fs.existsSync(configFilePath) ? require(configFilePath)[env] : undefined
3434

35-
let config = require('./default')
35+
let config: any = require('./default')
3636
merge(config, require('./defaultSSL'))
3737
merge(config, debugConfig)
3838
merge(config, packageConfig)
@@ -209,6 +209,6 @@ config.docsPath = path.resolve(appRootPath, config.docsPath)
209209
config.uploadsPath = path.resolve(appRootPath, config.uploadsPath)
210210

211211
// make config readonly
212-
config = deepFreeze(config)
212+
config = deepFreeze(config) as any
213213

214-
module.exports = config
214+
export = config

0 commit comments

Comments
 (0)