export resolveProject function from compose module

Signed-off-by: Cameron Diver <cameron@resin.io>
This commit is contained in:
Cameron Diver 2018-10-16 11:23:20 +01:00 committed by Tim Perry
parent 6bcfb2dd51
commit f560aa7523

View File

@ -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')