Socket
Socket
Sign inDemoInstall

@cocreate/cli

Package Overview
Dependencies
Maintainers
1
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cocreate/cli - npm Package Compare versions

Comparing version 1.12.6 to 1.12.7

7

CHANGELOG.md

@@ -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 @@

2

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc