Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/cli/src/setup/runtimes/node.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string | undefined> => {
if (await doesPathExist(npmLockPath)) {
Expand All @@ -54,6 +55,10 @@ const getInstallCommand = async (): Promise<string | undefined> => {
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.`,
)
Expand Down
Loading