Skip to content

Commit

Permalink
chore: bump package-json-validator dep to 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Jan 15, 2025
1 parent f37aa93 commit c805240
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@altano/repository-tools": "^0.1.1",
"detect-indent": "6.1.0",
"detect-newline": "3.1.0",
"package-json-validator": "^0.7.0",
"package-json-validator": "^0.8.0",
"semver": "^7.5.4",
"sort-object-keys": "^1.1.3",
"sort-package-json": "^2.12.0",
Expand All @@ -72,7 +72,6 @@
"@release-it/conventional-changelog": "^10.0.0",
"@types/estree": "^1.0.6",
"@types/node": "^22.0.0",
"@types/package-json-validator": "^0.6.1",
"@types/semver": "^7.5.6",
"@types/sort-object-keys": "^1.1.3",
"@types/validate-npm-package-name": "^4.0.2",
Expand Down
18 changes: 5 additions & 13 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/rules/valid-package-definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const rule = createRule({
"Program:exit"() {
const validation = PackageValidator.validate(
context.sourceCode.text,
) as PackageValidator.ValidationSuccessResult;
);

validation.errors?.filter(isUsableError).forEach((message) => {
if (message) {
Expand Down

0 comments on commit c805240

Please sign in to comment.