Skip to content

Commit 7b12943

Browse files
authored
chore: configured knip (#1582)
1 parent 848cf70 commit 7b12943

File tree

4 files changed

+35
-11
lines changed

4 files changed

+35
-11
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Root - Pull Request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- daily
7+
8+
jobs:
9+
knip-report:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- uses: ./.github/actions/install-deps
15+
with:
16+
hash: ${{ hashFiles('**/pnpm-lock.yaml') }}
17+
18+
- uses: ./.github/actions/build-packages
19+
with:
20+
hash: ${{ github.sha }}
21+
22+
- name:
23+
run: pnpm build
24+
25+
- name: Post the knip results
26+
# uses: codex-/knip-reporter@v2
27+
run: pnpm knip

knip.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,19 @@
4141
"services/api": {
4242
"entry": [
4343
"src/run.ts",
44-
"src/bin/**/*.ts",
4544
"src/**/*.{spec,e2e}.ts",
4645
"src/worker/index.ts",
47-
"test/AppTest.ts"
46+
"test/AppTest.ts",
47+
"ormconfig.js"
4848
],
4949
"project": [
50-
"{src,test}/**/*.ts",
50+
"{build,src,test,}/**/*.{ts,js}",
5151
"!src/migrations/*.ts",
52-
"!src/**/*.{spec,e2e}.ts",
53-
"build/**/*.js"
52+
"!src/**/*.{spec,e2e}.ts"
5453
],
54+
"typescript": {
55+
"config": "tsconfig.build.json"
56+
},
5557
"ignore": ["ormconfig.js", "test/__mocks__/**/*", "test/globalSetup.ts"]
5658
},
5759
"services/worker": {

packages/@liexp/core/src/env/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ export const loadAndParseENV =
2828

2929
if (process.env.NODE_ENV === "development") {
3030
loadENV(root, ".env.local");
31+
loadENV(root, ".env");
3132
}
3233

33-
loadENV(root, ".env");
34-
3534
D.enable(process.env.DEBUG ?? "*");
3635

3736
return parseENV(process.env);

services/worker/sea-config.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)