@youmind-ai/bridge 0.1.0 → 0.1.1

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 +10 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // apps/bridge-cli/src/index.ts
4
- import { closeSync as closeSync2, existsSync as existsSync7, mkdirSync as mkdirSync6, openSync as openSync2, readFileSync as readFileSync8, rmSync as rmSync4, statSync as statSync2, writeFileSync as writeFileSync6 } from "fs";
4
+ import { closeSync as closeSync2, existsSync as existsSync7, mkdirSync as mkdirSync6, openSync as openSync2, readFileSync as readFileSync8, realpathSync as realpathSync2, rmSync as rmSync4, statSync as statSync2, writeFileSync as writeFileSync6 } from "fs";
5
5
  import { randomUUID as randomUUID5 } from "crypto";
6
6
  import { execFileSync as execFileSync5, spawn as spawn3 } from "child_process";
7
7
  import { join as join7, resolve as resolve4 } from "path";
@@ -11322,7 +11322,15 @@ function isDirectExecution() {
11322
11322
  if (!entrypoint) {
11323
11323
  return false;
11324
11324
  }
11325
- return fileURLToPath2(import.meta.url) === resolve4(entrypoint);
11325
+ return normalizeEntrypointPath(fileURLToPath2(import.meta.url)) === normalizeEntrypointPath(entrypoint);
11326
+ }
11327
+ function normalizeEntrypointPath(path) {
11328
+ const absolutePath = resolve4(path);
11329
+ try {
11330
+ return realpathSync2(absolutePath);
11331
+ } catch {
11332
+ return absolutePath;
11333
+ }
11326
11334
  }
11327
11335
  if (isDirectExecution()) {
11328
11336
  main().catch((error) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youmind-ai/bridge",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-only",