Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
update the update-notifier import to esm, remove it from the excludedPackages
Jakub Dobryec36840c0417
diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.tsindex dac5762e6..2354b8bc3 100644--- a/packages/cli/src/index.ts+++ b/packages/cli/src/index.ts@@ -1,5 +1,6 @@#!/usr/bin/env -S node --enable-source-maps+import updateNotifier from 'update-notifier'import * as commander from 'commander'import * as packageJSON from '../package.json'import { program } from './commands'@@ -7,18 +8,11 @@ import { commands2md } from './utils/commands2md'export const pkg = packageJSON-async function loadUpdateNotifier() {- const updateNotifier = await import('update-notifier');- return updateNotifier.default;-}--loadUpdateNotifier().then(updateNotifier => {- updateNotifier({- pkg,- updateCheckInterval:1000 * 60 * 60 * 8, // 8 hours- })- .notify()+updateNotifier({+ pkg,+ updateCheckInterval:1000 * 60 * 60 * 8, // 8 hours})+ .notify()const prog = program.version(packageJSON.version,diff --git a/packages/cli/tsup.config.js b/packages/cli/tsup.config.jsindex 34906078b..b09a5f7d6 100644--- a/packages/cli/tsup.config.js+++ b/packages/cli/tsup.config.js@@ -2,7 +2,7 @@ import { defineConfig } from 'tsup'import * as packageJSON from './package.json'-const excludedPackages = ['update-notifier', 'inquirer']+const excludedPackages = ['inquirer']export default defineConfig({entry: ['src/index.ts'],