Skip to content

Commit

Permalink
chore: configured knip
Browse files Browse the repository at this point in the history
  • Loading branch information
ascariandrea committed Dec 1, 2024
1 parent c3a3463 commit 2b5fda9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/root-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Root - Pull Request

on:
pull_request:
branches:
- daily

jobs:
knip-report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: ./.github/actions/install-deps
with:
hash: ${{ hashFiles('**/pnpm-lock.yaml') }}

- uses: ./.github/actions/build-packages
with:
hash: ${{ github.sha }}

- name: Post the knip results
# uses: codex-/knip-reporter@v2
run: pnpm knip
6 changes: 3 additions & 3 deletions packages/@liexp/core/src/frontend/vite/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export const defineViteConfig = <A extends Record<string, any>>(
config.env.decode,
(env) => {
if (env._tag === "Left") {
// eslint-disable-next-line
console.error(failure(env.left));
throw new Error("Wrong env");
// eslint-disable-next-line no-console
console.error(`process.env decode failed: \n`, failure(env.left));
return { VIDE_NODE_ENV: _mode } as any;

Check warning on line 39 in packages/@liexp/core/src/frontend/vite/config.ts

View workflow job for this annotation

GitHub Actions / pull_request

Unexpected any. Specify a different type
}
return env.right;
},
Expand Down

0 comments on commit 2b5fda9

Please sign in to comment.