Skip to content

Commit

Permalink
fix(repo): Ensure lint-staged-utils is built before it's needed (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
luxaritas authored Aug 16, 2022
1 parent 05489db commit f5b16cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
# linting the jest config will fail
- name: Build jest-utils
run: npx nx build jest-utils
# Our lint-staged.config.mjs also relies on @eternagame/lint-staged-utils so that needs to be built to lint
- name: Build lint-staged-utils
run: npx nx build lint-staged-utils
- name: Build
run: npx nx affected --target=build --parallel=3
- name: Lint Project
Expand Down
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Our config library needs to be built before we can run lint-staged
npx nx build lint-staged-utils
npx lint-staged
2 changes: 1 addition & 1 deletion package-lock.json

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

0 comments on commit f5b16cc

Please sign in to comment.