@tsonic/tsbindgen 0.7.51 → 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 +16 -2
- 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,6 +115,8 @@ 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
|
|
118
122
|
# Standard SDK/runtime installs usually work with no extra ref dirs
|
|
@@ -124,6 +128,16 @@ npx tsbindgen resolve-closure \
|
|
|
124
128
|
--ref-dir ./libs
|
|
125
129
|
```
|
|
126
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
|
+
|
|
127
141
|
### Examples
|
|
128
142
|
|
|
129
143
|
```bash
|
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
|