Skip to content

feat: support creating Snaps and libraries with create-package - #258

Draft
ulissesferreira wants to merge 1 commit into
chore/rename-and-reorganize-tsconfig-filesfrom
feat/create-package-snap-and-library
Draft

feat: support creating Snaps and libraries with create-package#258
ulissesferreira wants to merge 1 commit into
chore/rename-and-reorganize-tsconfig-filesfrom
feat/create-package-snap-and-library

Conversation

@ulissesferreira

@ulissesferreira ulissesferreira commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Description

Builds on #257.

Refactors create-package so it can scaffold both Snaps and non-Snap library packages, and removes the sample-snap package now that a Snap can be generated from a template.

  • Add a required --type option (no default): snap, library, or the lib shorthand.
  • Add a snap-template based on sample-snap, and delete packages/sample-snap.
  • Rename package-template to library-template and sync its tsconfig/jest configs and dependency versions with snap-networks-utils.
  • Drop the root tsconfig reference updates, which are obsolete now that the root configs no longer track package references.
  • Update docs/processes/adding-new-packages.md and AGENTS.md accordingly.

Verified end to end: generated a library and a snap with the new CLI, then type-checked, built, and tested both.

- Require a `--type` option (`snap` or `library`, shorthand `lib`) when
  creating a new package; there is no default.
- Add a snap template, migrated from the now-removed `sample-snap` package.
- Rename `package-template` to `library-template` and sync its configs with
  `snap-networks-utils`.
- Drop the obsolete root tsconfig reference updates, since the root configs no
  longer track package references.
@ulissesferreira ulissesferreira changed the title feat/create package snap and library feat: support creating Snaps and libraries with create-package Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant