How does ct3a launch the cli on install?
Hi! I am trying to build a template/cli app of my own and I've been studying the ct3a github repo (the cli portion specifically), and I don't really have a clue as to how the cli is launched on install!
Currently, my app works by pnpm init -> pnpm install package -> npx package. (Weirdly, it only works if I use pnpm, npm is a no-go).
On a similar note, create-next-app uses npx to launch itself which adds more to the confusion.
Any clue about any of these would be great help!
Currently, my app works by pnpm init -> pnpm install package -> npx package. (Weirdly, it only works if I use pnpm, npm is a no-go).
On a similar note, create-next-app uses npx to launch itself which adds more to the confusion.
Any clue about any of these would be great help!
Solution
npm fetches the
create-t3-app package, as well as it's dependencies, and stores them in a cache before executing the command. more details: https://docs.npmjs.com/cli/v8/commands/npm-exec#description