rulebookguard 0.5.0 → 0.5.1
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/README.md +7 -1
- package/dist/cli.mjs +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -116,7 +116,13 @@ The Markdown body holds the full rule and its examples (Gherkin scenarios or tab
|
|
|
116
116
|
|
|
117
117
|
## The `@rule` tag
|
|
118
118
|
|
|
119
|
-
A test links to a rule with `@rule <ID>`
|
|
119
|
+
A test links to a rule with `@rule <ID>` anywhere in a file matched by `testGlobs`. One line can carry several tags. A comment is the usual place, but the tag is matched as text, so it also counts inside a test name or a string:
|
|
120
|
+
|
|
121
|
+
```ts
|
|
122
|
+
it('rejects a duplicate document @rule R-CLI-001', () => {});
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
To mention a rule in a test file without linking to it, write the id without the `@rule` prefix.
|
|
120
126
|
|
|
121
127
|
TypeScript or JavaScript:
|
|
122
128
|
|
package/dist/cli.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rulebookguard",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Keep business rules as the single source of truth, bound to code and tests.",
|
|
5
5
|
"homepage": "https://github.com/JuanCJR/rulebookguard#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@modelcontextprotocol/client": "2.3.1",
|
|
39
|
-
"@rulebookguard/site": "0.5.
|
|
39
|
+
"@rulebookguard/site": "0.5.1",
|
|
40
40
|
"@types/node": "^20.19.43",
|
|
41
41
|
"@types/picomatch": "^4.0.3",
|
|
42
42
|
"typescript": "^7.0.2",
|
|
43
43
|
"vite-plus": "^1.4.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@rulebookguard/site": "^0.5.
|
|
46
|
+
"@rulebookguard/site": "^0.5.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependenciesMeta": {
|
|
49
49
|
"@rulebookguard/site": {
|