From 5e3295fab04f8779738bef5f0fa558f96f86d9df Mon Sep 17 00:00:00 2001 From: Khaliq Date: Thu, 16 Apr 2026 16:21:30 +0200 Subject: [PATCH] fix(linear,slack): point exports to dist/, add ./path-mapper subpath Same fix as adapter-github PR #19: - exports field now points to dist/*.js instead of src/*.ts - Added ./path-mapper subpath export for zero-dep path computation - files field changed to ["dist"] so compiled output is published Fixes Turbopack "Unknown module type" errors in Next.js consumers that can't handle raw .ts source files from node_modules. Co-Authored-By: Claude Opus 4.6 --- packages/linear/package.json | 13 ++++++++++--- packages/slack/package.json | 14 ++++++++++---- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/packages/linear/package.json b/packages/linear/package.json index bc36c32..55be090 100644 --- a/packages/linear/package.json +++ b/packages/linear/package.json @@ -4,12 +4,19 @@ "description": "Linear adapter bootstrap package for Relayfile", "type": "module", "main": "dist/index.js", - "types": "./src/index.ts", + "types": "dist/index.d.ts", "exports": { - ".": "./src/index.ts" + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js" + }, + "./path-mapper": { + "types": "./dist/path-mapper.d.ts", + "import": "./dist/path-mapper.js" + } }, "files": [ - "src" + "dist" ], "scripts": { "typecheck": "tsc --noEmit -p tsconfig.json", diff --git a/packages/slack/package.json b/packages/slack/package.json index 5218572..fb99ca0 100644 --- a/packages/slack/package.json +++ b/packages/slack/package.json @@ -5,13 +5,19 @@ "type": "module", "sideEffects": false, "main": "dist/index.js", - "types": "./src/index.ts", + "types": "dist/index.d.ts", "exports": { - ".": "./src/index.ts" + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js" + }, + "./path-mapper": { + "types": "./dist/path-mapper.d.ts", + "import": "./dist/path-mapper.js" + } }, "files": [ - "src", - "tsconfig.json" + "dist" ], "scripts": { "test": "node --import tsx --test src/__tests__/*.test.ts",