@velajs/cli 1.22.1 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ import { VelaFactory } from '@velajs/vela';
2
+ import { AppModule } from './dist/app.module.js';
3
+
4
+ // Run pnpm build first: Node loads the same metadata-emitting SWC output as Wrangler.
5
+ // If the app later uses Worker bindings, supply their local equivalents here.
6
+ export default {
7
+ rootModule: AppModule,
8
+ createApp: () => VelaFactory.create(AppModule),
9
+ };
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "node_modules/wrangler/config-schema.json",
3
+ "name": "__PROJECT_NAME__",
4
+ "main": "dist/worker.js",
5
+ "compatibility_date": "2026-09-20",
6
+ "compatibility_flags": ["nodejs_compat"],
7
+ "build": {
8
+ "command": "pnpm build",
9
+ "watch_dir": ["src", ".swcrc"],
10
+ },
11
+ "dev": { "port": 8787 },
12
+ }