fix environment detection

This commit is contained in:
2017-05-15 18:27:13 +02:00
parent a5633a01c5
commit 800e4d8956
5 changed files with 64 additions and 16 deletions

View File

@@ -27,6 +27,7 @@ smartcli.addCommand('build')
.then(NpmciEnv.configStore)
.catch(err => {
console.log(err)
process.exit(1)
})
})
@@ -35,6 +36,10 @@ smartcli.addCommand('clean')
.then((argv) => {
clean()
.then(NpmciEnv.configStore)
.catch(err => {
console.log(err)
process.exit(1)
})
})
// command
@@ -42,6 +47,10 @@ smartcli.addCommand('command')
.then((argv) => {
command()
.then(NpmciEnv.configStore)
.catch(err => {
console.log(err)
process.exit(1)
})
})
// install
@@ -49,6 +58,10 @@ smartcli.addCommand('install')
.then((argv) => {
install(argv._[ 1 ])
.then(NpmciEnv.configStore)
.catch(err => {
console.log(err)
process.exit(1)
})
})
// prepare
@@ -56,6 +69,10 @@ smartcli.addCommand('prepare')
.then((argv) => {
prepare(argv._[ 1 ])
.then(NpmciEnv.configStore)
.catch(err => {
console.log(err)
process.exit(1)
})
})
// publish
@@ -63,6 +80,10 @@ smartcli.addCommand('publish')
.then((argv) => {
publish(argv._[ 1 ])
.then(NpmciEnv.configStore)
.catch(err => {
console.log(err)
process.exit(1)
})
})
// test
@@ -70,6 +91,10 @@ smartcli.addCommand('test')
.then((argv) => {
test(argv._[ 1 ])
.then(NpmciEnv.configStore)
.catch(err => {
console.log(err)
process.exit(1)
})
})
// trigger