@cobol-ts/copybook-typescript 0.0.13 → 0.0.16

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.
Files changed (2) hide show
  1. package/README.md +13 -1
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -1,9 +1,21 @@
1
- # COBOL Copybook TypeScript Generation
1
+ # @cobol-ts/copybook-typescript
2
2
 
3
3
  `@cobol-ts/copybook-typescript` renders a **complete, compile-time source contract** from a parsed `CopybookAst`. It describes what the legacy copybook makes available; it is not a projection, a COBOL layout compiler, or a runtime object model.
4
4
 
5
5
  This package is the first generation stage described in [COBOL Copybook Types, Projections and Type-Safe Code Generation — Revised](https://docs.google.com/document/d/1_08mJz1tqKIv4Oigt2br3gaK8DvIlc0mVx-1OijG0Ao/edit). The copybook contract and the projection contract are deliberately separate because they have different authorities and can change independently.
6
6
 
7
+ ## Quick orientation
8
+
9
+ **Responsibility.** Render the copybook-derived source contract as TypeScript, independently of any business projection.
10
+
11
+ **Boundary.** The `CopybookAst` is the authority here; runtime projection choices are handled in separate packages.
12
+
13
+ **Public modules.** [copybook.typescript.ts](./src/copybook.typescript.ts).
14
+
15
+ **Tests.** [copybook.typescript.spec.ts](src/copybook.typescript.spec.ts)
16
+
17
+ **Related packages.** [@cobol-ts/copybook](../../cursor-loader/copybook/README.md) · [@cobol-ts/projection-typescript](../projection-typescript/README.md).
18
+
7
19
  ## API
8
20
 
9
21
  ```typescript
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cobol-ts/copybook-typescript",
3
3
  "description": "Generates complete TypeScript copybook authoring contracts from COBOL copybook ASTs",
4
- "version": "0.0.13",
4
+ "version": "0.0.16",
5
5
  "main": "dist/index",
6
6
  "types": "dist/index",
7
7
  "browserslist": {
@@ -17,9 +17,9 @@
17
17
  ]
18
18
  },
19
19
  "dependencies": {
20
- "@cobol-ts/copybook": "0.0.13",
21
- "@cobol-ts/layout": "0.0.13",
22
- "@cobol-ts/errors": "0.0.13"
20
+ "@cobol-ts/copybook": "0.0.16",
21
+ "@cobol-ts/layout": "0.0.16",
22
+ "@cobol-ts/errors": "0.0.16"
23
23
  },
24
24
  "devDependencies": {
25
25
  "typescript": "^5.2.2",