mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
refactor: use bun to execute server and analytics
This commit is contained in:
1 parent
2feedc329c
commit
77577d9b8d
13 files changed
+128
-120
No files matched your search
@@ -1,14 +1,13 @@
|
||||
{
|
||||
"name": "analytics",
|
||||
"version": "1.0.0",
|
||||
"main": "src/index.js",
|
||||
"main": "src/index.ts",
|
||||
"private": true,
|
||||
"license": "GPL",
|
||||
"scripts": {
|
||||
"start": "node dist/services/analytics/src/index.js",
|
||||
"build": "tsc",
|
||||
"start": "bun src/index.ts",
|
||||
"type-check": "tsc --noEmit",
|
||||
"dev": "tsx watch src/index.ts"
|
||||
"dev": "bun --watch src/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@odyssey/models": "workspace:*",
|
||||
@@ -20,12 +19,7 @@
|
||||
"zod": "^3.24.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@swc/core": "^1.4.2",
|
||||
"@swc/helpers": "^0.5.6",
|
||||
"@types/express": "^4.17.21",
|
||||
"@types/node": "^20.11.20",
|
||||
"regenerator-runtime": "^0.14.1",
|
||||
"tsx": "^4.19.3",
|
||||
"typescript": "^5.3.3"
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist"
|
||||
"module": "Preserve",
|
||||
"moduleResolution": "bundler",
|
||||
"target": "ESNext",
|
||||
"types": ["bun", "node"],
|
||||
"noEmit": true
|
||||
},
|
||||
"include": ["src", "../models"],
|
||||
"ts-node": {
|
||||
"swc": true
|
||||
}
|
||||
"include": ["src"]
|
||||
}
|
||||
Reference in new issue
Block a user