@coresource/hz 0.1.2 → 0.1.3

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/hz.mjs +2 -3
  2. package/package.json +1 -1
package/dist/hz.mjs CHANGED
@@ -1,8 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/cli.ts
4
- import { readFileSync } from "fs";
5
- import path7 from "path";
4
+ import { readFileSync, realpathSync } from "fs";
6
5
  import { fileURLToPath } from "url";
7
6
  import { Command, CommanderError as CommanderError3 } from "commander";
8
7
 
@@ -4718,7 +4717,7 @@ function isEntrypoint() {
4718
4717
  if (!entryPath) {
4719
4718
  return false;
4720
4719
  }
4721
- return path7.resolve(entryPath) === fileURLToPath(import.meta.url);
4720
+ return realpathSync(entryPath) === fileURLToPath(import.meta.url);
4722
4721
  }
4723
4722
  function writeError(stream, message) {
4724
4723
  writeLine(stream, `Error: ${message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coresource/hz",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "hz": "dist/hz.mjs"