From d9bb4dfaa8826ed2b311d48c2a7dd954290d001d Mon Sep 17 00:00:00 2001 From: Thomas Broadley Date: Sun, 6 Sep 2026 16:19:48 -0400 Subject: [PATCH] Exclude compiled test files from the published npm package `tsc` compiles `test/` into `build/test`, and the `files` field included all of `build`, so compiled mocha tests shipped to consumers. Add a `!build/test` negation entry so the tarball only contains the library and CLI code. Co-Authored-By: Claude Opus 5 (1M context) --- CHANGELOG.md | 2 ++ package.json | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ba2945..10c8733 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +- Exclude compiled test files from the published npm package. + ## [7.0.4] - 2026-09-06 - Upgrade dependencies to fix 58 security vulnerabilities (22 Moderate, 36 High). diff --git a/package.json b/package.json index 3e78860..fecd0bb 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "type": "module", "files": [ "build", + "!build/test", "dictionaries" ], "bin": {