Skip to content

Commit

Permalink
Added missing packages for ini and properties format.
Browse files Browse the repository at this point in the history
  • Loading branch information
alinex committed Feb 3, 2016
1 parent 00b089b commit 4d489a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"chokidar": ">=0.10.0 <1.0.0 || 1.x",
"coffee-script": "^1.9.3",
"debug": "^2.2.0",
"ini": "1.x",
"ini": "^1.3.4",
"js-yaml": "^3.5.2",
"properties": "^1.2.1",
"request": "^2.69.0",
Expand All @@ -62,4 +62,4 @@
"node": ">=0.10"
},
"os": []
}
}
5 changes: 3 additions & 2 deletions src/load.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ loadOrigin = (origin, cb) ->
# ### Load file origin
loadFiles = (origin, path, cb) ->
# find files
[path, pattern] = path.match ///
parts = path.match ///
^
(
[^?*[{@]*$ # everything till end without pattern
Expand All @@ -103,7 +103,8 @@ loadFiles = (origin, path, cb) ->
)?
(.*) # part containing pattern to end
$
///[1..] # prevent the complete match
///
[path, pattern] = parts[1..] if parts.length > 1
path ?= process.cwd() # make relative links absolute
path = "#{process.cwd()}/#{path}" unless path[0] is '/'
path = fspath.resolve path
Expand Down

0 comments on commit 4d489a4

Please sign in to comment.