Skip to content

Add missing postcss files in package.json files field#329

Merged
necolas merged 1 commit into
react:mainfrom
javascripter:publish-postcss-files
Jul 4, 2025
Merged

Add missing postcss files in package.json files field#329
necolas merged 1 commit into
react:mainfrom
javascripter:publish-postcss-files

Conversation

@javascripter

Copy link
Copy Markdown
Contributor

Why

v0.0.38 published to npm does not include postcss/plugin.js due to missing package.json files field.

#308 added postcss exports but did not include the actual postcss/plugin.js files, causing the files to be not included when publishing to npm.

Screenshot 2025-07-04 at 12 04 26

How

Adds "postcss/*" to files field similar to babel preset files.

@necolas

necolas commented Jul 4, 2025

Copy link
Copy Markdown
Contributor

It's a shame npm doesn't validate exports at all before publishing. Or accurately replicate package install when symlinking within a monorepo

@necolas necolas merged commit 06db522 into react:main Jul 4, 2025
6 of 8 checks passed
@javascripter javascripter deleted the publish-postcss-files branch July 5, 2025 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants