Skip to content

Commit

Permalink
优化软件包安装日志
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhoutao committed Dec 15, 2024
1 parent 0c26a97 commit 5c3d106
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async function installModule(module, version, url, registry_url) {
// if( check !== false){
// return check;
// }
console.log('install package: ', module, version, url)
console.log('install package: ', module, version, url, registry_url)
module = module || "";
activePromise = activePromise.then(async function() {
//TODO: ensure module is 'safe'
Expand Down Expand Up @@ -198,6 +198,7 @@ async function installModule(module, version, url, registry_url) {
yarnArgs.push('--registry')
yarnArgs.push(registry_url)
}
console.log('command run:', yarnCommand, yarnArgs.join(' '))
return exec.run(yarnCommand,yarnArgs,{
cwd: installDir
}, true).then(result => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ module.exports = {
async handler(){
const settings = this.settings;
const packages = settings.STEEDOS_INITIAL_PACKAGES;
console.log('install initial packages: ', packages);
if(_.isString(packages) && packages){
console.log('install initial packages: ', packages);
for (const packageName of packages.split(',')) {
try {
const parsed = npa(packageName);
Expand Down

0 comments on commit 5c3d106

Please sign in to comment.