@tsonic/tsbindgen 0.7.20 → 0.7.21
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 +38 -0
- package/lib/tsbindgen.dll +0 -0
- package/package.json +1 -1
- 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
|
@@ -132,6 +132,44 @@ output/
|
|
|
132
132
|
└── metadata.json
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
+
### Publishing Bindings Packages (dist/ + npm `exports`)
|
|
136
|
+
|
|
137
|
+
When you publish bindings for your own assemblies (or generate them inside an npm workspace), you can keep generated artifacts out of git by writing them under `dist/` and exposing the facades via npm `exports`:
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
dist/tsonic/bindings/
|
|
141
|
+
Acme.Domain.js
|
|
142
|
+
Acme.Domain.d.ts
|
|
143
|
+
Acme.Domain/
|
|
144
|
+
bindings.json
|
|
145
|
+
internal/
|
|
146
|
+
index.d.ts
|
|
147
|
+
metadata.json
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
`package.json`:
|
|
151
|
+
|
|
152
|
+
```json
|
|
153
|
+
{
|
|
154
|
+
"type": "module",
|
|
155
|
+
"exports": {
|
|
156
|
+
"./package.json": "./package.json",
|
|
157
|
+
"./*.js": {
|
|
158
|
+
"types": "./dist/tsonic/bindings/*.d.ts",
|
|
159
|
+
"default": "./dist/tsonic/bindings/*.js"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Consumers can then import CLR namespaces ergonomically:
|
|
166
|
+
|
|
167
|
+
```ts
|
|
168
|
+
import { TodoItem } from "@acme/domain/Acme.Domain.js";
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Tsonic resolves the import using Node’s module resolution (including `exports`) and locates the nearest `bindings.json` for CLR discovery.
|
|
172
|
+
|
|
135
173
|
### Output Files
|
|
136
174
|
|
|
137
175
|
| File | Description |
|
package/lib/tsbindgen.dll
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
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
|