@zairakai/js-dev-tools 3.4.1 → 3.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zairakai/js-dev-tools",
3
- "version": "3.4.1",
3
+ "version": "3.4.3",
4
4
  "description": "The unified and centralized development toolkit for JavaScript/TypeScript projects - ESLint, Prettier, Stylelint, Knip, Vitest, Git Hooks, and GitLab CI pipeline templates",
5
5
  "keywords": [
6
6
  "dev-tools",
@@ -319,7 +319,7 @@ async function update(config) {
319
319
  const ecosystem = ECOSYSTEMS[detectEcosystem()]
320
320
  const before = JSON.parse(run('git', ['show', `HEAD:${ecosystem.file}`]))
321
321
  const branch = `${BRANCH_PREFIX}-${new Date().toISOString().slice(0, 10).replaceAll('-', '')}`
322
- run('git', ['switch', '-c', branch])
322
+ run('git', ['switch', '-C', branch])
323
323
 
324
324
  // A PHP project was prepared by the job before this one, in its own image: only npm is updated here.
325
325
  if ('package.json' === ecosystem.file) {
@@ -393,8 +393,9 @@ async function tag(config) {
393
393
 
394
394
  run('git', ['fetch', '--tags', '--quiet'])
395
395
  const last = latestTag(run('git', ['tag', '--list']).split('\n'))
396
+ // git reads a basic regular expression: the parentheses of the subject are literal.
396
397
  const commits = last
397
- ? run('git', ['log', `${last}..HEAD`, '--format=%s', `--grep=^${COMMIT_SUBJECT.replace(/[()]/g, '\\$&')}`])
398
+ ? run('git', ['log', `${last}..HEAD`, '--format=%s', `--grep=^${COMMIT_SUBJECT}`])
398
399
  .split('\n')
399
400
  .filter(Boolean)
400
401
  : []