@pnpm/fs.packlist 1100.0.10 → 1100.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @pnpm/fs.packlist
2
2
 
3
+ ## 1100.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - `pnpm pack` and `pnpm publish` now always include the binary file declared by a string `bin` field in `package.json`, even when `files` or `.npmignore` would otherwise exclude it.
8
+
3
9
  ## 1100.0.10
4
10
 
5
11
  ### Patch Changes
package/lib/index.js CHANGED
@@ -381,7 +381,8 @@ function normalizePackage(pkg) {
381
381
  normalized.browser = stripDotSlash(normalized.browser);
382
382
  }
383
383
  if (typeof normalized.bin === 'string') {
384
- normalized.bin = stripDotSlash(normalized.bin);
384
+ const binName = typeof normalized.name === 'string' && normalized.name.length > 0 ? normalized.name : 'bin';
385
+ normalized.bin = { [binName]: stripDotSlash(normalized.bin) };
385
386
  }
386
387
  else if (normalized.bin != null && typeof normalized.bin === 'object') {
387
388
  const bin = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/fs.packlist",
3
- "version": "1100.0.10",
3
+ "version": "1100.0.11",
4
4
  "description": "Get a list of the files to add from a directory into an npm package",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -33,7 +33,7 @@
33
33
  "npm-packlist": "10.0.4"
34
34
  },
35
35
  "devDependencies": {
36
- "@pnpm/fs.packlist": "1100.0.10"
36
+ "@pnpm/fs.packlist": "1100.0.11"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=22.13"