@foro-sh/foro 0.10.0 → 0.12.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 CHANGED
@@ -4,16 +4,18 @@ This package is the TypeScript SDK for Foro.
4
4
 
5
5
  ## `@foro-sh/foro/manifest-cases`
6
6
 
7
- The shared `foro.yaml` validation table, as typed data. Foro's Python
7
+ The shared project-config validation table, as typed data. Foro's Python
8
8
  `_manifest.py` is a port of [foro-sh/platform]'s
9
9
  `apps/api/src/services/manifest.ts`, so both implementations run this same
10
- table to guarantee they never disagree about what a valid manifest is — if
11
- they did, `foro check` would pass locally and the deploy would fail.
10
+ table to guarantee they never disagree about what a valid `pyproject.toml` or
11
+ `package.json` is — if they did, `foro check` would pass locally and the deploy
12
+ would fail.
12
13
 
13
14
  ```ts
14
15
  import { manifestCases } from '@foro-sh/foro/manifest-cases'
15
16
 
16
- for (const { name, yaml, expect } of manifestCases) {
17
+ for (const { name, files, expect } of manifestCases) {
18
+ // write `files` into an empty directory, then validate it
17
19
  // expect is { ok: true } or { ok: false, reason: ManifestRejectionReason }
18
20
  }
19
21
  ```