@apps-in-toss/web-framework bun도 지원해주세요

현재 패키지매니저를 npm이 아닌 bun 으로 사용하고 있는데…

혹시.. bun도 지원 가능할까요…

안녕하세요,
확인해보니 npm과 동일한 레포지토리를 공유하네요 :slightly_smiling_face:
bun add @apps-in-toss/web-framework 로 설치 후,
bunx ait init 로 프로젝트를 초기화 해보시는 건 어떨까요 ?

네, 이미 프로젝트 초기화까지는 진행했는데요! 아쉽게도 bun run dev 를 실행하게되면 아래의 오류가 발생하고 있어요!

file:///Users/henry/github/project/tiny-contract/node_modules/@apps-in-toss/web-framework/dist/cli/index.js:58204
    throw new TypeError(`${name} must be a string or a file URL: ${fileString}.`);
          ^

TypeError: First argument must be a string or a file URL: undefined.
    at safeNormalizeFileUrl (file:///Users/henry/github/project/tiny-contract/node_modules/@apps-in-toss/web-framework/dist/cli/index.js:58204:11)
    at normalizeParameters (file:///Users/henry/github/project/tiny-contract/node_modules/@apps-in-toss/web-framework/dist/cli/index.js:58214:20)
    at parseArguments (file:///Users/henry/github/project/tiny-contract/node_modules/@apps-in-toss/web-framework/dist/cli/index.js:65070:59)
    at callBoundExeca (file:///Users/henry/github/project/tiny-contract/node_modules/@apps-in-toss/web-framework/dist/cli/index.js:65059:55)
    at boundExeca (file:///Users/henry/github/project/tiny-contract/node_modules/@apps-in-toss/web-framework/dist/cli/index.js:65043:45)
    at file:///Users/henry/github/project/tiny-contract/node_modules/@apps-in-toss/web-framework/dist/cli/index.js:68121:15
    at Server.<anonymous> (file:///Users/henry/github/project/tiny-contract/node_modules/@apps-in-toss/web-framework/dist/cli/index.js:66136:26)
    at Object.onceWrapper (node:events:633:28)
    at Server.emit (node:events:531:35)
    at emitListeningNT (node:net:1983:10)

추측컨데, npm과 pnpm, yarn에 대해서는 getPackageManager 함수에 정의가 되어있지만, bun에 대해서는 정의가 되어있지 않아서 발생한 것 같은데, 이러한 문제점이 다른 영역에도 있을 것 같기도 하고, 소스를 수정하여 사용하는 것보다 공식적으로 수정하여 패키지 관리가 되면 좋을 것 같아요!

아하…
bun 패키지 매니저도 추가로 지원이 가능한지 내부적으로 확인해보겠습니다!

2개의 좋아요