@tsonic/tsbindgen 0.7.50 → 0.7.52
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 +25 -5
- package/lib/tsbindgen.dll +0 -0
- package/package.json +2 -4
- package/lib/cs/System.CommandLine.resources.dll +0 -0
- package/lib/de/System.CommandLine.resources.dll +0 -0
- package/lib/es/System.CommandLine.resources.dll +0 -0
- package/lib/fr/System.CommandLine.resources.dll +0 -0
- package/lib/it/System.CommandLine.resources.dll +0 -0
- package/lib/ja/System.CommandLine.resources.dll +0 -0
- package/lib/ko/System.CommandLine.resources.dll +0 -0
- package/lib/pl/System.CommandLine.resources.dll +0 -0
- package/lib/pt-BR/System.CommandLine.resources.dll +0 -0
- package/lib/ru/System.CommandLine.resources.dll +0 -0
- package/lib/tr/System.CommandLine.resources.dll +0 -0
- package/lib/tsbindgen +0 -0
- package/lib/tsbindgen.pdb +0 -0
- package/lib/zh-Hans/System.CommandLine.resources.dll +0 -0
- package/lib/zh-Hant/System.CommandLine.resources.dll +0 -0
package/README.md
CHANGED
|
@@ -42,12 +42,14 @@ dotnet build src/tsbindgen/tsbindgen.csproj
|
|
|
42
42
|
### Generate BCL declarations
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
|
+
DOTNET_RUNTIME=$(dirname "$(dotnet --list-runtimes | awk '/Microsoft.NETCore.App 10\\./ { print $3; exit }')")
|
|
46
|
+
|
|
45
47
|
# Via npm
|
|
46
|
-
npx tsbindgen generate -d
|
|
48
|
+
npx tsbindgen generate -d "$DOTNET_RUNTIME" -o ./output
|
|
47
49
|
|
|
48
50
|
# Via dotnet (from source)
|
|
49
51
|
dotnet run --project src/tsbindgen/tsbindgen.csproj -- \
|
|
50
|
-
generate -d
|
|
52
|
+
generate -d "$DOTNET_RUNTIME" -o ./output
|
|
51
53
|
```
|
|
52
54
|
|
|
53
55
|
### Generate for a custom assembly
|
|
@@ -113,19 +115,37 @@ npx tsbindgen generate -a ./MyLibrary.dll -d $DOTNET_RUNTIME -o ./my-lib \
|
|
|
113
115
|
Machine-readable dependency resolution for one or more seed assemblies. Useful for:
|
|
114
116
|
- Debugging missing dependencies before generation
|
|
115
117
|
- Tooling integrations (e.g. build systems) that need deterministic closure resolution
|
|
118
|
+
- Source builds and tests that should resolve the installed .NET runtime without
|
|
119
|
+
assuming a fixed install directory
|
|
116
120
|
|
|
117
121
|
```bash
|
|
122
|
+
# Standard SDK/runtime installs usually work with no extra ref dirs
|
|
123
|
+
npx tsbindgen resolve-closure -a ./MyLibrary.dll
|
|
124
|
+
|
|
125
|
+
# Add extra directories only when dependencies live outside the runtime closure
|
|
118
126
|
npx tsbindgen resolve-closure \
|
|
119
127
|
-a ./MyLibrary.dll \
|
|
120
|
-
--ref-dir $DOTNET_RUNTIME \
|
|
121
128
|
--ref-dir ./libs
|
|
122
129
|
```
|
|
123
130
|
|
|
131
|
+
## .NET runtime discovery
|
|
132
|
+
|
|
133
|
+
Repo-local test scripts discover the installed `Microsoft.NETCore.App` runtime
|
|
134
|
+
through `dotnet --list-runtimes`. Set `DOTNET_RUNTIME` to override the runtime
|
|
135
|
+
assembly directory explicitly.
|
|
136
|
+
|
|
137
|
+
Surface-manifest validation is tied to the runtime assembly version. If the
|
|
138
|
+
runtime version and baseline manifest do not match, the validator reports that
|
|
139
|
+
version mismatch directly.
|
|
140
|
+
|
|
124
141
|
### Examples
|
|
125
142
|
|
|
126
143
|
```bash
|
|
127
|
-
# Generate a custom assembly
|
|
128
|
-
npx tsbindgen generate -a ./MyLibrary.dll -
|
|
144
|
+
# Generate a custom assembly
|
|
145
|
+
npx tsbindgen generate -a ./MyLibrary.dll -o ./out
|
|
146
|
+
|
|
147
|
+
# Add extra directories when dependencies live outside the runtime closure
|
|
148
|
+
npx tsbindgen generate -a ./MyLibrary.dll -o ./out \
|
|
129
149
|
--ref-dir ./libs
|
|
130
150
|
|
|
131
151
|
# Verbose output with specific log categories
|
package/lib/tsbindgen.dll
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsonic/tsbindgen",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.52",
|
|
4
4
|
"description": "Generate TypeScript declarations from .NET assemblies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -18,9 +18,7 @@
|
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "dotnet publish src/tsbindgen/tsbindgen.csproj -c Release -o lib/"
|
|
22
|
-
"prepack": "npm run build",
|
|
23
|
-
"prepublishOnly": "npm run build"
|
|
21
|
+
"build": "dotnet publish src/tsbindgen/tsbindgen.csproj -c Release -o lib/"
|
|
24
22
|
},
|
|
25
23
|
"keywords": [
|
|
26
24
|
"tsonic",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/tsbindgen
DELETED
|
Binary file
|
package/lib/tsbindgen.pdb
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|