@coloop-ai/create-package
v0.3.0
Published
Scaffold a new @coloop-ai TypeScript package from the template.
Keywords
Readme
@coloop-ai/create-package
Scaffold a new @coloop-ai TypeScript package from the template.
Usage
pnpm create @coloop-ai/package my-cool-lib "A really cool library"Or with npx:
npx @coloop-ai/create-package my-cool-lib "A really cool library"By default this only scaffolds a local package. No GitHub repository is created.
To also create the GitHub repository and push the initial commit, pass --remote:
pnpm create @coloop-ai/package my-cool-lib "A really cool library" --remote Genei-Ltd/my-cool-libThe repository is created public under the given owner/repo.
Prerequisites
- pnpm
- git
With --remote, additionally:
- GitHub CLI (
gh auth login) - Write access to the target GitHub owner or org
What it does
- Clones the ts-package-template locally
- Replaces template placeholders with your package name, description, and repo
- Installs dependencies
- Builds the package (generates
exportsfield via tsdown) - Makes an initial commit
- With
--remote owner/repo: creates the GitHub repository and pushes
License
MIT
