From ee3a9bc14b5149e9265c2afbbfd4296f2feb7576 Mon Sep 17 00:00:00 2001 From: Aaron Casanova <32409546+aaronccasanova@users.noreply.github.com> Date: Sun, 20 Apr 2025 23:54:27 -0700 Subject: [PATCH] Remove `README.md` and `bin` from `package.json#files` field (#461) This PR removes always included files and folders from the [`package.json#files` field](https://docs.npmjs.com/cli/v11/configuring-npm/package-json#files): > Certain files are always included, regardless of settings: > - package.json > - README > - LICENSE / LICENCE > - The file in the "main" field > - The file(s) in the "bin" field Validated by running `pnpm i && cd codex-cli && pnpm build && pnpm release:readme && pnpm pack` and confirming both the `README.md` file and `bin` directory are still included in the tarball: image --- codex-cli/package.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/codex-cli/package.json b/codex-cli/package.json index b0a005d0..6afabe5d 100644 --- a/codex-cli/package.json +++ b/codex-cli/package.json @@ -26,8 +26,6 @@ "release": "pnpm run release:readme && pnpm run release:version && pnpm install && pnpm run release:build-and-publish" }, "files": [ - "README.md", - "bin", "dist", "src" ],