@vyriy/ssg 0.8.15 → 0.9.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/AGENTS.md +6 -3
- package/package.json +2 -2
package/AGENTS.md
CHANGED
|
@@ -14,6 +14,7 @@ Always read the root `AGENTS.md` first for current project direction, then use t
|
|
|
14
14
|
- Avoid hidden framework, CMS, browser, filesystem, network, or cloud assumptions unless they are the package contract.
|
|
15
15
|
- Add packages only when they reduce real complexity, clarify boundaries, or improve reuse.
|
|
16
16
|
- Prefer the option that is simpler to explain, easier to evolve, and calmer to maintain.
|
|
17
|
+
- Grow package functionality in small, calm, reviewable steps that are easy to test and continue.
|
|
17
18
|
|
|
18
19
|
## Standard Package Shape
|
|
19
20
|
|
|
@@ -94,9 +95,11 @@ Tests should protect public behavior and meaningful regression risk.
|
|
|
94
95
|
- Add a real test immediately for new packages. If behavior is not finalized, add a valid placeholder test with a clear public API expectation.
|
|
95
96
|
- Prefer behavior-focused tests over private implementation lock-in.
|
|
96
97
|
- Keep tests deterministic and avoid real network, timers, browser, filesystem, or cloud dependencies unless that dependency is the behavior under test.
|
|
98
|
+
- Mock external dependencies from `node_modules` in unit tests so package behavior stays deterministic and local.
|
|
97
99
|
- When mocking modules, install mocks before loading the module under test.
|
|
98
100
|
- Use `@jest/globals` in Jest tests.
|
|
99
|
-
-
|
|
101
|
+
- Keep coverage enabled for normal validation. The shared Jest config in `packages/jest/index.ts` requires 100% global coverage for branches, functions, lines, and statements.
|
|
102
|
+
- For small changes, run Jest against the changed tests or changed package with coverage enabled. For larger package changes, public API changes, or cross-package changes, run the full Jest suite with coverage.
|
|
100
103
|
|
|
101
104
|
Typical package test naming:
|
|
102
105
|
|
|
@@ -127,10 +130,10 @@ Preferred validation commands:
|
|
|
127
130
|
yarn tsc --pretty false
|
|
128
131
|
yarn eslint <changed files or package>
|
|
129
132
|
yarn prettier --check <changed files or package>
|
|
130
|
-
yarn jest <changed tests or package> --runInBand
|
|
133
|
+
yarn jest <changed tests or package> --runInBand
|
|
131
134
|
```
|
|
132
135
|
|
|
133
|
-
Also run `yarn build:dist` for package export, manifest, build-shape, or generated-dist behavior changes. After larger package or library changes, prefer building the affected library/package as an additional confidence check.
|
|
136
|
+
Also run `yarn build:dist` for package export, manifest, build-shape, or generated-dist behavior changes. After larger package or library changes, run the full Jest suite with coverage and prefer building the affected library/package as an additional confidence check.
|
|
134
137
|
|
|
135
138
|
If a required validation command cannot be run, state why and report the remaining risk.
|
|
136
139
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vyriy/ssg",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Static Markdown site generator for Vyriy projects.",
|
|
5
5
|
"homepage": "https://vyriy.dev/docs/ssg/",
|
|
6
6
|
"type": "module",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@types/react": "^19.2.17",
|
|
13
|
-
"@vyriy/render": "0.
|
|
13
|
+
"@vyriy/render": "0.9.1",
|
|
14
14
|
"minisearch": "^7.2.0",
|
|
15
15
|
"react": "^19.2.7",
|
|
16
16
|
"react-markdown": "^10.1.0",
|