@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.
@@ -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 "================================================================"