Skip to content

Commit 703457b

Browse files
committed
fixup
1 parent 8609cc3 commit 703457b

File tree

4 files changed

+38
-15
lines changed

4 files changed

+38
-15
lines changed

epicshop/post-set-playground.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
}

exercises/01.start/01.solution/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "exercises_02.start_01.solution",
2+
"name": "exercises_01.start_01.solution",
33
"private": true,
44
"type": "module",
55
"scripts": {

exercises/01.start/01.solution/wrangler.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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",

tsconfig.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
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
}

0 commit comments

Comments
 (0)