@zairakai/js-dev-tools 3.4.3 → 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",
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
- if ('' === run('git', ['status', '--porcelain'])) {
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', '-A'])
345
+ run('git', ['add', ...files])
343
346
  run('git', [
344
347
  'commit',
345
348
  '-m',