Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bcomnes/npm-run-all2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.0.2
Choose a base ref
...
head repository: bcomnes/npm-run-all2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.0.3
Choose a head ref
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on May 20, 2025

  1. Revert "replace minimatch with picomatch"

    This reverts commit 74201f5.
    bcomnes committed May 20, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    bcomnes Bret Comnes
    Copy the full SHA
    5d93a54 View commit details
  2. Merge pull request #175 from bcomnes/revert-pico

    bcomnes authored May 20, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    75bb00e View commit details
  3. 8.0.3

    bcomnes committed May 20, 2025
    Copy the full SHA
    d808b08 View commit details
Showing with 15 additions and 6 deletions.
  1. +8 −1 CHANGELOG.md
  2. +5 −3 lib/match-tasks.js
  3. +2 −2 package.json
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -7,7 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

## [v8.0.2](https://github.com/bcomnes/npm-run-all2/compare/v8.0.1...v8.0.2)
## [v8.0.3](https://github.com/bcomnes/npm-run-all2/compare/v8.0.2...v8.0.3)

### Commits

- Merge pull request #175 from bcomnes/revert-pico [`75bb00e`](https://github.com/bcomnes/npm-run-all2/commit/75bb00e0a13d96cb4f873fd2967ea3ebeaffd815)
- Revert "replace minimatch with picomatch" [`5d93a54`](https://github.com/bcomnes/npm-run-all2/commit/5d93a5485a5749b2b171c24f4e6e9fe0d64299f6)

## [v8.0.2](https://github.com/bcomnes/npm-run-all2/compare/v8.0.1...v8.0.2) - 2025-05-16

### Commits

8 changes: 5 additions & 3 deletions lib/match-tasks.js
Original file line number Diff line number Diff line change
@@ -10,7 +10,8 @@
// Requirements
// ------------------------------------------------------------------------------

const picomatch = require('picomatch')
const { minimatch } = require('minimatch')
const Minimatch = minimatch.Minimatch

// ------------------------------------------------------------------------------
// Helpers
@@ -20,7 +21,7 @@ const COLON_OR_SLASH = /[:/]/g
const CONVERT_MAP = { ':': '/', '/': ':' }

/**
* Swaps ":" and "/", in order to use ":" as the separator in picomatch.
* Swaps ":" and "/", in order to use ":" as the separator in minimatch.
*
* @param {string} s - A text to swap.
* @returns {string} The text which was swapped.
@@ -43,7 +44,8 @@ function createFilter (pattern) {
const spacePos = trimmed.indexOf(' ')
const task = spacePos < 0 ? trimmed : trimmed.slice(0, spacePos)
const args = spacePos < 0 ? '' : trimmed.slice(spacePos)
const match = picomatch(swapColonAndSlash(task), { nonegate: true })
const matcher = new Minimatch(swapColonAndSlash(task), { nonegate: true })
const match = matcher.match.bind(matcher)

return { match, task, args }
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "npm-run-all2",
"type": "commonjs",
"version": "8.0.2",
"version": "8.0.3",
"description": "A CLI tool to run multiple npm-scripts in parallel or sequential. (Maintenance fork)",
"bin": {
"run-p": "bin/run-p/index.js",
@@ -34,7 +34,7 @@
"ansi-styles": "^6.2.1",
"cross-spawn": "^7.0.6",
"memorystream": "^0.3.1",
"picomatch": "^4.0.2",
"minimatch": "^10.0.1",
"pidtree": "^0.6.0",
"read-package-json-fast": "^4.0.0",
"shell-quote": "^1.7.3",