Skip to content

Commit 437ca4a

Browse files
authored
Remove unnecessary path-is-absolute dependency (#1062)
1 parent 8f739b0 commit 437ca4a

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

lib/forever/cli.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ var fs = require('fs'),
1111
util = require('util'),
1212
colors = require('colors'),
1313
cliff = require('cliff'),
14-
isAbsolute = require('path-is-absolute'),
1514
flatiron = require('flatiron'),
1615
shush = require('shush'),
1716
prettyjson = require('prettyjson'),
@@ -204,7 +203,7 @@ function checkColumn(name) {
204203
//
205204
var getOptions = cli.getOptions = function (file) {
206205
var options = {},
207-
absFile = isAbsolute(file) ? file : path.resolve(process.cwd(), file),
206+
absFile = path.isAbsolute(file) ? file : path.resolve(process.cwd(), file),
208207
configKeys = [
209208
'pidFile', 'logFile', 'errFile', 'watch', 'minUptime', 'append',
210209
'silent', 'outFile', 'max', 'command', 'path', 'spinSleepTime',

package-lock.json

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@
2424
"colors": "^0.6.2",
2525
"flatiron": "~0.4.2",
2626
"forever-monitor": "^2.0.0",
27-
"nconf": "^0.10.0",
2827
"mkdirp": "^0.5.1",
28+
"nconf": "^0.10.0",
2929
"nssocket": "^0.6.0",
3030
"object-assign": "^4.1.1",
3131
"optimist": "^0.6.1",
32-
"path-is-absolute": "^2.0.0",
3332
"prettyjson": "^1.2.1",
3433
"shush": "^1.0.0",
3534
"utile": "~0.3.0",

0 commit comments

Comments
 (0)