@covector/command
Advanced tools
Comparing version 0.3.1 to 0.3.2
# Changelog | ||
## \[0.3.2] | ||
- Mock out full Github Release flow to help in testing the Github Action. Adjust command pipe to function to fix `undefined` being piped to Github Release body. | ||
- [a7e1b20](https://www.github.com/jbolda/covector/commit/a7e1b209c704829bc8cb54bd220862e627bbee01) fix: mock out full GitHub release flow ([#172](https://www.github.com/jbolda/covector/pull/172)) on 2021-03-27 | ||
## \[0.3.1] | ||
@@ -4,0 +9,0 @@ |
@@ -20,2 +20,12 @@ 'use strict'; | ||
for (let pkg of commands) { | ||
const initialStdout = pkgCommandsRan && | ||
//@ts-ignore | ||
pkgCommandsRan[pkg.pkg] && | ||
//@ts-ignore | ||
pkgCommandsRan[pkg.pkg][`${commandPrefix}command`] && | ||
//@ts-ignore | ||
typeof pkgCommandsRan[pkg.pkg][`${commandPrefix}command`] === "string" | ||
? //@ts-ignore | ||
pkgCommandsRan[pkg.pkg][`${commandPrefix}command`] | ||
: false; | ||
//@ts-ignore | ||
@@ -29,3 +39,3 @@ if (!pkg[`${commandPrefix}command`]) | ||
: c; | ||
let stdout = ""; | ||
let stdout = initialStdout ? `${initialStdout}\n` : ""; | ||
for (let pubCommand of pubCommands) { | ||
@@ -62,3 +72,3 @@ const runningCommand = Object.assign({}, (typeof pubCommand === "object" | ||
try { | ||
const pipeToFunction = Object.assign(Object.assign({}, pkg), { pkgCommandsRan: _pkgCommandsRan }); | ||
const pipeToFunction = Object.assign(Object.assign({}, pkg), { pkgCommandsRan: Object.assign(Object.assign({}, _pkgCommandsRan[pkg.pkg]), { [`${commandPrefix}command`]: stdout }) }); | ||
yield runningCommand.command(pipeToFunction); | ||
@@ -65,0 +75,0 @@ if (typeof pubCommand === "object" && pubCommand.pipe) { |
{ | ||
"name": "@covector/command", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"license": "Apache-2.0", | ||
@@ -26,3 +26,3 @@ "homepage": "https://github.com/jbolda/covector#readme", | ||
"devDependencies": { | ||
"@covector/assemble": "0.6.0", | ||
"@covector/assemble": "0.6.1", | ||
"@rollup/plugin-typescript": "^8.2.0", | ||
@@ -29,0 +29,0 @@ "rollup": "^2.42.4", |
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
14933
182