@architect/hydrate
Advanced tools
Comparing version 3.0.0-RC.2 to 3.0.0-RC.3
17
cli.js
#!/usr/bin/env node | ||
let minimist = require('minimist') | ||
let _inventory = require('@architect/inventory') | ||
let { banner } = require('@architect/utils') | ||
let { version } = require('./package.json') | ||
let hydrate = require('.') | ||
@@ -16,4 +19,4 @@ | ||
*/ | ||
async function main (options = {}) { | ||
let { inventory } = options | ||
async function main (opts = {}) { | ||
let { inventory } = opts | ||
@@ -38,9 +41,9 @@ let alias = { | ||
if (args.shared) { | ||
hydrate.shared(params) | ||
return hydrate.shared(params) | ||
} | ||
else if (args.update) { | ||
hydrate.update(params) | ||
return hydrate.update(params) | ||
} | ||
else { | ||
hydrate.install(params) | ||
return hydrate.install(params) | ||
} | ||
@@ -55,3 +58,5 @@ } | ||
try { | ||
await main() | ||
let inventory = await _inventory({}) | ||
banner({ inventory, version: `Hydrate ${version}` }) | ||
await main({ inventory }) | ||
} | ||
@@ -58,0 +63,0 @@ catch (err) { |
{ | ||
"name": "@architect/hydrate", | ||
"version": "3.0.0-RC.2", | ||
"version": "3.0.0-RC.3", | ||
"description": "Architect dependency hydrator and shared file manager", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60918
954