npm-run-all2
Advanced tools
Comparing version 6.2.1 to 6.2.2
@@ -10,4 +10,10 @@ # Changelog | ||
## [v6.2.1](https://github.com/bcomnes/npm-run-all2/compare/v6.2.0...v6.2.1) | ||
## [v6.2.2](https://github.com/bcomnes/npm-run-all2/compare/v6.2.1...v6.2.2) | ||
### Commits | ||
- Revert "Compatibility: npm, yarn and pnpm run scripts" [`fc35f0d`](https://github.com/bcomnes/npm-run-all2/commit/fc35f0dc4f78afc1c631fa94b6ac85ba0fb0e7b1) | ||
## [v6.2.1](https://github.com/bcomnes/npm-run-all2/compare/v6.2.0...v6.2.1) - 2024-07-03 | ||
### Merged | ||
@@ -14,0 +20,0 @@ |
@@ -115,26 +115,5 @@ /** | ||
function parsePatterns (patternOrPatterns, args) { | ||
let patterns = toArray(patternOrPatterns) | ||
const patterns = toArray(patternOrPatterns) | ||
const hasPlaceholder = patterns.some(pattern => ARGS_PATTERN.test(pattern)) | ||
const isNPM = process.env.npm_config_user_agent && process.env.npm_config_user_agent.startsWith('npm') | ||
if (!isNPM) { | ||
// yarn | pnpm | ||
patterns = patterns.map((pattern) => { | ||
const match = ARGS_PATTERN.exec(pattern) | ||
if (!match) { | ||
return pattern | ||
} | ||
const patternList = pattern.split(' ') | ||
const doubleDashIndex = patternList.findIndex((item) => item === '--') | ||
patternList.splice(doubleDashIndex, 1) | ||
pattern = patternList.join(' ') | ||
return pattern | ||
}) | ||
} | ||
const hasPlaceholder = patterns.some((pattern) => ARGS_PATTERN.test(pattern)) | ||
return hasPlaceholder ? applyArguments(patterns, args) : patterns | ||
@@ -141,0 +120,0 @@ } |
{ | ||
"name": "npm-run-all2", | ||
"version": "6.2.1", | ||
"version": "6.2.2", | ||
"description": "A CLI tool to run multiple npm-scripts in parallel or sequential. (Maintainence fork)", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
20
220336
3926