noninteractive 0.3.7 → 0.3.8

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.
@@ -79,8 +79,10 @@ function getPtyBridge() {
79
79
  const platform = process.platform;
80
80
  const arch = process.arch;
81
81
  const binaryName = `ptybridge-${platform}-${arch}`;
82
+ const scriptDir = dirname(process.argv[1] || process.execPath);
82
83
  const candidates = [
83
- resolve3(dirname(process.argv[1] || process.execPath), "native", binaryName),
84
+ resolve3(scriptDir, "..", "native", binaryName),
85
+ resolve3(scriptDir, "native", binaryName),
84
86
  resolve3(dirname(import.meta.dirname), "native", binaryName),
85
87
  resolve3(import.meta.dirname, "..", "native", binaryName)
86
88
  ];
@@ -240,7 +242,7 @@ var init_daemon = __esm(() => {
240
242
  var require_package = __commonJS((exports, module) => {
241
243
  module.exports = {
242
244
  name: "noninteractive",
243
- version: "0.3.7",
245
+ version: "0.3.8",
244
246
  type: "module",
245
247
  bin: {
246
248
  noninteractive: "./bin/noninteractive.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noninteractive",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "noninteractive": "./bin/noninteractive.js"