From f52a20506a87f0e765c0e8ee86929ffd1848f425 Mon Sep 17 00:00:00 2001 From: openhands Date: Tue, 4 Feb 2025 07:21:48 +0000 Subject: [PATCH] update package import --- src/cli.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 76138e2..ee58c2b 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -3,7 +3,8 @@ import { Command } from 'commander'; import { ContextManager } from './core.js'; import path from 'path'; import { ContextGenerator } from './lib/ContextGenerator.js'; -import pkg from '../package.json' assert { type: 'json' }; +import { readFileSync } from 'fs'; +const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf-8')); const program = new Command(); const contextManager = new ContextManager();