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 2, 2024
1 parent 90911fe commit cadcf83
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 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
3 changes: 2 additions & 1 deletion knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"src/bin/**/*.ts",
"src/**/*.{spec,e2e}.ts",
"src/worker/index.ts",
"test/AppTest.ts"
"test/AppTest.ts",
"ormconfig.js"
],
"project": [
"{src,test}/**/*.ts",
Expand Down
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 cadcf83

Please sign in to comment.