@zairakai/js-dev-tools 3.4.2 → 3.4.4
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.
|
|
3
|
+
"version": "3.4.4",
|
|
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",
|
|
@@ -333,13 +333,16 @@ async function update(config) {
|
|
|
333
333
|
const after = JSON.parse(readFileSync(ecosystem.file, 'utf8'))
|
|
334
334
|
const rows = diffDependencies(before, after, ecosystem.all)
|
|
335
335
|
|
|
336
|
-
|
|
336
|
+
// Only the manifest and the lock file: the postinstall of the tools can rewrite other files of the project in CI.
|
|
337
|
+
const files = [ecosystem.file, ...['package-lock.json', 'composer.lock'].filter((file) => existsSync(file))]
|
|
338
|
+
|
|
339
|
+
if ('' === run('git', ['status', '--porcelain', '--', ...files])) {
|
|
337
340
|
log('Everything is up to date.')
|
|
338
341
|
return
|
|
339
342
|
}
|
|
340
343
|
|
|
341
344
|
const table = formatChanges(rows)
|
|
342
|
-
run('git', ['add',
|
|
345
|
+
run('git', ['add', ...files])
|
|
343
346
|
run('git', [
|
|
344
347
|
'commit',
|
|
345
348
|
'-m',
|
|
@@ -393,8 +396,9 @@ async function tag(config) {
|
|
|
393
396
|
|
|
394
397
|
run('git', ['fetch', '--tags', '--quiet'])
|
|
395
398
|
const last = latestTag(run('git', ['tag', '--list']).split('\n'))
|
|
399
|
+
// git reads a basic regular expression: the parentheses of the subject are literal.
|
|
396
400
|
const commits = last
|
|
397
|
-
? run('git', ['log', `${last}..HEAD`, '--format=%s', `--grep=^${COMMIT_SUBJECT
|
|
401
|
+
? run('git', ['log', `${last}..HEAD`, '--format=%s', `--grep=^${COMMIT_SUBJECT}`])
|
|
398
402
|
.split('\n')
|
|
399
403
|
.filter(Boolean)
|
|
400
404
|
: []
|