speckeeper 0.2.1 → 0.4.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.
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * Requirements
3
3
  */
4
+ import { defineSpecs } from 'speckeeper';
4
5
  import type { Requirement } from './_models/requirement.ts';
5
6
  import { RequirementModel } from './_models/requirement.ts';
6
7
 
7
- export const requirements: Requirement[] = [
8
+ const requirements: Requirement[] = [
8
9
  {
9
10
  id: 'REQ-001',
10
11
  name: 'User Authentication',
@@ -18,6 +19,6 @@ export const requirements: Requirement[] = [
18
19
  },
19
20
  ];
20
21
 
21
- RequirementModel.instance.register(requirements);
22
-
23
- console.log(`Requirements loaded: ${requirements.length} items`);
22
+ export default defineSpecs(
23
+ [RequirementModel.instance, requirements],
24
+ );
@@ -2,10 +2,11 @@
2
2
  * speckeeper configuration file
3
3
  */
4
4
  import { defineConfig } from 'speckeeper';
5
- import { allModels } from './design/_models/index';
5
+ import design from './design/index';
6
6
 
7
7
  export default defineConfig({
8
8
  projectName: 'my-project',
9
9
  version: '1.0.0',
10
- models: allModels,
10
+ models: design.models,
11
+ specs: design.specs,
11
12
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speckeeper",
3
- "version": "0.2.1",
3
+ "version": "0.4.0",
4
4
  "description": "TypeScript-first specification validation framework with external SSOT integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",