File tree Expand file tree Collapse file tree 4 files changed +38
-15
lines changed
exercises/01.start/01.solution Expand file tree Collapse file tree 4 files changed +38
-15
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+
3+ import path from 'path'
4+ import fs from 'fs-extra'
5+
6+ const wranglerPath = path . join (
7+ process . env . EPICSHOP_PLAYGROUND_DEST_DIR ,
8+ 'wrangler.jsonc' ,
9+ )
10+
11+ if ( await fs . pathExists ( wranglerPath ) ) {
12+ try {
13+ let content = await fs . readFile ( wranglerPath , 'utf8' )
14+ const oldSchema = '../../../node_modules/wrangler/config-schema.json'
15+ const newSchema = '../node_modules/wrangler/config-schema.json'
16+
17+ if ( content . includes ( oldSchema ) ) {
18+ content = content . replace ( oldSchema , newSchema )
19+ await fs . writeFile ( wranglerPath , content , 'utf8' )
20+ }
21+ } catch ( error ) {
22+ console . error ( '❌ Error fixing wrangler.jsonc:' , error . message )
23+ }
24+ }
Original file line number Diff line number Diff line change 11{
2- "name" : " exercises_02 .start_01.solution" ,
2+ "name" : " exercises_01 .start_01.solution" ,
33 "private" : true ,
44 "type" : " module" ,
55 "scripts" : {
Original file line number Diff line number Diff line change 33 * https://developers.cloudflare.com/workers/wrangler/configuration/
44 */
55{
6- "$schema" : " node_modules/wrangler/config-schema.json" ,
6+ "$schema" : " ../../../ node_modules/wrangler/config-schema.json" ,
77 "name" : " epic-me-mcp" ,
88 "main" : " src/index.ts" ,
99 "compatibility_date" : " 2025-04-17" ,
Original file line number Diff line number Diff line change 11{
2- "files" : [],
3- "exclude" : [" node_modules" ],
4- "references" : [
5- {
6- "path" : " exercises/01.start/01.solution"
7- },
8- {
9- "path" : " exercises/02.start/01.solution"
10- },
11- {
12- "path" : " exercises/99.finished/99.solution"
13- }
14- ]
2+ "files" : [],
3+ "exclude" : [
4+ " node_modules"
5+ ],
6+ "references" : [
7+ {
8+ "path" : " exercises/01.start/01.solution"
9+ },
10+ {
11+ "path" : " exercises/99.finished/99.solution"
12+ }
13+ ]
1514}
You can’t perform that action at this time.
0 commit comments