Skip to content

Commit

Permalink
chore(deps): get sheetjs from official source (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
morremeyer authored Nov 7, 2023
1 parent dfabba7 commit 70de3c7
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 22 deletions.
26 changes: 26 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
ci:
autofix_commit_msg: |
chore: autofixes from pre-commit
autoupdate_commit_msg: 'chore(deps): update pre-commit dependencies'
# We use renovate for this anyway
autoupdate_schedule: quarterly

default_stages: [commit]

repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 37.45.0
hooks:
- id: renovate-config-validator
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ ynap-parsers to support most of the banks supported by bank2ynab.

If you want to improve YNAP, feel free to submit an issue or open a pull request.

Please set up pre-commit locally and run it before opening a PR:

```sh
pre-commit install
```

## License

This repo and all included packages are licensed under the
Expand Down
62 changes: 41 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ynap-parsers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"mt940-js": "1.0.0",
"papaparse": "5.4.1",
"slugify": "1.6.6",
"xlsx": "0.18.0"
"xlsx": "https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz"
},
"devDependencies": {
"@envelope-zero/ynap-bank2ynab-converter": "1.14.37",
Expand Down
18 changes: 18 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,24 @@
"matchPackageNames": ["node-fetch"],
"matchManagers": ["npm"],
"allowedVersions": "< 3.0.0"
},
{
"description": "Remove leading v for SheetJS",
"matchDatasources": ["gitea-tags"],
"matchPackageNames": ["xlsx"],
"extractVersion": "^v(?<version>.*)$"
}
],
"customManagers": [
{
"description": "SheetJS",
"matchStrings": [
"https://cdn.sheetjs.com/xlsx-(?<currentValue>.*)/xlsx-(.*)\\.tgz"
],
"datasourceTemplate": "gitea-tags",
"registryUrlTemplate": "https://git.sheetjs.com",
"depNameTemplate": "sheetjs/sheetjs",
"fileMatch": ["packages/ynap-parsers/package.json"]
}
],
"hostRules": [
Expand Down

0 comments on commit 70de3c7

Please sign in to comment.