Skip to content

Commit 2ec6666

Browse files
committed
chore: migrate build to vite-plus, add vitest tests, replace prettier with oxc
Swap tsc/jest/prettier for vite-plus/vitest/oxc to match nopeek's toolchain. Add 31 tests covering sanitization, CRUD, search, relations, and cascading deletes. Use node: import prefix throughout.
1 parent b56aab1 commit 2ec6666

File tree

12 files changed

+1781
-2800
lines changed

12 files changed

+1781
-2800
lines changed

.changeset/eight-phones-laugh.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"mcp-memory-libsql": patch
3+
---
4+
5+
Migrate build to vite-plus, add vitest tests, replace prettier with oxc, use node: imports

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ build/
1212
.env.*.local
1313

1414
# IDE
15-
.vscode/
1615
.idea/
1716
*.swp
1817
*.swo

.prettierrc

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

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"editor.defaultFormatter": "oxc.oxc-vscode",
3+
"editor.formatOnSave": true
4+
}

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@
3333
"relevance-ranking"
3434
],
3535
"scripts": {
36-
"build": "tsc && chmod +x dist/index.js",
36+
"build": "vp pack",
3737
"start": "node dist/index.js",
38-
"dev": "node --loader ts-node/esm src/index.ts",
39-
"test": "jest",
40-
"migrate": "node --loader ts-node/esm src/db/migrations/run.ts",
38+
"dev": "vp pack --watch",
39+
"test": "vp test",
40+
"test:watch": "vp test watch",
41+
"check": "vp check",
42+
"check:fix": "vp check --fix",
4143
"prepare": "pnpm run build",
4244
"changeset": "changeset",
4345
"version": "changeset version",
@@ -47,18 +49,16 @@
4749
"@libsql/client": "^0.17.2",
4850
"@tmcp/adapter-valibot": "^0.1.5",
4951
"@tmcp/transport-stdio": "^0.4.2",
50-
"@types/node": "^25.5.2",
5152
"dotenv": "^17.4.0",
5253
"tmcp": "^1.19.3",
5354
"valibot": "^1.3.1"
5455
},
5556
"devDependencies": {
5657
"@changesets/cli": "^2.30.0",
57-
"@types/jest": "^30.0.0",
58-
"jest": "^30.3.0",
59-
"ts-jest": "^29.4.9",
60-
"ts-node": "^10.9.2",
61-
"typescript": "^6.0.2"
58+
"@types/node": "^25.5.2",
59+
"typescript": "^6.0.2",
60+
"vite-plus": "^0.1.15",
61+
"vitest": "^4.1.2"
6262
},
6363
"volta": {
6464
"node": "24.14.1"

0 commit comments

Comments
 (0)