Skip to content

fix(pkg): ship the files the exports maps point at - #10

Merged
acamarata merged 1 commit into
mainfrom
fix/ship-css-vars
Aug 20, 2026
Merged

fix(pkg): ship the files the exports maps point at#10
acamarata merged 1 commit into
mainfrom
fix/ship-css-vars

Conversation

@acamarata

Copy link
Copy Markdown
Contributor

@nself/tailwind-brand exports ./css-vars.css./src/css-vars.css and ./stylelint-plugin, but files listed only dist, README.md and LICENSE — so neither ships. @nself-web/ui exports ./src/index.ts with the same omission.

This is invisible when pnpm symlinks a workspace package, because the whole directory is there. It bites wherever the package is copied instead — Vercel installs with package-import-method=copy, and the ntask web build failed with:

[postcss] ENOENT: no such file or directory, open '@nself/tailwind-brand/css-vars.css'

Audited all 19 packages: these two were the only ones whose files array excluded an exported path. The rest have no files key and ship everything.

Build and typecheck clean.

@nself/tailwind-brand exports ./css-vars.css -> ./src/css-vars.css and
./stylelint-plugin, but files listed only dist, README and LICENSE, so neither
shipped. @nself-web/ui exports ./src/index.ts with the same omission.

Invisible when pnpm symlinks a workspace package, because the whole directory
is present. It bites wherever the package is copied instead — Vercel installs
with package-import-method=copy, and the ntask web build failed with:

    [postcss] ENOENT: no such file or directory,
    open '@nself/tailwind-brand/css-vars.css'

Audited every package: these two were the only ones with a files array that
excluded an exported path. The rest have no files key and ship everything.
@acamarata
acamarata merged commit b2ececc into main Aug 20, 2026
3 checks passed
@acamarata
acamarata deleted the fix/ship-css-vars branch August 20, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant