Skip to content

Commit

Permalink
Remove unnecessary path-is-absolute dependency (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin committed Feb 18, 2020
1 parent 8f739b0 commit 437ca4a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions lib/forever/cli.js
Expand Up @@ -11,7 +11,6 @@ var fs = require('fs'),
util = require('util'),
colors = require('colors'),
cliff = require('cliff'),
isAbsolute = require('path-is-absolute'),
flatiron = require('flatiron'),
shush = require('shush'),
prettyjson = require('prettyjson'),
Expand Down Expand Up @@ -204,7 +203,7 @@ function checkColumn(name) {
//
var getOptions = cli.getOptions = function (file) {
var options = {},
absFile = isAbsolute(file) ? file : path.resolve(process.cwd(), file),
absFile = path.isAbsolute(file) ? file : path.resolve(process.cwd(), file),
configKeys = [
'pidFile', 'logFile', 'errFile', 'watch', 'minUptime', 'append',
'silent', 'outFile', 'max', 'command', 'path', 'spinSleepTime',
Expand Down
5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -24,12 +24,11 @@
"colors": "^0.6.2",
"flatiron": "~0.4.2",
"forever-monitor": "^2.0.0",
"nconf": "^0.10.0",
"mkdirp": "^0.5.1",
"nconf": "^0.10.0",
"nssocket": "^0.6.0",
"object-assign": "^4.1.1",
"optimist": "^0.6.1",
"path-is-absolute": "^2.0.0",
"prettyjson": "^1.2.1",
"shush": "^1.0.0",
"utile": "~0.3.0",
Expand Down

0 comments on commit 437ca4a

Please sign in to comment.