1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-25 01:31:47 +03:00

feat(bridge/nodejs): resolve SDK mapping

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

View File

@ -149,6 +149,8 @@ BUILD_TARGETS.set('tcp-server', {
NODEJS_BRIDGE_BIN_NAME
)
await fs.promises.rm(buildPath, { recursive: true, force: true })
await command(`tsc --project ${tsconfigPath}`, {
shell: true,
stdio: 'inherit'

8
skills/tsconfig.json Normal file
View File

@ -0,0 +1,8 @@
{
"extends": "@tsconfig/node16-strictest/tsconfig.json",
"compilerOptions": {
"paths": {
"@sdk/*": ["../bridges/nodejs/src/sdk/*"]
}
}
}

View File

@ -6,8 +6,7 @@
"baseUrl": ".",
"paths": {
"@@/*": ["./*"],
"@/*": ["./server/src/*"],
"@sdk/*": ["./bridges/nodejs/src/sdk/*"]
"@/*": ["./server/src/*"]
},
"ignoreDeprecations": "5.0",
"allowJs": true,