Socket
Socket
Sign inDemoInstall

@cocreate/cli

Package Overview
Dependencies
Maintainers
1
Versions
224
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.31.2 to 1.32.0

src/fonts.js

8

CHANGELOG.md

@@ -0,1 +1,9 @@

# [1.32.0](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.31.2...v1.32.0) (2023-06-10)
### Features
* font.js to add color, background and font to console messages. repositores object now located in CoCreate.config.js ([e6c9dc3](https://github.com/CoCreate-app/CoCreate-cli/commit/e6c9dc384d2ecf7037c624b818a25a6c8f31f33a))
* removed colors package in favor of simple custom ./font.js ([a754221](https://github.com/CoCreate-app/CoCreate-cli/commit/a7542215a68e1dc83960c3e4705082d42c033c1e))
## [1.31.2](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.31.1...v1.31.2) (2023-06-10)

@@ -2,0 +10,0 @@

@@ -24,3 +24,475 @@ module.exports = {

}
],
"repositoreies": [
{
'path': '../../CoCreateJS',
'repo': 'github.com/CoCreate-app/CoCreateJS.git'
},
{
'path': '../../CoCreateCSS',
'repo': 'github.com/CoCreate-app/CoCreateCSS.git'
},
{
'path': '../../CoCreate-admin',
'repo': 'github.com/CoCreate-app/CoCreate-admin.git'
},
{
'path': '../../CoCreate-website',
'repo': 'github.com/CoCreate-app/CoCreate-website.git'
},
// {
// 'path': '../../CoCreate-website-template',
// 'repo': 'github.com/CoCreate-app/CoCreate-website-template.git'
// },
// Components
{
'path': '../CoCreate-actions',
'repo': 'github.com/CoCreate-app/CoCreate-actions.git'
},
{
'path': '../CoCreate-api',
'repo': 'github.com/CoCreate-app/CoCreate-api.git'
},
{
'path': '../CoCreate-attributes',
'repo': 'github.com/CoCreate-app/CoCreate-attributes.git'
},
{
'path': '../CoCreate-calculation',
'repo': 'github.com/CoCreate-app/CoCreate-calculation.git'
},
{
'path': '../CoCreate-cli',
'repo': 'github.com/CoCreate-app/CoCreate-cli.git'
},
{
'path': '../CoCreate-clone',
'repo': 'github.com/CoCreate-app/CoCreate-clone.git'
},
{
'path': '../CoCreate-codearea',
'repo': 'github.com/CoCreate-app/CoCreate-codearea.git'
},
{
'path': '../CoCreate-conditional-logic',
'repo': 'github.com/CoCreate-app/CoCreate-conditional-logic.git'
},
{
'path': '../CoCreate-crdt',
'repo': 'github.com/CoCreate-app/CoCreate-crdt.git',
},
{
'path': '../CoCreate-crud-client',
'repo': 'github.com/CoCreate-app/CoCreate-crud-client.git'
},
{
'path': '../CoCreate-css-parser',
'repo': 'github.com/CoCreate-app/CoCreate-css-parser.git'
},
{
'path': '../CoCreate-cursors',
'repo': 'github.com/CoCreate-app/CoCreate-cursors.git'
},
{
'path': '../CoCreate-dnd',
'repo': 'github.com/CoCreate-app/CoCreate-dnd.git'
},
{
'path': '../CoCreate-docs',
'repo': 'github.com/CoCreate-app/CoCreate-docs.git'
},
{
'path': '../CoCreate-element-config',
'repo': 'github.com/CoCreate-app/CoCreate-element-config.git'
},
{
'path': '../CoCreate-element-prototype',
'repo': 'github.com/CoCreate-app/CoCreate-element-prototype.git'
},
{
'path': '../CoCreate-elements',
'repo': 'github.com/CoCreate-app/CoCreate-elements.git'
},
{
'path': '../CoCreate-events',
'repo': 'github.com/CoCreate-app/CoCreate-events.git'
},
{
'path': '../CoCreate-fetch',
'repo': 'github.com/CoCreate-app/CoCreate-fetch.git'
},
{
'path': '../CoCreate-file',
'repo': 'github.com/CoCreate-app/CoCreate-file.git'
},
{
'path': '../CoCreate-filter',
'repo': 'github.com/CoCreate-app/CoCreate-filter.git'
},
{
'path': '../CoCreate-floating-label',
'repo': 'github.com/CoCreate-app/CoCreate-floating-label.git'
},
{
'path': '../CoCreate-form',
'repo': 'github.com/CoCreate-app/CoCreate-form.git'
},
{
'path': '../CoCreate-fullscreen',
'repo': 'github.com/CoCreate-app/CoCreate-fullscreen.git'
},
{
'path': '../CoCreate-hosting',
'repo': 'github.com/CoCreate-app/CoCreate-hosting.git'
},
{
'path': '../CoCreate-indexeddb',
'repo': 'github.com/CoCreate-app/CoCreate-indexeddb.git'
},
{
'path': '../CoCreate-industry',
'repo': 'github.com/CoCreate-app/CoCreate-industry.git'
},
{
'path': '../CoCreate-lazy-loader',
'repo': 'github.com/CoCreate-app/CoCreate-lazy-loader.git'
},
{
'path': '../CoCreate-local-storage',
'repo': 'github.com/CoCreate-app/CoCreate-local-storage.git'
},
{
'path': '../CoCreate-link',
'repo': 'github.com/CoCreate-app/CoCreate-link.git'
},
{
'path': '../CoCreate-message-client',
'repo': 'github.com/CoCreate-app/CoCreate-message-client.git'
},
{
'path': '../CoCreate-modal',
'repo': 'github.com/CoCreate-app/CoCreate-modal.git'
},
{
'path': '../CoCreate-observer',
'repo': 'github.com/CoCreate-app/CoCreate-observer.git'
},
{
'path': '../CoCreate-organizations',
'repo': 'github.com/CoCreate-app/CoCreate-organizations.git'
},
{
'path': '../CoCreate-overlay-scroll',
'repo': 'github.com/CoCreate-app/CoCreate-overlay-scroll.git'
},
{
'path': '../CoCreate-parallax',
'repo': 'github.com/CoCreate-app/CoCreate-parallax.git'
},
{
'path': '../CoCreate-pass',
'repo': 'github.com/CoCreate-app/CoCreate-pass.git'
},
{
'path': '../CoCreate-position',
'repo': 'github.com/CoCreate-app/CoCreate-position.git'
},
{
'path': '../CoCreate-progress',
'repo': 'github.com/CoCreate-app/CoCreate-progress.git'
},
{
'path': '../CoCreate-pwa',
'repo': 'github.com/CoCreate-app/CoCreate-pwa.git'
},
{
'path': '../CoCreate-random-color',
'repo': 'github.com/CoCreate-app/CoCreate-random-color.git'
},
{
'path': '../CoCreate-remove',
'repo': 'github.com/CoCreate-app/CoCreate-remove.git'
},
{
'path': '../CoCreate-render',
'repo': 'github.com/CoCreate-app/CoCreate-render.git'
},
{
'path': '../CoCreate-render-json',
'repo': 'github.com/CoCreate-app/CoCreate-render-json.git'
},
{
'path': '../CoCreate-resize',
'repo': 'github.com/CoCreate-app/CoCreate-resize.git'
},
{
'path': '../CoCreate-resize-observer',
'repo': 'github.com/CoCreate-app/CoCreate-resize-observer.git'
},
{
'path': '../CoCreate-rich-text',
'repo': 'github.com/CoCreate-app/CoCreate-rich-text.git'
},
{
'path': '../CoCreate-scroll',
'repo': 'github.com/CoCreate-app/CoCreate-scroll.git'
},
{
'path': '../CoCreate-search',
'repo': 'github.com/CoCreate-app/CoCreate-search.git'
},
{
'path': '../CoCreate-select',
'repo': 'github.com/CoCreate-app/CoCreate-select.git'
},
{
'path': '../CoCreate-selection',
'repo': 'github.com/CoCreate-app/CoCreate-selection.git'
},
{
'path': '../CoCreate-signup-animation',
'repo': 'github.com/CoCreate-app/CoCreate-signup-animation.git'
},
{
'path': '../CoCreate-socket-client',
'repo': 'github.com/CoCreate-app/CoCreate-socket-client.git'
},
{
'path': '../CoCreate-social-share',
'repo': 'github.com/CoCreate-app/CoCreate-social-share.git'
},
{
'path': '../CoCreate-text',
'repo': 'github.com/CoCreate-app/CoCreate-text.git'
},
{
'path': '../CoCreate-toolbar',
'repo': 'github.com/CoCreate-app/CoCreate-toolbar.git'
},
{
'path': '../CoCreate-unique',
'repo': 'github.com/CoCreate-app/CoCreate-unique.git'
},
{
'path': '../CoCreate-users',
'repo': 'github.com/CoCreate-app/CoCreate-users.git'
},
{
'path': '../CoCreate-utils',
'repo': 'github.com/CoCreate-app/CoCreate-utils.git'
},
{
'path': '../CoCreate-uuid',
'repo': 'github.com/CoCreate-app/CoCreate-uuid.git'
},
{
'path': '../CoCreate-validation',
'repo': 'github.com/CoCreate-app/CoCreate-validation.git'
},
{
'path': '../CoCreate-vdom',
'repo': 'github.com/CoCreate-app/CoCreate-vdom.git'
},
// Modules
{
'path': '../../CoCreate-apps/CoCreate-builder',
'repo': 'github.com/CoCreate-app/CoCreate-builder.git'
},
// {
// 'path':'../../CoCreate-apps/CoCreate-calendar',
// 'repo' : 'github.com/CoCreate-app/CoCreate-calendar.git'
// },
// {
// 'path':'../../CoCreate-apps/CoCreate-checkout',
// 'repo' : 'github.com/CoCreate-app/CoCreate-checkout.git'
// },
{
'path': '../../CoCreate-apps/CoCreate-dashboard',
'repo': 'github.com/CoCreate-app/CoCreate-dashboard.git'
},
{
'path': '../../CoCreate-apps/CoCreate-datatable',
'repo': 'github.com/CoCreate-app/CoCreate-datatable.git'
},
// {
// 'path':'../../CoCreate-apps/CoCreate-email',
// 'repo' : 'github.com/CoCreate-app/CoCreate-email.git'
// },
{
'path': '../../CoCreate-apps/CoCreate-kanban',
'repo': 'github.com/CoCreate-app/CoCreate-kanban.git'
},
{
'path': '../../CoCreate-apps/CoCreate-sandbox',
'repo': 'github.com/CoCreate-app/CoCreate-sandbox.git'
},
// Plugins
{
'path': '../../CoCreate-plugins/CoCreate-charts',
'repo': 'github.com/CoCreate-app/CoCreate-charts.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-croppie',
'repo': 'github.com/CoCreate-app/CoCreate-croppie.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-domain',
'repo': 'github.com/CoCreate-app/CoCreate-domain.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-fullcalendar',
'repo': 'github.com/CoCreate-app/CoCreate-fullcalendar.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-facebook',
'repo': 'github.com/CoCreate-app/CoCreate-facebook.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-google-maps',
'repo': 'github.com/CoCreate-app/CoCreate-google-maps.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-google-auth',
'repo': 'github.com/CoCreate-app/CoCreate-google-auth.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-instagram',
'repo': 'github.com/CoCreate-app/CoCreate-instagram.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-lighthouse',
'repo': 'github.com/CoCreate-app/CoCreate-lighthouse.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-linkedin',
'repo': 'github.com/CoCreate-app/CoCreate-linkedin.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-pickr',
'repo': 'github.com/CoCreate-app/CoCreate-pickr.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-pinterest',
'repo': 'github.com/CoCreate-app/CoCreate-pinterest.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-plaid',
'repo': 'github.com/CoCreate-app/CoCreate-plaid.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-prism',
'repo': 'github.com/CoCreate-app/CoCreate-prism.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-s3',
'repo': 'github.com/CoCreate-app/CoCreate-s3.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-sendgrid',
'repo': 'github.com/CoCreate-app/CoCreate-sendgrid.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-shipengine',
'repo': 'github.com/CoCreate-app/CoCreate-shipengine.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-stripe',
'repo': 'github.com/CoCreate-app/CoCreate-stripe.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-tui-image-editor',
'repo': 'github.com/CoCreate-app/CoCreate-tui-image-editor.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-twilio',
'repo': 'github.com/CoCreate-app/CoCreate-twilio.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-twitter',
'repo': 'github.com/CoCreate-app/CoCreate-twitter.git'
},
{
'path': '../../CoCreate-plugins/CoCreate-uppy',
'repo': 'github.com/CoCreate-app/CoCreate-uppy.git'
},
// {
// 'path': '../CoCreateWS',
// 'repo': 'github.com/CoCreate-app/CoCreateWS.git'
// },
// {
// 'path': '../CoCreateApi',
// 'repo': 'github.com/CoCreate-app/CoCreateApi.git'
// },
// {
// 'path': '../CoCreateLB',
// 'repo': 'github.com/CoCreate-app/CoCreateLB.git'
// },
// // Components
{
'path': '../CoCreate-authenticate',
'repo': 'github.com/CoCreate-app/CoCreate-authenticate.git'
},
{
'path': '../CoCreate-authorize',
'repo': 'github.com/CoCreate-app/CoCreate-authorize.git'
},
{
'path': '../CoCreate-crud-server',
'repo': 'github.com/CoCreate-app/CoCreate-crud-server.git'
},
{
'path': '../CoCreate-file-server',
'repo': 'github.com/CoCreate-app/CoCreate-file-server.git'
},
{
'path': '../CoCreate-loadtest',
'repo': 'github.com/CoCreate-app/CoCreate-loadtest.git'
},
{
'path': '../CoCreate-message-server',
'repo': 'github.com/CoCreate-app/CoCreate-message-server.git'
},
{
'path': '../CoCreate-metrics-server',
'repo': 'github.com/CoCreate-app/CoCreate-metrics-server.git'
},
{
'path': '../CoCreate-mongodb',
'repo': 'github.com/CoCreate-app/CoCreate-mongodb.git'
},
{
'path': '../CoCreate-node-autoscaler',
'repo': 'github.com/CoCreate-app/CoCreate-node-autoscaler.git'
},
{
'path': '../CoCreate-server-side-render',
'repo': 'github.com/CoCreate-app/CoCreate-server-side-render.git'
},
{
'path': '../CoCreate-socket-server',
'repo': 'github.com/CoCreate-app/CoCreate-socket-server.git'
},
// Maybe depreciated
// {
// 'path': '../CoCreate-ide',
// 'repo': 'github.com/CoCreate-app/CoCreate-ide.git'
// },
// {
// 'path': '../CoCreateEmail',
// 'repo': 'github.com/CoCreate-app/CoCreateEmail.git'
// },
]
}

5

package.json
{
"name": "@cocreate/cli",
"version": "1.31.2",
"version": "1.32.0",
"description": "Polyrepo management bash CLI tool. Run all git commands and yarn commands on multiple repositories. Also includes a few custom macros for cloning, installing, etc.",

@@ -39,3 +39,2 @@ "keywords": [

"webpack": "nodejs src/commands/fs/webpack.js",
"docs": "node ./node_modules/@cocreate/docs/src/index.js",
"permissions": "chmod +rwx /home/ubuntu/.nvm/versions/node/v19.8.1/bin/coc"

@@ -62,5 +61,3 @@ },

"dependencies": {
"@cocreate/docs": "^1.8.13",
"@cocreate/file": "^1.2.2",
"colors": "latest",
"glob": "^7.1.7",

@@ -67,0 +64,0 @@ "prettier": "^2.3.2"

21

src/coc.js

@@ -7,3 +7,3 @@ #!/usr/bin/env node

const addMeta = require('./addMeta');
const colors = require('colors');
const { color } = require('./fonts');

@@ -32,6 +32,7 @@

try {
return require(path);
const config = require(path);
return config.repositories;
}
catch (err) {
console.error('can not read repository file in'.red, path, 'error:'.red, err.message.red);
console.error(color.red + 'can not read repository file in' + color.reset, path, color.red + 'error:' + color.reset, err.message);
process.exit(1);

@@ -41,3 +42,3 @@ }

const currentRepoPath = path.resolve(process.cwd(), "./repositories.js");
const currentRepoPath = path.resolve(process.cwd(), "./CoCreate.config.js");
let packageJsonPath = path.resolve(process.cwd(), './package.json');

@@ -49,7 +50,7 @@ let directory

directory = path.dirname(config['c']);
console.warn(`using ${config['c']} configuration`.yellow);
console.warn(color.yellow + `using ${config['c']} configuration` + color.reset);
} else if (!config['self'] && fs.existsSync(currentRepoPath)) {
repos = getRepositories(currentRepoPath);
directory = path.dirname(currentRepoPath);
console.warn(`using ${currentRepoPath} configuration`.yellow);
console.warn(color.yellow + `using ${currentRepoPath} configuration` + color.reset);
} else if (fs.existsSync(packageJsonPath)) {

@@ -64,6 +65,6 @@ let repoPath = path.resolve(process.cwd());

directory = path.dirname(packageJsonPath);
console.warn(`using ${packageJsonPath} configuration`.yellow);
console.warn(color.yellow + `using ${packageJsonPath} configuration` + color.reset);
}
// else {
// console.error(`a configuration file can not be found`.red);
// console.error(color.red + `a configuration file can not be found` + color.reset);
// process.exit(1);

@@ -81,5 +82,5 @@ // }

else {
console.log(' **************** failures **************** '.red);
console.log(color.red + ' **************** failures **************** ' + color.reset);
for (let failure of failed)
console.log(`${failure.name}: ${failure.des}`.red);
console.log(color.red + `${failure.name}: ${failure.des}` + color.reset);

@@ -86,0 +87,0 @@ }

let fs = require('fs');
const path = require("path")
const colors = require('colors');
const util = require('node:util');
const exec = util.promisify(require('node:child_process').exec);
const { color } = require('./fonts');
let pathList, nameList, item = {}, failed = [];

@@ -58,3 +57,3 @@

} else {
failed.push({name: 'get version', des: 'path doesn\'t exist:' + filePath})
failed.push({ name: 'get version', des: 'path doesn\'t exist:' + filePath })
}

@@ -66,4 +65,4 @@ }

if (object) {
let newObject = {...object}
let newObject = { ...object }
if (!object.dependencies)

@@ -78,11 +77,11 @@ return console.log(name, 'not updated')

if (fs.existsSync(filePath)){
if (fs.existsSync(filePath)) {
fs.unlinkSync(filePath)
}
fs.writeFileSync(filePath, JSON.stringify(object, null, 2))
}
} else {
failed.push({name: 'bump version', des: 'path doesn\'t exist:' + filePath})
failed.push({ name: 'bump version', des: 'path doesn\'t exist:' + filePath })
}
}
const spawn = require('../spawn');
const colors = require('colors');
const { color } = require('./fonts');

@@ -10,3 +10,3 @@ module.exports = async function linkPackages(repos, args) {

if (!repo) continue;
if (repo.exclude && repo.exclude.includes('link'))
if (repo.exclude && repo.exclude.includes('link'))
continue

@@ -16,3 +16,3 @@

continue
let exitCode = await spawn(repo.packageManager, ['link'], {

@@ -29,3 +29,3 @@ cwd: repo.absolutePath,

})
console.error(`${repo.name}: ${repo.packageManager} link failed`.red)
console.error(color.red + `${repo.name}: ${repo.packageManager} link failed` + color.reset)
} else {

@@ -42,5 +42,5 @@ console.log(repo.packageManager, 'link', repo.packageName)

name: repo.name,
des: `${ repo.packageManager} link ${ repo.packageName} failed`
des: `${repo.packageManager} link ${repo.packageName} failed`
});
console.error(`${repo.name}: ${ repo.packageManager} link ${ repo.packageName} failed`.red)
console.error(color.red + `${repo.name}: ${repo.packageManager} link ${repo.packageName} failed` + color.reset)
}

@@ -55,3 +55,3 @@ }

failed.push({ name: 'GENERAL', des: err.message })
console.error(`${err}`.red)
console.error(color.red + `${err}` + color.reset)
}

@@ -78,3 +78,3 @@

});
if (exitCode !== 0) {

@@ -85,3 +85,3 @@ failed.push({

})
console.error(`${depMeta.name}: ${packageManager} link failed`.red)
console.error(color.red + `${depMeta.name}: ${packageManager} link failed` + color.reset)
}

@@ -91,3 +91,3 @@ }

if (!depMeta)
depMeta = {packageName: dep}
depMeta = { packageName: dep }
console.log(repo.packageName, 'linking', depMeta.packageName, '...')

@@ -105,3 +105,3 @@

});
console.error(`${repo.name}: ${packageManager} link ${depMeta.packageName} failed`.red)
console.error(color.red + `${repo.name}: ${packageManager} link ${depMeta.packageName} failed` + color.reset)
}

@@ -112,3 +112,3 @@

failed.push({ name: repo.packageName, des: err.message })
console.error(`${err}`.red)
console.error(color.red + `${err}` + color.reset)
}

@@ -115,0 +115,0 @@

const fs = require('fs')
const path = require("path")
const spawn = require('../../spawn');
const colors = require('colors');
const addMeta = require('../../addMeta');

@@ -35,30 +34,30 @@

async function reAdd(deps, repo, failed, param = '') {
try {
if (!deps.length)
try {
if (!deps.length)
return;
deps.unshift("add")
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, {
cwd: repo.absolutePath, stdio: 'inherit',
});
if (exitCode !== 0) {
failed.push({
name: repo.name,
des: `yarn ${param} ${packageListLog}`
})
console.error(`${repo.name}: yarn ${param} ${packageListLog}`.red)
}
}
catch (err) {
deps.unshift("add")
let packageList = deps;
let packageListLog = deps.join(' ');
console.log(color.green + `${repo.name}: ` + color.reset, `yarn ${packageListLog}`);
// let exitCode = await spawn(`yarn`, ['add', ...param && [param], packageList], {
let exitCode = await spawn('yarn', packageList, {
cwd: repo.absolutePath, stdio: 'inherit',
});
if (exitCode !== 0) {
failed.push({
name: repo.name,
des: err.message
des: `yarn ${param} ${packageListLog}`
})
console.error(`${repo.name}: ${err.message}`.red)
console.error(color.red + `${repo.name}: yarn ${param} ${packageListLog}` + color.reset)
}
}
catch (err) {
failed.push({
name: repo.name,
des: err.message
})
console.error(color.red + `${repo.name}: ${err.message}` + color.reset)
}
}

@@ -1,2 +0,1 @@

const colors = require('colors');
const path = require("path");

@@ -7,4 +6,4 @@ const fs = require("fs");

const exec = util.promisify(require('node:child_process').exec);
const { color } = require('./fonts');
module.exports = async function execute(command, repos = [], config) {

@@ -19,8 +18,8 @@ let failed = [];

if (fs.existsSync(predefined)) {
console.warn(`executing a predefined command in ${predefined}`.blue);
console.warn(color.blue + `executing a predefined command in ${predefined}` + color.reset);
if (repos.length == 1)
console.log(`running on ${repos[0].name} repo`.blue)
console.log(color.blue + `running on ${repos[0].name} repo` + color.reset)
else if (repos.length)
console.log('running on all repos'.blue)
console.log(color.blue + 'running on all repos' + color.reset)

@@ -30,8 +29,8 @@ failed = require(predefined)(repos, args)

} else {
for (let repo of repos) {
try {
if (repo.exclude && repo.exclude.includes(type))
if (repo.exclude && repo.exclude.includes(type))
continue
console.log(`${repo.name}: `.green, command)
console.log(color.green + `${repo.name}: ` + color.reset, command)
let exitCode;

@@ -42,3 +41,3 @@ if (config.hideMessage) {

});
if (error)

@@ -63,3 +62,3 @@ exitCode = 1

catch (err) {
console.error(`an error occured executing command in ${repo.name} repository`.red, err.message);;
console.error(color.red + `an error occured executing command in ${repo.name} repository` + color.reset, err.message);;
}

@@ -66,0 +65,0 @@ }

Sorry, the diff of this file is not supported yet

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