@hasna/hooks 0.2.1 → 0.2.2

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/bin/index.js +2 -1
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -5457,7 +5457,8 @@ init_registry();
5457
5457
  init_installer();
5458
5458
  import { jsxDEV as jsxDEV8 } from "react/jsx-dev-runtime";
5459
5459
  var __dirname4 = dirname3(fileURLToPath3(import.meta.url));
5460
- var pkg2 = JSON.parse(readFileSync3(join3(__dirname4, "..", "package.json"), "utf-8"));
5460
+ var pkgPath = existsSync3(join3(__dirname4, "..", "package.json")) ? join3(__dirname4, "..", "package.json") : join3(__dirname4, "..", "..", "package.json");
5461
+ var pkg2 = JSON.parse(readFileSync3(pkgPath, "utf-8"));
5461
5462
  var program2 = new Command;
5462
5463
  function resolveScope(options) {
5463
5464
  if (options.project)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/hooks",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Open source hooks library for AI coding agents - Install safety, quality, and automation hooks with a single command",
5
5
  "type": "module",
6
6
  "bin": {