Add Package
Overview
Use this skill to scaffold and standardize packages so they look and behave like the existing @remix-run/* packages. Follow this exactly when creating package files, public exports, tests, and docs.
Workflow
- Create the package directory and baseline files.
- Create
packages/<package-name>/. - Add:
package.jsontsconfig.jsontsconfig.build.jsonCHANGELOG.mdREADME.mdLICENSEsrc/
- For new packages, start
CHANGELOG.mdwith## Unreleasedas the first section to indicate changes are not released yet.
- Set up
package.jsonusing monorepo conventions.
- Use:
name:@remix-run/<package-name>version(for brand-new packages):"0.0.0"type:"module"license:"MIT"repository.directory:packages/<package-name>homepage:https://github.com/remix-run/remix/tree/main/packages/<package-name>#readme
- Include
files:LICENSEREADME.mddistsrc!src/**/*.test.ts
- Add standard scripts:
build:tsgo -p tsconfig.build.jsonclean:git clean -fdXprepublishOnly:pnpm run buildtest:remix test- `test…