Aksha Thomas hace 3 años
padre
commit
30f1dd5515
Se han modificado 1 ficheros con 9 adiciones y 8 borrados
  1. 9
    8
      index.js

+ 9
- 8
index.js Ver fichero

@@ -1266,7 +1266,7 @@ var op = {
) )

var npmbuildrepos = ['loopback-jsonapi-model-serializer']
npmbuildrepos = []
// npmbuildrepos = []
npmbuildrepos.forEach(repo => {
tasks.push(() => {
return nodeShellExec('npm', ['i --force'], {
@@ -1288,9 +1288,9 @@ var op = {
})
})

any(tasks).then(() => {
return any(tasks).then(() => {

gitRepos.push('client/server');
gitRepos.push('chess-server-lib/server');
gitRepos = gitRepos.concat(elevatedRunasRepos);

// gitRepos = [
@@ -1303,17 +1303,16 @@ var op = {
var env = Object.assign({}, process.env)
delete env.NODE_ENV
gitRepos.forEach(repodef => {

rmtasks.push(
// () => {
// console.log(`--rm package-lock.json for ${repodef.repo}--------------------`)
// return nodeShellExec(`"${gitbash}"`, ['-c', '"rm package-lock.json"'], {
(callShellTask(['rm', ['package-lock.json'], {
callshelltask(['rm', ['package-lock.json'], {
inherit: true, shell: true
, cwd: instanceroot + '/' + repodef.repo
, env: process.env
, title: `rm 'package-lock.json' for ${repodef.repo}`
}]))()
}])
.then(()=>{
console.log(`--rm package-lock.json for ${repodef.repo}--------------------`)
}).catch((e) => { console.error(e) })
@@ -1373,7 +1372,7 @@ var op = {
// console.log('rmtasks.length : ' + rmtasks.length)
return Promise.all(rmtasks).then(() => any(repotasks));
}).catch(e => {
console.error(e)
}).finally(statuslog.finally)

}
@@ -1503,7 +1502,9 @@ var op = {

console.log(`No change detected. Already using requested specs : ${runconfig.NODE_ENV} ${runconfig.use}`)
if (processedArgs.runas) { fs.writeFileSync('run.done', 'success') }
return
if (existsSync('config') && existsSync('data')){
return
}
}

var tasks = [

Cargando…
Cancelar
Guardar