Skip to content

Commit 926243f

Browse files
committed
Refactor example configurations to use defineStack and update imports
1 parent 60b2c3e commit 926243f

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

examples/msw-react-crud/objectstack.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { defineStack } from '@objectstack/spec';
2+
13
/**
24
* Task Object Definition
35
*/
@@ -26,7 +28,7 @@ export const TaskObject = {
2628
/**
2729
* App Configuration
2830
*/
29-
export default {
31+
export default defineStack({
3032
name: 'task_app',
3133
label: 'Task Management',
3234
description: 'MSW + React CRUD Example with ObjectStack',
@@ -54,4 +56,4 @@ export default {
5456
]
5557
}
5658
]
57-
};
59+
});

examples/msw-react-crud/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default defineConfig({
1111
include: [
1212
'msw',
1313
'msw/browser',
14+
'@objectstack/spec',
1415
'@objectstack/spec/data', // Force pre-bundling for CJS compatibility
1516
'@objectstack/spec/system',
1617
'@objectstack/spec/ui'

packages/spec/src/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,15 @@ export * as AI from './ai';
5353
export * as API from './api';
5454
export * as Automation from './automation';
5555

56+
export {
57+
defineStack,
58+
ObjectStackDefinitionSchema,
59+
ObjectStackSchema,
60+
ObjectStackCapabilitiesSchema,
61+
ObjectQLCapabilitiesSchema,
62+
ObjectUICapabilitiesSchema,
63+
ObjectOSCapabilitiesSchema
64+
} from './stack.zod';
65+
5666
export * from './stack.zod';
5767

0 commit comments

Comments
 (0)