From 9213336e9de0623c45c7adb26084652e3f72357b Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 14 Sep 2026 11:05:34 +0200 Subject: [PATCH] Publish the compiled output, which is the whole package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It compiles itself on install and then shipped everything except the result. With no explicit file list npm falls back to .gitignore, which ignores dist — so every consumer received a package whose every entry point pointed at a directory that had just been built and then excluded. The workaround for this lived in mesh-tools, which compiled the dependency by hand after installing it. --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index a97fcae..5ad8b98 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,9 @@ "./events": "./dist/events/index.js", "./primitives": "./dist/primitives/index.js" }, + "files": [ + "dist" + ], "scripts": { "build": "tsc", "test": "node --test --experimental-strip-types 'test/*.test.ts'",