@typra/emitter 0.2.1 → 0.2.2

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 +30 -0
  2. package/package.json +2 -1
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # @typra/emitter
2
+
3
+ Generic TypeSpec emitter for generating multi-runtime model, protocol, test,
4
+ JSON AST, and documentation surfaces from TypeSpec.
5
+
6
+ ## Install
7
+
8
+ ```powershell
9
+ npm install --save-dev @typra/emitter
10
+ ```
11
+
12
+ ## CLI
13
+
14
+ The package includes the `typra-generate` command:
15
+
16
+ ```powershell
17
+ npx typra-generate --help
18
+ ```
19
+
20
+ ## TypeSpec emitter
21
+
22
+ Use `@typra/emitter` from TypeSpec configuration to generate runtime surfaces.
23
+ The first Typra fixture slice validates TypeScript and JSON AST generation from
24
+ synthetic TypeSpec shapes.
25
+
26
+ ## Publishing
27
+
28
+ This package is published from GitHub Actions using npm Trusted
29
+ Publishing/OIDC. Do not use an `NPM_TOKEN` secret for the trusted-publishing
30
+ path.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typra/emitter",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Generic TypeSpec emitter for generating multi-runtime model surfaces",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -30,6 +30,7 @@
30
30
  }
31
31
  },
32
32
  "files": [
33
+ "README.md",
33
34
  "dist/src/**/*.js",
34
35
  "dist/src/**/*.d.ts",
35
36
  "dist/src/**/*.json",