@acpfx/recorder 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.
- package/dist/index.js +3 -10
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -25,6 +25,7 @@ import { parse as parseYaml } from "yaml";
|
|
|
25
25
|
// ../core/src/manifest.ts
|
|
26
26
|
import { readFileSync } from "node:fs";
|
|
27
27
|
import { join, dirname } from "node:path";
|
|
28
|
+
import { fileURLToPath } from "node:url";
|
|
28
29
|
|
|
29
30
|
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
30
31
|
var external_exports = {};
|
|
@@ -13860,16 +13861,8 @@ function handleManifestFlag(manifestPath) {
|
|
|
13860
13861
|
}
|
|
13861
13862
|
function printManifest(manifestPath) {
|
|
13862
13863
|
if (!manifestPath) {
|
|
13863
|
-
const
|
|
13864
|
-
|
|
13865
|
-
const scriptBase = script.replace(/\.[^.]+$/, "");
|
|
13866
|
-
const colocated = `${scriptBase}.manifest.json`;
|
|
13867
|
-
try {
|
|
13868
|
-
readFileSync(colocated);
|
|
13869
|
-
manifestPath = colocated;
|
|
13870
|
-
} catch {
|
|
13871
|
-
manifestPath = join(scriptDir, "manifest.json");
|
|
13872
|
-
}
|
|
13864
|
+
const bundleDir = dirname(fileURLToPath(import.meta.url));
|
|
13865
|
+
manifestPath = join(bundleDir, "manifest.json");
|
|
13873
13866
|
}
|
|
13874
13867
|
try {
|
|
13875
13868
|
const content = readFileSync(manifestPath, "utf8");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acpfx/recorder",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"acpfx-recorder": "./dist/index.js"
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"yaml": "^2.8.3",
|
|
15
|
-
"@acpfx/core": "0.4.
|
|
16
|
-
"@acpfx/node-sdk": "0.3.
|
|
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"
|