Skip to content

Commit

Permalink
Merge pull request #65 from sanctuary-js/davidchambers/scripts
Browse files Browse the repository at this point in the history
simplify `scripts` checks in `lint-package-json`
  • Loading branch information
davidchambers committed Dec 28, 2023
2 parents d8747b7 + 7ec7c09 commit e775a80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/lint-package-json
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ assert "isSortedObject(pkg.repository)
&& pkg.repository.url === 'git://github.com/$owner/$name.git'"

assert "isSortedObject(pkg.scripts)
&& matches(pkg.scripts.doctest, /^(bin[/]|sanctuary-)doctest$/)
&& matches(pkg.scripts.lint, /^(bin[/]|sanctuary-)lint$/)
&& matches(pkg.scripts.release, /^(bin[/]|sanctuary-)release$/)
&& matches(pkg.scripts.test, /^npm run lint && (bin[/]|sanctuary-)test && npm run doctest$/)"
&& pkg.scripts.doctest === 'sanctuary-doctest'
&& pkg.scripts.lint === 'sanctuary-lint'
&& pkg.scripts.release === 'sanctuary-release'
&& pkg.scripts.test === 'npm run lint && sanctuary-test && npm run doctest'"

assert "isSortedObject(pkg.dependencies)"

Expand Down
Empty file added scripts/lint-package-json
Empty file.

0 comments on commit e775a80

Please sign in to comment.