Skip to content

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

Merged
ulissesferreira merged 1 commit into
mainfrom
feat/create-package-snap-and-library
Sep 3, 2026
Merged

chore: support creating Snaps and libraries with create-package#258
ulissesferreira merged 1 commit into
mainfrom
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 --type option that defaults to snap: 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.

@ulissesferreira ulissesferreira changed the title feat/create package snap and library feat: support creating Snaps and libraries with create-package Sep 2, 2026
@ulissesferreira
ulissesferreira force-pushed the feat/create-package-snap-and-library branch from 4ad7b73 to a1076dd Compare September 3, 2026 10:49
@ulissesferreira ulissesferreira changed the title feat: support creating Snaps and libraries with create-package chore: support creating Snaps and libraries with create-package Sep 3, 2026
@ulissesferreira
ulissesferreira force-pushed the feat/create-package-snap-and-library branch 3 times, most recently from 9316e60 to 1f1da3b Compare September 3, 2026 11:03
Base automatically changed from chore/rename-and-reorganize-tsconfig-files to main September 3, 2026 11:05
@ulissesferreira
ulissesferreira force-pushed the feat/create-package-snap-and-library branch from 1f1da3b to 50abe22 Compare September 3, 2026 11:05
...(baseConfig.coveragePathIgnorePatterns ?? []),
'.*/__mocks__/',
],

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comes from snap-networks-utils, to match behaviour across our library packages

@ulissesferreira
ulissesferreira force-pushed the feat/create-package-snap-and-library branch from 50abe22 to 3adeed5 Compare September 3, 2026 11:22
Comment thread package.json

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused dependencies

@ulissesferreira
ulissesferreira marked this pull request as ready for review September 3, 2026 11:37
@ulissesferreira
ulissesferreira requested review from a team as code owners September 3, 2026 11:37
Comment thread scripts/create-package/snap-template/package.json Outdated
@ulissesferreira
ulissesferreira force-pushed the feat/create-package-snap-and-library branch from 3adeed5 to 4e76c18 Compare September 3, 2026 13:31
@ulissesferreira
ulissesferreira added this pull request to the merge queue Sep 3, 2026
Merged via the queue into main with commit 1608431 Sep 3, 2026
54 checks passed
@ulissesferreira
ulissesferreira deleted the feat/create-package-snap-and-library branch September 3, 2026 13:42
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.

2 participants