fix: remove filePath getter that conflicts with Indiekit plugin loader

Indiekit's getInstalledPlugins() assigns plugin.filePath via require.resolve().
Our getter made the property read-only, causing:
  TypeError: Cannot set property filePath which has only a getter

Let Indiekit set it instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Ricardo
2026-02-18 22:29:26 +01:00
parent da625592fd
commit 4350010d5d
2 changed files with 2 additions and 6 deletions
+1 -5
View File
@@ -1,5 +1,3 @@
import path from "node:path";
import express from "express"; import express from "express";
import { handleWebFinger } from "./lib/webfinger.js"; import { handleWebFinger } from "./lib/webfinger.js";
@@ -50,9 +48,7 @@ export default class ActivityPubEndpoint {
}; };
} }
get filePath() { // filePath is set by Indiekit's plugin loader via require.resolve()
return path.dirname(new URL(import.meta.url).pathname);
}
/** /**
* WebFinger routes — mounted at /.well-known/ * WebFinger routes — mounted at /.well-known/
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@rmdes/indiekit-endpoint-activitypub", "name": "@rmdes/indiekit-endpoint-activitypub",
"version": "0.1.0", "version": "0.1.1",
"description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.", "description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
"keywords": [ "keywords": [
"indiekit", "indiekit",