From 4350010d5d865f9c52df93334784a49ac9b6dfc9 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Wed, 18 Feb 2026 22:29:26 +0100 Subject: [PATCH] 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 --- index.js | 6 +----- package.json | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 3f458a4..0be1f5a 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,3 @@ -import path from "node:path"; - import express from "express"; import { handleWebFinger } from "./lib/webfinger.js"; @@ -50,9 +48,7 @@ export default class ActivityPubEndpoint { }; } - get filePath() { - return path.dirname(new URL(import.meta.url).pathname); - } + // filePath is set by Indiekit's plugin loader via require.resolve() /** * WebFinger routes — mounted at /.well-known/ diff --git a/package.json b/package.json index d9d6682..b40a939 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "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.", "keywords": [ "indiekit",