@theholocron/holocron-plugin-github 5.0.0-alpha.170 → 5.0.0-alpha.172

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.mjs +6 -2
  2. package/package.json +5 -3
package/dist/index.mjs CHANGED
@@ -3,6 +3,7 @@ import { createGitHubClient, createGitHubClient as createGitHubClient$1 } from "
3
3
  import { AuthError, createFeatureResolver } from "@theholocron/cli";
4
4
  import { mkdir, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
5
5
  import { dirname, join } from "node:path";
6
+ import { findRootSync } from "@theholocron/fs-utils";
6
7
  import { errorMessage } from "@theholocron/misc-utils";
7
8
  //#region src/auth.ts
8
9
  const resolveReadToken = createFeatureResolver({
@@ -497,8 +498,11 @@ var GitHubSource = class {
497
498
  this.owner = owner;
498
499
  this.name = name;
499
500
  this.repo = opts.repo;
500
- this.repoRoot = opts.repoRoot;
501
- this.workflowDir = join(opts.repoRoot, ".github", "workflows");
501
+ this.repoRoot = findRootSync(opts.repoRoot, ".git", {
502
+ fallback: "start",
503
+ realpath: true
504
+ });
505
+ this.workflowDir = join(this.repoRoot, ".github", "workflows");
502
506
  this.orgClient = opts.orgClient;
503
507
  this.baseUrl = opts.baseUrl;
504
508
  this.fetchImpl = opts.fetch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-github",
3
- "version": "5.0.0-alpha.170",
3
+ "version": "5.0.0-alpha.172",
4
4
  "description": "Holocron plugin for GitHub. Implements source, ci, secrets, environments, and issues capabilities against the GitHub REST API.",
5
5
  "keywords": [
6
6
  "ci",
@@ -35,6 +35,7 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@theholocron/eslint-config": "^8.8.0",
38
+ "@theholocron/fs-utils": "^1.16.0",
38
39
  "@theholocron/github-client": "^1.42.1",
39
40
  "@theholocron/http-client": "^1.42.1",
40
41
  "@theholocron/misc-utils": "^1.16.0",
@@ -51,12 +52,13 @@
51
52
  "tsx": "4.23.15",
52
53
  "typescript": "^5.9.3",
53
54
  "vitest": "^4.1.11",
54
- "@theholocron/cli": "5.0.0-alpha.170"
55
+ "@theholocron/cli": "5.0.0-alpha.172"
55
56
  },
56
57
  "peerDependencies": {
58
+ "@theholocron/fs-utils": "^1.16.0",
57
59
  "@theholocron/github-client": "^1.42.1",
58
60
  "@theholocron/misc-utils": "^1.16.0",
59
- "@theholocron/cli": "5.0.0-alpha.170"
61
+ "@theholocron/cli": "5.0.0-alpha.172"
60
62
  },
61
63
  "engines": {
62
64
  "node": ">=22"