@cocreate/cli
Advanced tools
Comparing version 1.12.6 to 1.12.7
@@ -0,1 +1,8 @@ | ||
## [1.12.7](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.12.6...v1.12.7) (2021-10-13) | ||
### Bug Fixes | ||
* removed deps from install ([0f1e111](https://github.com/CoCreate-app/CoCreate-cli/commit/0f1e11197471e19a5c0b26f3b3aa4f160630a0f8)) | ||
## [1.12.6](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.12.5...v1.12.6) (2021-10-13) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@cocreate/cli", | ||
"version": "1.12.6", | ||
"version": "1.12.7", | ||
"description": "A simple cli component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,3 +0,3 @@ | ||
const fs = require('fs') | ||
const path = require("path") | ||
const fs = require('fs'); | ||
const path = require("path"); | ||
const spawn = require('../spawn'); | ||
@@ -12,3 +12,3 @@ const colors = require('colors'); | ||
try { | ||
repos = addMeta(repos, failed) | ||
repos = addMeta(repos, failed); | ||
@@ -20,27 +20,17 @@ } | ||
des: err.message | ||
}) | ||
}); | ||
} | ||
// console.log(repos) | ||
// return []; | ||
for (let repo of repos) { | ||
await yarnInstall(repo.deps, repo, failed, '') | ||
await yarnInstall(repo.devDeps, repo, failed, '-D ') | ||
await yarnInstall(repo, failed, ''); | ||
} | ||
return failed; | ||
} | ||
}; | ||
async function yarnInstall(deps, repo, failed, param = '') { | ||
async function yarnInstall(repo, failed, param = '') { | ||
try { | ||
if(!deps.length) | ||
return; | ||
deps.unshift("install") | ||
let packageList = deps; | ||
let packageListLog = deps.join(' '); | ||
console.log(`${repo.name}: `.green, `yarn ${packageListLog}`); | ||
// let exitCode = await spawn(`yarn`, ['add', ...param && [param], packageList], { | ||
let exitCode = await spawn( 'yarn', packageList, { | ||
let exitCode = await spawn( 'yarn', ['install'], { | ||
cwd: repo.ppath, stdio: 'inherit', | ||
@@ -51,5 +41,5 @@ }); | ||
name: repo.name, | ||
des: `yarn ${param} ${packageListLog}` | ||
des: `yarn ${param}` | ||
}) | ||
console.error(`${repo.name}: yarn ${param} ${packageListLog}`.red) | ||
console.error(`${repo.name}: yarn ${param}`.red) | ||
} | ||
@@ -56,0 +46,0 @@ } |
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
109557
2125