@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 +6 -4
- package/dist/_generated-manifest-cases.d.ts +564 -70
- package/dist/_generated-manifest-cases.d.ts.map +1 -1
- package/dist/_generated-manifest-cases.js +612 -70
- package/dist/manifest-cases.d.ts +6 -4
- package/dist/manifest-cases.d.ts.map +1 -1
- package/dist/manifest-cases.js +1 -1
- package/package.json +3 -3
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
|
|
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
|
|
11
|
-
they did, `foro check` would pass locally and the deploy
|
|
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,
|
|
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
|
```
|