mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-08 20:04:14 +00:00
export resolveProject function from compose module
Signed-off-by: Cameron Diver <cameron@resin.io>
This commit is contained in:
parent
6bcfb2dd51
commit
f560aa7523
@ -40,7 +40,7 @@ compositionFileNames = [
|
||||
|
||||
# look into the given directory for valid compose files and return
|
||||
# the contents of the first one found.
|
||||
resolveProject = (rootDir) ->
|
||||
exports.resolveProject = resolveProject = (rootDir) ->
|
||||
fs = require('mz/fs')
|
||||
Promise.any compositionFileNames.map (filename) ->
|
||||
fs.readFile(path.join(rootDir, filename), 'utf-8')
|
||||
|
Loading…
x
Reference in New Issue
Block a user