Socket
Socket
Sign inDemoInstall

concurrently

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

concurrently - npm Package Compare versions

Comparing version 7.0.0 to 7.1.0

4

dist/bin/epilogue.js

@@ -55,2 +55,6 @@ "use strict";

example: '$ $0 "npm:watch-*"',
},
{
description: 'Exclude patterns so that between "lint:js" and "lint:fix:js", only "lint:js" is ran',
example: '$ $0 "npm:*(!fix)"'
}

@@ -57,0 +61,0 @@ ];

@@ -25,2 +25,3 @@ "use strict";

const _ = __importStar(require("lodash"));
const OMISSION = /\(!([^\)]+)\)/;
/**

@@ -54,4 +55,6 @@ * Finds wildcards in npm/yarn/pnpm run commands and replaces them with all matching scripts in the

}
const preWildcard = _.escapeRegExp(cmdName.substr(0, wildcardPosition));
const postWildcard = _.escapeRegExp(cmdName.substr(wildcardPosition + 1));
const omissionRegex = cmdName.match(OMISSION);
const cmdNameSansOmission = cmdName.replace(OMISSION, '');
const preWildcard = _.escapeRegExp(cmdNameSansOmission.substr(0, wildcardPosition));
const postWildcard = _.escapeRegExp(cmdNameSansOmission.substr(wildcardPosition + 1));
const wildcardRegex = new RegExp(`^${preWildcard}(.*?)${postWildcard}$`);

@@ -62,2 +65,8 @@ const currentName = commandInfo.name || '';

const match = script.match(wildcardRegex);
if (omissionRegex) {
const toOmit = script.match(new RegExp(omissionRegex[1]));
if (toOmit) {
return;
}
}
if (match) {

@@ -64,0 +73,0 @@ return Object.assign({}, commandInfo, {

5

package.json
{
"name": "concurrently",
"version": "7.0.0",
"version": "7.1.0",
"description": "Run commands concurrently",

@@ -72,3 +72,4 @@ "main": "index.js",

"!**/fixtures",
"!**/*.spec.js"
"!**/*.spec.js",
"!**/*.spec.d.ts"
],

@@ -75,0 +76,0 @@ "jest": {

# Concurrently
[![Build Status](https://github.com/open-cli-tools/concurrently/workflows/Tests/badge.svg)](https://github.com/open-cli-tools/concurrently/actions?workflow=Tests)
[![Build Status](https://github.com/open-cli-tools/concurrently/workflows/Tests/badge.svg)](https://github.com/open-cli-tools/concurrently/actions?workflow=Tests)
[![Coverage Status](https://coveralls.io/repos/github/open-cli-tools/concurrently/badge.svg?branch=master)](https://coveralls.io/github/open-cli-tools/concurrently?branch=master)

@@ -112,2 +112,22 @@

Exclusion is also supported. Given the following scripts in package.json:
```javascript
{
// ...
"scripts": {
"lint:js": "...",
"lint:ts": "...",
"lint:fix:js": "...",
"lint:fix:ts": "...",
// ...
}
// ...
}
```
```bash
# Running only lint:js and lint:ts
# with lint:fix:js and lint:fix:ts excluded
concurrently "npm:lint:*(!fix)"
```
Good frontend one-liner example [here](https://github.com/kimmobrunfeldt/dont-copy-paste-this-frontend-template/blob/5cd2bde719654941bdfc0a42c6f1b8e69ae79980/package.json#L9).

@@ -284,3 +304,3 @@

> **Returns:** an object in the shape `{ commands, result }`.
> **Returns:** an object in the shape `{ result, commands }`.
> - `result`: a `Promise` that resolves if the run was successful (according to `successCondition` option),

@@ -294,3 +314,3 @@ > or rejects, containing an array of [`CloseEvent`](#CloseEvent), in the order that the commands terminated.

const concurrently = require('concurrently');
concurrently([
const { result } = concurrently([
'npm:watch-*',

@@ -305,7 +325,8 @@ { command: 'nodemon', name: 'server' },

cwd: path.resolve(__dirname, 'scripts'),
}).then(success, failure);
});
result.then(success, failure);
```
### `Command`
An object that contains all information about a spawned command, and ways to interact with it.
An object that contains all information about a spawned command, and ways to interact with it.<br>
It has the following properties:

@@ -328,7 +349,7 @@

See [`CloseEvent`](#CloseEvent) for more information.
- `start()`: starts the command, setting up all
- `start()`: starts the command, setting up all
- `kill([signal])`: kills the command, optionally specifying a signal (e.g. `SIGTERM`, `SIGKILL`, etc).
### `CloseEvent`
An object with information about a command's closing event.
An object with information about a command's closing event.<br>
It contains the following properties:

@@ -335,0 +356,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