@tsonic/nodejs 0.4.3 → 0.4.4
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/__build/scripts/generate.sh +3 -1
- package/{nodejs → index}/bindings.json +698 -722
- package/{nodejs → index}/internal/index.d.ts +0 -1
- package/{nodejs → index}/internal/metadata.json +0 -16
- package/index.d.ts +148 -0
- package/nodejs.Http/bindings.json +96 -96
- package/nodejs.Http/internal/index.d.ts +6 -6
- package/nodejs.Http/internal/metadata.json +6 -6
- package/nodejs.Http.d.ts +1 -1
- package/package.json +3 -3
- package/nodejs.d.ts +0 -148
- /package/{nodejs.js → index.js} +0 -0
|
@@ -92,11 +92,13 @@ echo " Done"
|
|
|
92
92
|
|
|
93
93
|
# Generate types with JavaScript-style naming
|
|
94
94
|
# Uses --lib to reference BCL types from @tsonic/dotnet instead of regenerating them
|
|
95
|
+
# Uses --namespace-map to emit as index.d.ts/index.js for cleaner imports
|
|
95
96
|
echo "[3/3] Generating TypeScript declarations..."
|
|
96
97
|
dotnet run --project src/tsbindgen/tsbindgen.csproj --no-build -c Release -- \
|
|
97
98
|
generate -a "$NODEJS_DLL" -d "$DOTNET_RUNTIME_PATH" -o "$PROJECT_DIR" \
|
|
98
99
|
--lib "$DOTNET_LIB" \
|
|
99
|
-
--naming js
|
|
100
|
+
--naming js \
|
|
101
|
+
--namespace-map "nodejs=index"
|
|
100
102
|
|
|
101
103
|
echo ""
|
|
102
104
|
echo "================================================================"
|