trigger.dev icon indicating copy to clipboard operation
trigger.dev copied to clipboard

Allow specifying package manager for typecheck

Open davidchalifoux opened this issue 1 year ago • 1 comments

https://github.com/triggerdotdev/trigger.dev/blob/da592d867adc84f65855fc2f152a1ee1b48cc650/packages/cli-v3/src/commands/deploy.ts#L1660

Because I'm using pnpm, my Github action for deploys are failing because the typecheck step only uses npm.

Possible solutions:

  • Add a flag to the deploy command for specifying the package manager
  • Detect the package manager used by the project by looking for a pnpm-lock.yaml/npm-lock.yaml file etc

I know I can fix this by making npm available, but I'd rather stick with pnpm since it's managing my monorepo deps.

davidchalifoux avatar Jul 19 '24 19:07 davidchalifoux

Maybe this is helpful https://github.com/antfu-collective/ni

ianwalter avatar Aug 22 '24 04:08 ianwalter