tsbindgen 0.7.21 → 0.7.22

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.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/bin.js +3 -7
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -23,3 +23,4 @@ npx tsbindgen generate -a MyAssembly.dll -o out/
23
23
  ## Documentation
24
24
 
25
25
  See the full documentation at [@tsonic/tsbindgen](https://github.com/tsoniclang/tsbindgen).
26
+
package/bin.js CHANGED
@@ -1,20 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // Forward to @tsonic/tsbindgen
4
- import { createRequire } from "node:module";
3
+ // Forward to @tsonic/tsbindgen.
5
4
  import { spawn } from "node:child_process";
6
- import { dirname, join } from "node:path";
7
- import { fileURLToPath } from "node:url";
5
+ import { createRequire } from "node:module";
8
6
 
9
- const __dirname = dirname(fileURLToPath(import.meta.url));
10
7
  const require = createRequire(import.meta.url);
11
8
 
12
- // Find the real bin.js from @tsonic/tsbindgen
13
9
  const realBinPath = require.resolve("@tsonic/tsbindgen/bin.js");
14
10
 
15
- // Spawn it with same args
16
11
  const child = spawn(process.execPath, [realBinPath, ...process.argv.slice(2)], {
17
12
  stdio: "inherit",
18
13
  });
19
14
 
20
15
  child.on("exit", (code) => process.exit(code ?? 1));
16
+
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "tsbindgen",
3
- "version": "0.7.21",
3
+ "version": "0.7.22",
4
4
  "description": "Generate TypeScript declarations from .NET assemblies",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "tsbindgen": "./bin.js"
8
8
  },
9
9
  "dependencies": {
10
- "@tsonic/tsbindgen": "0.7.21"
10
+ "@tsonic/tsbindgen": "0.7.22"
11
11
  },
12
12
  "keywords": [
13
13
  "tsonic",