Skip to content

Commit

Permalink
Remove dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Feb 11, 2020
1 parent 574cb81 commit 8c37ce4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"method-override": "^3.0.0",
"morgan": "^1.9.1",
"nanoid": "^2.1.0",
"object-assign": "^4.1.1",
"please-upgrade-node": "^3.2.0",
"pluralize": "^8.0.0",
"request": "^2.88.0",
Expand Down
3 changes: 1 addition & 2 deletions src/server/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ const logger = require('morgan')
const cors = require('cors')
const compression = require('compression')
const errorhandler = require('errorhandler')
const objectAssign = require('object-assign')
const bodyParser = require('./body-parser')

module.exports = function(opts) {
const userDir = path.join(process.cwd(), 'public')
const defaultDir = path.join(__dirname, '../../dist')
const staticDir = fs.existsSync(userDir) ? userDir : defaultDir

opts = objectAssign({ logger: true, static: staticDir }, opts)
opts = Object.assign({ logger: true, static: staticDir }, opts)

const arr = []

Expand Down

0 comments on commit 8c37ce4

Please sign in to comment.