From f4ed6281c55ed72c7787265e26025d60cbfd8998 Mon Sep 17 00:00:00 2001 From: glass beadian Date: Sun, 18 Oct 2026 12:19:13 +0000 Subject: [PATCH] fix: connector-instagram entrypoint must be compiled dist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The T-HUB package pointed main at src/index.ts — node 22 type-stripping executed it at runtime and crashed the api on the parameter properties (authorizationUrl/connectionId). main now targets dist/index.js like every other connector package; tsconfig copied from connector-mastodon. --- packages/connector-instagram/package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/connector-instagram/package.json b/packages/connector-instagram/package.json index e1cc089..c29bab1 100644 --- a/packages/connector-instagram/package.json +++ b/packages/connector-instagram/package.json @@ -3,7 +3,7 @@ "private": true, "version": "0.1.0", "type": "module", - "main": "src/index.ts", + "main": "dist/index.js", "scripts": { "build": "tsc -p tsconfig.json", "lint": "eslint src", @@ -18,5 +18,6 @@ "@types/node": "^22.20.5", "typescript": "^5.5.4", "vitest": "^2.0.5" - } -} + }, + "types": "dist/index.d.ts" +} \ No newline at end of file