Skip to content

Commit f83ffcd

Browse files
committed
Fix VERSION object shorthand syntax error
- Import VERSION from './version' at the top of index.ts - Export VERSION separately so it's available in local scope - Fixes 'No value exists in scope for the shorthand property' error - Allows using VERSION in the default export object with shorthand syntax
1 parent 93ffbe3 commit f83ffcd

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
* import { FunctionTool } from 'adk-typescript/tools';
2323
*/
2424

25-
// Version information
26-
export { VERSION } from './version';
25+
// Import version
26+
import { VERSION } from './version';
2727

2828
// Import modules to re-export
2929
import * as agentsModule from './agents';
@@ -35,6 +35,9 @@ import * as sessionsModule from './sessions';
3535
import * as memoryModule from './memory';
3636
import * as utilsModule from './utils';
3737

38+
// Export version
39+
export { VERSION };
40+
3841
// Import CLI utilities
3942
export { runAgent } from './cli/runAgent';
4043

0 commit comments

Comments
 (0)