Skip to content

Commit 3034a7d

Browse files
committed
feat: add support for bun lockfile
1 parent 0225d07 commit 3034a7d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/cli/src/setup/runtimes/node.mts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const getDependencyList = async () => {
4040
const npmLockPath = resolve('package-lock.json')
4141
const yarnLockPath = resolve('yarn.lock')
4242
const pnpmLockPath = resolve('pnpm-lock.yaml')
43+
const bunLockPath = resolve('bun.lock')
4344

4445
const getInstallCommand = async (): Promise<string | undefined> => {
4546
if (await doesPathExist(npmLockPath)) {
@@ -54,6 +55,10 @@ const getInstallCommand = async (): Promise<string | undefined> => {
5455
return 'pnpm add typesafe-i18n'
5556
}
5657

58+
if (await doesPathExist(bunLockPath)) {
59+
return 'bun add typesafe-i18n'
60+
}
61+
5762
logger.error(
5863
`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.`,
5964
)

0 commit comments

Comments
 (0)