We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a78f636 commit bf8fa75Copy full SHA for bf8fa75
lib/index.js
@@ -7,7 +7,11 @@ const createIo = require('./io')
7
const normalize = require('./normalize')
8
const install = require('./install')
9
10
-module.exports = async manifest => {
+module.exports = async manifestOrFunction => {
11
+ const promiseForManifest = typeof manifestOrFunction === 'function'
12
+ ? manifestOrFunction()
13
+ : manifestOrFunction
14
+ const manifest = await promiseForManifest
15
const ioType = process.env.CURATOR_IO || manifest.ioType
16
const pkgType = process.env.CURATOR_PKG || manifest.pkgType
17
const hostname = os.hostname()
0 commit comments