Files
stanza/packages/registry/package.json
T
jake e28eba2702 feat: add Handlebars template engine with peer-aware render context and consolidate eslint-prettier into a single adaptive template
- Replace per-framework template files (`eslint.config.next.mjs`, `eslint.config.tanstack.mjs`) with a single `eslint.config.mjs` that branches via Handlebars `{{#if peers.framework}}` conditionals; add `handlebars` as a direct dependency to `@stanza/registry`, `apps/cli`, and `apps/web`
- Extend the template render context with a `peers: Partial<Record<CategoryId, string>>` map so any template can inspect the active framework, auth provider, etc.; thread it through `buildRenderContext`, `synthesizeTemplates`, the CLI `codemod-runner`, and the web `getBuilderState` server function
- Extract and export `activePeerIds(manifest, appId?)` from `@stanza/registry` to derive the peer map from a manifest (app-scoped for `home: app` categories); add `selectedPeerIds(selections)` in `apps/web/src/lib/selection.ts` as the URL-params-derived equivalent
- Add integration tests verifying framework-conditional eslint-prettier output for `default`, `next`, and `tanstack-start` adapters; expand resolver tests for `activePeerIds` app-scoping and for modules that declare both a `default` adapter and a framework-specific override
2026-05-25 13:35:27 -04:00

27 lines
606 B
JSON

{
"name": "@stanza/registry",
"version": "0.1.0",
"private": true,
"license": "MIT",
"type": "module",
"main": "./src/index.ts",
"types": "./src/index.ts",
"exports": {
".": "./src/index.ts",
"./manifest": "./src/manifest.ts",
"./module": "./src/module.ts",
"./resolver": "./src/resolver.ts"
},
"dependencies": {
"handlebars": "^4.7.9",
"validate-npm-package-name": "^8.0.0",
"zod": "^4.4.3"
},
"devDependencies": {
"@types/validate-npm-package-name": "^4.0.2",
"typescript": "^6.0.3",
"vite-plus": "catalog:",
"vitest": "catalog:"
}
}