Skip to content

Commit 9b2dbc9

Browse files
authored
Merge pull request #212 from GuiBibeau/refactor/remove-repokit-dependency
refactor: remove repokit dependency and replace with local utilities
2 parents b214cb0 + d622a63 commit 9b2dbc9

19 files changed

+1113
-1012
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
"create-solana-dapp": patch
3+
---
4+
5+
Remove repokit dependency and replace with local utilities. This change eliminates the external `@beeman/repokit` canary dependency and replaces it with three local utility modules that provide the same functionality:
6+
7+
- `src/utils/template-schema.ts` - Zod schemas and TypeScript types for template validation
8+
- `src/utils/fetch-templates.ts` - Fetches and parses templates.json from remote URLs
9+
- `src/utils/menu-utils.ts` - Menu transformation logic for template selection
10+
11+
This change maintains full backward compatibility with existing templates.json format while adding support for new optional metadata fields (displayName, usecase, image) introduced in solana-foundation/templates#170.
12+
13+
Benefits:
14+
- No dependency on external canary releases
15+
- Full control over template parsing logic
16+
- Smaller bundle size (only code actually used)
17+
- Type-safe with Zod validation
18+
- Easier to maintain and debug

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
]
7878
},
7979
"dependencies": {
80-
"@beeman/repokit": "0.0.0-canary-20250801172233",
8180
"@clack/prompts": "0.7.0",
8281
"commander": "14.0.0",
8382
"giget": "2.0.0",

0 commit comments

Comments
 (0)