I am trying to use an npm package in my application that is published as a TS only package (it doesn’t have a dist folder containing transpiled js code).
When I attempt to use this package (@supabase/supabase-js), Forge deploy fails saying that it cannot find the package in my source directory. Yet if I look in the local node_modules folder I can see the package is there.
Deploying collector to development...
ℹ Packaging app files
Error: Bundling failed: Module not found: Error: Can't resolve '@supabase/supabase-js' in '/Users/jeffryan/repos/collector/src', [tsl] ERROR in /Users/jeffryan/repos/collector/src/collector.ts(3,30)
TS2307: Cannot find module '@supabase/supabase-js' or its corresponding type declarations.
Is there any way to make Forge recognize the package?