Skip to content

Commit

Permalink
Dependencies audit: removals and updates
Browse files Browse the repository at this point in the history
Remove many production dependencies that are unneeded. Update many others.
  • Loading branch information
nonword committed Mar 14, 2024
1 parent 757189b commit 55842b5
Show file tree
Hide file tree
Showing 15 changed files with 552 additions and 3,508 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
11 changes: 3 additions & 8 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const config = require('config')
const express = require('express')

const esClient = require('./lib/es-client')
Expand Down Expand Up @@ -26,8 +25,6 @@ app.init = async () => {
// Load logger after running above to ensure we respect LOG_LEVEL if set
app.logger = require('./lib/logger')

app.thesaurus = config.thesaurus

require('./lib/resources')(app)

// routes
Expand Down Expand Up @@ -60,12 +57,10 @@ app.init = async () => {
app.start = async () => {
await app.init()

const port = process.env.PORT || config.port
const port = process.env.PORT || 3000

return require('./lib/globals')(app).then((app) => {
return app.listen(port, function () {
app.logger.info('Server started on port ' + port)
})
return app.listen(port, function () {
app.logger.info('Server started on port ' + port)
})
}

Expand Down
Loading

0 comments on commit 55842b5

Please sign in to comment.