fabrique 2.0.27 → 2.0.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fabrique",
3
- "version": "2.0.27",
3
+ "version": "2.0.29",
4
4
  "type": "module",
5
5
  "description": "CLI to build a library",
6
6
  "keywords": [],
@@ -0,0 +1,24 @@
1
+ ## Language
2
+
3
+ - Work, think, and produce only English content: PRs, commits, files, code, docs, issues.
4
+ - Converse with the user in the user's language.
5
+
6
+ ## Code layout
7
+
8
+ User preferences for TypeScript code organization — apply them to new code and preserve them when touching existing code:
9
+
10
+ - File and folder names are dash-cased: `with-busy-retry/with-busy-retry.ts`. Dots are also accepted for test files (`store.reads.test.ts`).
11
+ - One `.ts` file per folder. Name the folder after its file: `serve/serve.ts` + `serve/serve.test.ts`.
12
+ - Colocate tests with the code they cover: the test file sits next to its source file.
13
+ - Each file exposes, when possible, a single public export (one function or class). Related types may be exported alongside the function/class they describe.
14
+ - No barrel files: do not create `index.ts` re-export modules.
15
+ - No default exports: use named exports only.
16
+
17
+ ## Code style
18
+
19
+ User preferences for TypeScript naming and typing — apply them to new code and preserve them when touching existing code:
20
+
21
+ - No abbreviations in variable names — spell names out. The only exceptions are universally standard ones (`for (let i = ...)`).
22
+ - No `private` keyword on methods or properties: use private fields (`#myMethod`) instead.
23
+ - Every TypeScript generic follows the pattern `G` + PascalCase name (`GResult`), never single letters.
24
+ - Use `readonly` as much as possible in types and interfaces.