compose-regexp
Advanced tools
Comparing version 0.6.26 to 0.6.27
# Change Log | ||
## v0.6.25 | ||
## v0.6.27 | ||
*2022-01-14* | ||
- More logo tweaks | ||
## v0.6.26 | ||
*2022-01-13* | ||
@@ -6,0 +12,0 @@ |
{ | ||
"name": "compose-regexp", | ||
"version": "0.6.26", | ||
"version": "0.6.27", | ||
"description": "A set of functions to build and compose complex regular expressions", | ||
@@ -53,3 +53,3 @@ "type": "module", | ||
"rollup": "^2.70.1", | ||
"stable-version": "npm:compose-regexp@0.6.25", | ||
"stable-version": "npm:compose-regexp@0.6.26", | ||
"uglify-js": "^2.6.1" | ||
@@ -56,0 +56,0 @@ }, |
@@ -20,6 +20,2 @@ import { command, readFromCmd } from './utils.js' | ||
try { | ||
// `git status --porecelain` is empty when the tree is clean | ||
const {stdout: status} = await readGit('status', '--porcelain') | ||
if (status.trim() !== '') errors.push("/!\\ The git working tree is not clean") | ||
const {stdout: branch} = await readGit('branch', '--show-current') | ||
@@ -30,4 +26,9 @@ if (branch !== "main\n") { | ||
} | ||
// `git status --porecelain` is empty when the tree is clean | ||
const {stdout: status} = await readGit('status', '--porcelain') | ||
if (status.trim() !== '') errors.push("/!\\ The git working tree is not clean") | ||
const _ignore = await readGit('push', '--dry-run', '--porcelain') | ||
} catch({stderr, stdout}) { | ||
errors.push("/!\\ git status or git branch error:", stdout, stderr) | ||
errors.push("/!\\ git status, git branch or git push --dry-run error:", stdout, stderr) | ||
} | ||
@@ -67,3 +68,3 @@ })(), | ||
if (errors.length !== 0) { | ||
console.error('\n' + errors.join('\n\n') + '\n') | ||
console.error('\n' + errors.filter(x=>x!=='').join('\n\n') + '\n') | ||
process.exit(1) | ||
@@ -78,3 +79,3 @@ } | ||
if (changes !== '') { | ||
await git('commit', '-am', `"build artefacts"`) | ||
await git('commit', '-am', `build artefacts`) | ||
} |
Sorry, the diff of this file is not supported yet
174362
2942