@acpfx/bridge-acpx 0.2.5 → 0.2.6

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 (2) hide show
  1. package/dist/index.js +3 -10
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -19,6 +19,7 @@ import { parse as parseYaml } from "yaml";
19
19
  // ../core/src/manifest.ts
20
20
  import { readFileSync } from "node:fs";
21
21
  import { join, dirname } from "node:path";
22
+ import { fileURLToPath } from "node:url";
22
23
 
23
24
  // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
24
25
  var external_exports = {};
@@ -13854,16 +13855,8 @@ function handleManifestFlag(manifestPath) {
13854
13855
  }
13855
13856
  function printManifest(manifestPath) {
13856
13857
  if (!manifestPath) {
13857
- const script = process.argv[1];
13858
- const scriptDir = dirname(script);
13859
- const scriptBase = script.replace(/\.[^.]+$/, "");
13860
- const colocated = `${scriptBase}.manifest.json`;
13861
- try {
13862
- readFileSync(colocated);
13863
- manifestPath = colocated;
13864
- } catch {
13865
- manifestPath = join(scriptDir, "manifest.json");
13866
- }
13858
+ const bundleDir = dirname(fileURLToPath(import.meta.url));
13859
+ manifestPath = join(bundleDir, "manifest.json");
13867
13860
  }
13868
13861
  try {
13869
13862
  const content = readFileSync(manifestPath, "utf8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acpfx/bridge-acpx",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "acpfx-bridge-acpx": "./dist/index.js"
@@ -12,8 +12,8 @@
12
12
  ],
13
13
  "dependencies": {
14
14
  "yaml": "^2.8.3",
15
- "@acpfx/core": "0.4.0",
16
- "@acpfx/node-sdk": "0.3.0"
15
+ "@acpfx/core": "0.4.1",
16
+ "@acpfx/node-sdk": "0.3.1"
17
17
  },
18
18
  "scripts": {
19
19
  "build": "esbuild src/index.ts --bundle --external:yaml --banner:js=\"#!/usr/bin/env node\" --platform=node --format=esm --outfile=dist/index.js && node ../../scripts/copy-manifest.js"