diff --git a/bridges/nodejs/src/sdk/testo.ts b/bridges/nodejs/src/sdk/testo.ts new file mode 100644 index 00000000..32f20dcb --- /dev/null +++ b/bridges/nodejs/src/sdk/testo.ts @@ -0,0 +1,3 @@ +export function rand(): number { + return Math.random() +} diff --git a/skills/leon/age/src/actions/run.ts b/skills/leon/age/src/actions/run.ts index a5b27972..743ac3d5 100644 --- a/skills/leon/age/src/actions/run.ts +++ b/skills/leon/age/src/actions/run.ts @@ -1,3 +1,5 @@ +import { rand } from '@sdk/testo' + export function run(): string { - return 'hello' + return `hello ${rand()}` } diff --git a/tsconfig.json b/tsconfig.json index bff82afe..c047cd49 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"] }