refactor: extract @withstanza/schema and @withstanza/utils packages#16
Conversation
🦋 Changeset detectedLatest commit: 9b44e45 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedToo many files! This PR contains 152 files, which is 2 over the limit of 150. To get a review, narrow the scope: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (152)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…s to devDeps, and fix stale comment - Remove `manifestJsonSchema()` from `packages/schema/src/manifest.ts` — no longer needed - Move `@withstanza/utils` from `dependencies` to `devDependencies` in `@withstanza/schema` since it is only a build-time dep - Correct a comment in `codemod-runner.ts` that cited `@withstanza/registry` instead of `@withstanza/schema`
Summary by cubic
Extracted the schema/contract layer to a new
@withstanza/schemapackage and moved shared helpers to@withstanza/utils.@withstanza/registrynow focuses on resolving and synthesis; the JSON Schema forstanza.jsonis served at/schema.json, and the static registry build moved toscripts/compile-registry.tswith a flatter output. No CLI behavior change.Refactors
@withstanza/schema(npm-published): owns thestanza.jsonZod schema (StanzaManifestSchema), module/registry schemas, contract types,CATEGORIES, package-manager and registry-config.@withstanza/utils(private):safeRelativePath/assertSafeRelativePath,appendEnvVar.@withstanza/registry: keeps resolver, template rendering,package.json/env/README synthesis; depends on@withstanza/schema+@withstanza/utils.scripts/compile-registry.tsreplaces package-embedded build; writes<out>/index.jsonand<out>/modules/*.json(noregistry/wrapper). Web prebuild and tests call this viajiti./schema.json(compiled fromStanzaManifestSchemaon request); removedpublic/schema.jsonand the unusedmanifestJsonSchema()helper.@stanza/*to@withstanza/*; web package renamed to@withstanza/web. Docs updated.Migration
@stanza/registry→@withstanza/schema.@withstanza/registry.@withstanza/utils.jiti scripts/compile-registry.ts <outDir>and pointSTANZA_REGISTRYto<outDir>/index.json(was<outDir>/registry/index.json).https://stanza.tools/schema.jsonfor a manifest’s$schema.Written for commit 9b44e45. Summary will update on new commits.