1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-28 04:04:58 +03:00

refactor(bridge/nodejs): SDK mapping

This commit is contained in:
louistiti 2023-05-03 08:39:06 +08:00
parent 9b839d3e66
commit 2df22770e0
No known key found for this signature in database
GPG Key ID: 92CD6A2E497E1669
3 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1,3 @@
export function rand(): number {
return Math.random()
}

View File

@ -1,3 +1,5 @@
import { rand } from '@sdk/testo'
export function run(): string {
return 'hello'
return `hello ${rand()}`
}

View File

@ -6,7 +6,8 @@
"baseUrl": ".",
"paths": {
"@@/*": ["./*"],
"@/*": ["./server/src/*"]
"@/*": ["./server/src/*"],
"@sdk/*": ["./bridges/nodejs/src/sdk/*"]
},
"ignoreDeprecations": "5.0",
"allowJs": true,
@ -20,5 +21,5 @@
},
"files": ["server/src/global.d.ts"],
"include": ["server/src/**/*"],
"exclude": ["node_modules", "server/dist", "bridges/python", "tcp_server"]
"exclude": ["node_modules", "server/dist", "bridges", "tcp_server"]
}