diff --git a/packages/cli/src/setup/runtimes/node.mts b/packages/cli/src/setup/runtimes/node.mts index 620c7c71..c83fe89e 100644 --- a/packages/cli/src/setup/runtimes/node.mts +++ b/packages/cli/src/setup/runtimes/node.mts @@ -40,6 +40,7 @@ const getDependencyList = async () => { const npmLockPath = resolve('package-lock.json') const yarnLockPath = resolve('yarn.lock') const pnpmLockPath = resolve('pnpm-lock.yaml') +const bunLockPath = resolve('bun.lock') const getInstallCommand = async (): Promise => { if (await doesPathExist(npmLockPath)) { @@ -54,6 +55,10 @@ const getInstallCommand = async (): Promise => { return 'pnpm add typesafe-i18n' } + if (await doesPathExist(bunLockPath)) { + return 'bun add typesafe-i18n' + } + logger.error( `Unsupported package manager. Please install the 'typesafe-i18n' npm-package manually and open a new issue at https://github.com/ivanhofer/typesafe-i18n/issues and tell us what package manager you are using.`, )