Skip to content

Commit

Permalink
switching to better sync script
Browse files Browse the repository at this point in the history
  • Loading branch information
miki725 committed Sep 7, 2022
1 parent 8b00f3b commit bf0114d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 59 deletions.
11 changes: 3 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
---

- repo: local
- repo: https://github.com/miki725/pre-commit-sync
rev: 0.1.0.a1
hooks:
- id: sync_versions
name: sync versions of additional_dependencies in .pre-commit-hooks.yaml
language: script
entry: ./sync_versions.sh
pass_filenames: false
files: ^package.json$
- id: pre-commit-sync
30 changes: 12 additions & 18 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,15 @@
- file
files: \.(js|ts)$
additional_dependencies:
- '@typescript-eslint/[email protected]' # sync:package.json
- '@typescript-eslint/[email protected]' # sync:package.json
- '[email protected]' # sync:package.json
- '[email protected]' # sync:package.json
- '[email protected]' # sync:package.json
- '[email protected]' # sync:package.json
- '[email protected]' # sync:package.json
- '[email protected]' # sync:package.json
- '[email protected]' # sync:package.json
- '[email protected]' # sync:package.json
- '[email protected]' # sync:package.json
- '[email protected]' # sync:package.json

- id: sync_versions
name: sync versions of additional_dependencies in .pre-commit-hooks.yaml
language: script
entry: ./sync_versions.sh
files: ^package.json$
- '@typescript-eslint/[email protected]' # sync:yarn.lock
- '@typescript-eslint/[email protected]' # sync:yarn.lock
- '[email protected]' # sync:yarn.lock
- '[email protected]' # sync:yarn.lock
- '[email protected]' # sync:yarn.lock
- '[email protected]' # sync:yarn.lock
- '[email protected]' # sync:yarn.lock
- '[email protected]' # sync:yarn.lock
- '[email protected]' # sync:yarn.lock
- '[email protected]' # sync:yarn.lock
- '[email protected]' # sync:yarn.lock
- '[email protected]' # sync:yarn.lock
33 changes: 0 additions & 33 deletions sync_versions.sh

This file was deleted.

0 comments on commit bf0114d

Please sign in to comment.