PhilDL / remix-gospel-stack

Remix monorepo template with pnpm, TypeScript and Turborepo. The remix app deploys to fly.io or build to Docker image. Example packages for Database with Prisma, UI, and internal TypeScript packages.

Home Page:https://remix-gospel-stack.fly.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create index.tsx automatically with a task?

Jarrodsz opened this issue · comments

Any suggestions on how to integrate the index export files automatically?

Its should be fairly trival but tried several index generators and they all s*

My idea was to add a generate-index pnpm task so i can automate this and ser incorrect function declarations more easy while porting everything over to my mino repro setup

Hi, sorry I didn't really try these kinds of tools.

In my opinion, when you are making a package, be it internal or bundled for npm, one goal is also to hide the internals. Then have a clean user-facing API with a few selected exports that you pick manually in your index.ts.