create-weave 0.2.1 → 0.2.53

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-weave",
3
- "version": "0.2.1",
3
+ "version": "0.2.53",
4
4
  "description": "Scaffold a new Weave app — `npm create weave my-app` (also pnpm/yarn create).",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,7 +8,12 @@
8
8
  "check": "weave check"
9
9
  },
10
10
  "dependencies": {
11
- "@weave-framework/runtime": "^0.2.0"
11
+ "@weave-framework/runtime": "^0.2.0",
12
+ "@weave-framework/router": "^0.2.0",
13
+ "@weave-framework/store": "^0.2.0",
14
+ "@weave-framework/forms": "^0.2.0",
15
+ "@weave-framework/i18n": "^0.2.0",
16
+ "@weave-framework/data": "^0.2.0"
12
17
  },
13
18
  "devDependencies": {
14
19
  "@weave-framework/cli": "^0.2.0",
@@ -1,7 +1,7 @@
1
- import { signal } from '@weave-framework/runtime';
1
+ import { signal, type Signal } from '@weave-framework/runtime';
2
2
 
3
- export function setup() {
4
- const count = signal(0);
5
- const inc = () => count.set((n) => n + 1);
3
+ export function setup(): { count: Signal<number>; inc: () => void } {
4
+ const count: Signal<number> = signal(0);
5
+ const inc = (): void => count.set((n) => n + 1);
6
6
  return { count, inc };
7
7
  }