tsonic 0.0.70 → 0.0.71

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 +29 -19
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,47 +1,57 @@
1
1
  # tsonic
2
2
 
3
- TypeScript to C# to NativeAOT compiler.
3
+ CLI package for the Tsonic compiler.
4
4
 
5
- ## Installation
5
+ ## Install
6
6
 
7
7
  ```bash
8
8
  npm install -g tsonic
9
9
  ```
10
10
 
11
- Or in a project:
11
+ Or use locally:
12
12
 
13
13
  ```bash
14
- npm install -D tsonic
14
+ npm install --save-dev tsonic
15
15
  ```
16
16
 
17
17
  ## Usage
18
18
 
19
+ ### Initialize a workspace
20
+
21
+ Default CLR surface:
22
+
19
23
  ```bash
20
- # Initialize a new project (creates tsonic.json, src/App.ts, etc.)
21
- tsonic project init
24
+ tsonic init
25
+ ```
22
26
 
23
- # Build TypeScript to native binary
24
- tsonic build src/App.ts
27
+ JS surface:
25
28
 
26
- # Generate C# only (no compilation)
27
- tsonic generate src/App.ts
29
+ ```bash
30
+ tsonic init --surface @tsonic/js
28
31
  ```
29
32
 
30
- If installed as a dev dependency, use `npx`:
33
+ ### Build and run
31
34
 
32
35
  ```bash
33
- npx tsonic build src/App.ts
36
+ tsonic build
37
+ tsonic run
34
38
  ```
35
39
 
36
- ## Requirements
40
+ ### Add dependencies
37
41
 
38
- - Node.js >= 22.0.0
39
- - .NET SDK 10.0 or later
42
+ ```bash
43
+ tsonic add npm @tsonic/nodejs
44
+ tsonic add nuget Microsoft.Extensions.Logging 10.0.0
45
+ tsonic add package ./libs/MyCompany.MyLib.dll
46
+ tsonic restore
47
+ ```
40
48
 
41
- ## Documentation
49
+ ## Requirements
42
50
 
43
- See https://github.com/tsoniclang/tsonic for full documentation.
51
+ - Node.js 22+
52
+ - .NET 10 SDK
44
53
 
45
- ## License
54
+ ## Docs
46
55
 
47
- MIT
56
+ - `https://tsonic.org/tsonic/`
57
+ - `https://github.com/tsoniclang/tsonic`
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "tsonic",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "description": "TypeScript to C# to NativeAOT compiler",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "tsonic": "bin.js"
8
8
  },
9
9
  "dependencies": {
10
- "@tsonic/cli": "0.0.70"
10
+ "@tsonic/cli": "0.0.71"
11
11
  },
12
12
  "keywords": [
13
13
  "tsonic",