Skip to content

Commit

Permalink
Merge pull request #48 from gamechanger/ms/sync
Browse files Browse the repository at this point in the history
switching to better sync script
  • Loading branch information
miki725 authored Sep 7, 2022
2 parents 8ee49ca + bf0114d commit 38fc87d
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 38fc87d

Please sign in to comment.