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:
parent
9b839d3e66
commit
2df22770e0
3
bridges/nodejs/src/sdk/testo.ts
Normal file
3
bridges/nodejs/src/sdk/testo.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export function rand(): number {
|
||||
return Math.random()
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
import { rand } from '@sdk/testo'
|
||||
|
||||
export function run(): string {
|
||||
return 'hello'
|
||||
return `hello ${rand()}`
|
||||
}
|
||||
|
@ -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"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user