Skip to content

Commit 067e609

Browse files
committed
fix ci (partially)
1 parent 8772bc9 commit 067e609

File tree

8 files changed

+35
-123
lines changed

8 files changed

+35
-123
lines changed

.github/workflows/lint_test_build.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,22 @@ jobs:
1111
- name: Checkout code
1212
uses: actions/checkout@v3
1313

14-
- name: Set up Node.js
15-
uses: actions/setup-node@v3
14+
- name: Set up Deno
15+
uses: denoland/setup-deno@v2
1616
with:
17-
node-version: "22"
17+
deno-version: "2.x"
1818

1919
- name: Install dependencies
20-
run: npm install
20+
run: deno install
21+
22+
- name: Deno check
23+
run: deno check
2124

22-
- name: Lint
23-
run: npm run lint:check
25+
- name: Deno lint
26+
run: deno lint
27+
28+
- name: Deno fmt (check)
29+
run: deno fmt --check
2430

2531
tests:
2632
runs-on: ubuntu-latest
@@ -29,15 +35,15 @@ jobs:
2935
uses: actions/checkout@v3
3036

3137
- name: Set up Node.js
32-
uses: actions/setup-node@v3
38+
uses: denoland/setup-deno@v2
3339
with:
34-
node-version: "22"
40+
deno-version: "2.x"
3541

3642
- name: Install dependencies
37-
run: npm install
43+
run: deno install
3844

3945
- name: Tests
40-
run: npm run test
46+
run: deno task test
4147

4248
build:
4349
runs-on: ubuntu-latest
@@ -46,12 +52,9 @@ jobs:
4652
uses: actions/checkout@v3
4753

4854
- name: Set up Node.js
49-
uses: actions/setup-node@v3
55+
uses: denoland/setup-deno@v2
5056
with:
51-
node-version: "22"
57+
deno-version: "2.x"
5258

5359
- name: Install dependencies
54-
run: npm install
55-
56-
- name: Build
57-
run: npm run build
60+
run: deno compile

deno.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
"compile:cli": "deno task --config packages/cli/deno.json compile",
99
"compile": "deno task --config packages/app/deno.json build && deno task --config packages/cli/deno.json compile",
1010
"compile:all": "deno task --config packages/app/deno.json build && deno task --config packages/cli/deno.json 'compile-*'",
11-
"test": "deno test",
12-
"lint": "deno lint",
13-
"fmt": "deno fmt"
11+
"test": "deno run -A npm:vitest",
12+
"lint": "deno fmt && deno check &&deno lint --fix"
13+
},
14+
"imports": {
15+
"vitest": "npm:vitest@^3.1.3"
1416
}
1517
}

deno.lock

Lines changed: 5 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/app/deno.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"@radix-ui/react-separator": "npm:@radix-ui/react-separator@^1.1.6",
1313
"@radix-ui/react-slider": "npm:@radix-ui/react-slider@^1.3.4",
1414
"@radix-ui/react-slot": "npm:@radix-ui/react-slot@^1.2.2",
15-
"@radix-ui/react-switch": "npm:@radix-ui/react-switch@^1.2.4",
1615
"@radix-ui/react-toast": "npm:@radix-ui/react-toast@^1.2.13",
1716
"@radix-ui/react-tooltip": "npm:@radix-ui/react-tooltip@^1.2.6",
1817
"@radix-ui/themes": "npm:@radix-ui/themes@^3.2.1",
@@ -22,16 +21,13 @@
2221
"@types/react-dom": "npm:@types/react-dom@^19.1.3",
2322
"@types/react-router": "npm:@types/react-router@^5.1.20",
2423
"@vitejs/plugin-react": "npm:@vitejs/plugin-react@^4.4.1",
25-
"autoprefixer": "npm:autoprefixer@^10.4.21",
2624
"class-variance-authority": "npm:class-variance-authority@^0.7.1",
2725
"clsx": "npm:clsx@^2.1.1",
2826
"cytoscape-fcose": "npm:cytoscape-fcose@^2.2.0",
2927
"lucide-react": "npm:lucide-react@^0.508.0",
3028
"react": "npm:react@^19.1.0",
3129
"react-dom": "npm:react-dom@^19.1.0",
32-
"react-icons": "npm:[email protected]",
3330
"react-router": "npm:react-router@^7.5.3",
34-
"react-toastify": "npm:react-toastify@^11.0.5",
3531
"react-resizable-panels": "npm:react-resizable-panels@^3.0.1",
3632
"cytoscape": "npm:[email protected]",
3733
"tailwind-merge": "npm:tailwind-merge@^3.2.0",

packages/app/src/components/shadcn/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ our application's theme.
1111

1212
## Important Notes
1313

14-
- Do not modify these component files directly
15-
- If customization is needed, extend the components in a separate file
16-
- Updates to these components should be done by updating the shadcn/ui packages
17-
and re-importing
14+
Modification of these files can have consequenses on other shadcn/ui components.
15+
Make sure to double check before mofifying these
1816

1917
For more information on how to use or customize these components, refer to the
2018
[shadcn/ui documentation](https://ui.shadcn.com/docs).

packages/app/src/components/shadcn/Switch.tsx

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

packages/cli/deno.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"tree-sitter-c-sharp": "npm:tree-sitter-c-sharp@^0.23.1",
1515
"tree-sitter-python": "npm:tree-sitter-python@^0.23.6",
1616
"uuid": "npm:uuid@^11.1.0",
17-
"vitest": "npm:vitest@^3.1.3",
1817
"yargs": "npm:yargs@^17.7.2",
1918
"zod": "npm:zod@^3.24.4"
2019
},

packages/cli/src/languagePlugins/csharp/testFiles/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import path from "node:path";
33
import type Parser from "tree-sitter";
44
import { csharpParser } from "../../../helpers/treeSitter/parsers.ts";
55

6-
export const csharpFilesFolder = path.join(__dirname, "csharpFiles");
6+
export const csharpFilesFolder = path.join(
7+
import.meta.dirname as string,
8+
"csharpFiles",
9+
);
710

811
const csharpFilesMap = new Map<
912
string,

0 commit comments

Comments
 (0)