Skip to content

Commit 4d7787c

Browse files
betegonclaude
andcommitted
fix(init): update sveltekit template and use python3 in eval tests
Update SvelteKit template with working deps (adapter-node, latest svelte/vite) and add required src files (app.d.ts, app.html). Use python3 instead of python for venv creation in Flask/FastAPI platforms. Add --concurrency 6 to init-eval test runner. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 04ae63d commit 4d7787c

File tree

7 files changed

+54
-29
lines changed

7 files changed

+54
-29
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"test:unit": "bun test test/lib test/commands test/types --coverage --coverage-reporter=lcov",
2222
"test:isolated": "bun test test/isolated",
2323
"test:e2e": "bun test test/e2e",
24-
"test:init-eval": "bun test test/init-eval --timeout 600000",
24+
"test:init-eval": "bun test test/init-eval --timeout 600000 --concurrency 6",
2525
"generate:skill": "bun run script/generate-skill.ts",
2626
"check:skill": "bun run script/check-skill.ts",
2727
"check:deps": "bun run script/check-no-deps.ts"

test/init-eval/helpers/platforms.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const PLATFORMS: Platform[] = [
9292
depFile: "requirements.txt",
9393
docs: getDocs("python-flask"),
9494
installCmd:
95-
"python -m venv .venv && .venv/bin/pip install -r requirements.txt",
95+
"python3 -m venv .venv && .venv/bin/pip install -r requirements.txt",
9696
buildCmd: ".venv/bin/python -m compileall -q .",
9797
initPattern: /sentry_sdk\.init/,
9898
timeout: 300_000,
@@ -105,7 +105,7 @@ export const PLATFORMS: Platform[] = [
105105
depFile: "requirements.txt",
106106
docs: getDocs("python-fastapi"),
107107
installCmd:
108-
"python -m venv .venv && .venv/bin/pip install -r requirements.txt",
108+
"python3 -m venv .venv && .venv/bin/pip install -r requirements.txt",
109109
buildCmd: ".venv/bin/python -m compileall -q .",
110110
initPattern: /sentry_sdk\.init/,
111111
timeout: 300_000,
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
{
22
"name": "sveltekit-app",
3-
"version": "0.1.0",
43
"private": true,
4+
"version": "0.0.1",
5+
"type": "module",
56
"scripts": {
67
"dev": "vite dev",
78
"build": "vite build",
8-
"preview": "vite preview"
9+
"preview": "vite preview",
10+
"prepare": "svelte-kit sync || echo ''"
911
},
1012
"devDependencies": {
11-
"@sveltejs/adapter-auto": "^4.0.0",
12-
"@sveltejs/kit": "^2.16.0",
13-
"@sveltejs/vite-plugin-svelte": "^5.0.0",
14-
"svelte": "^5.0.0",
15-
"typescript": "^5",
16-
"vite": "^6.0.0"
13+
"@sveltejs/adapter-node": "^5.0.0",
14+
"@sveltejs/kit": "^2.50.2",
15+
"@sveltejs/vite-plugin-svelte": "^6.2.4",
16+
"svelte": "^5.51.0",
17+
"typescript": "^5.9.3",
18+
"vite": "^7.3.1"
1719
}
1820
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// See https://svelte.dev/docs/kit/types#app.d.ts
2+
// for information about these interfaces
3+
declare global {
4+
namespace App {
5+
// interface Error {}
6+
// interface Locals {}
7+
// interface PageData {}
8+
// interface PageState {}
9+
// interface Platform {}
10+
}
11+
}
12+
13+
export {};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
%sveltekit.head%
7+
</head>
8+
<body data-sveltekit-preload-data="hover">
9+
<div style="display: contents">%sveltekit.body%</div>
10+
</body>
11+
</html>
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
import adapter from "@sveltejs/adapter-auto";
2-
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
1+
import adapter from '@sveltejs/adapter-node';
32

43
/** @type {import('@sveltejs/kit').Config} */
54
const config = {
6-
preprocess: vitePreprocess(),
7-
kit: {
8-
adapter: adapter(),
9-
},
5+
kit: {
6+
adapter: adapter()
7+
}
108
};
119

1210
export default config;
Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
2-
"extends": "./.svelte-kit/tsconfig.json",
3-
"compilerOptions": {
4-
"allowJs": true,
5-
"checkJs": true,
6-
"esModuleInterop": true,
7-
"forceConsistentCasingInFileNames": true,
8-
"resolveJsonModule": true,
9-
"skipLibCheck": true,
10-
"sourceMap": true,
11-
"strict": true,
12-
"moduleResolution": "bundler"
13-
}
2+
"extends": "./.svelte-kit/tsconfig.json",
3+
"compilerOptions": {
4+
"rewriteRelativeImportExtensions": true,
5+
"allowJs": true,
6+
"checkJs": true,
7+
"esModuleInterop": true,
8+
"forceConsistentCasingInFileNames": true,
9+
"resolveJsonModule": true,
10+
"skipLibCheck": true,
11+
"sourceMap": true,
12+
"strict": true,
13+
"moduleResolution": "bundler"
14+
}
1415
}

0 commit comments

Comments
 (0)