A CLI for scaffolding packages w/ pkg-tools
# pnpm
pnpm create @pkg-tools/pkg
# Yarn
yarn create @pkg-tools/pkg
# npm
npm create @pkg-tools/pkg
And then follow the instructions printed in your terminal.
You can specify the path to initialize the example project and the template to use by running:
# pnpm
pnpm create @pkg-tools/pkg -- --path=path-to-package --template=template-name
# Yarn
yarn create @pkg-tools/pkg -- --path=path-to-package --template=template-name
# npm
npm create @pkg-tools/pkg -- --path=path-to-package --template=template-name
See the templates
directory for the list of templates.