Skip to content

package.json tweaks - #85

Merged
nstepien merged 1 commit into
mainfrom
pack
Sep 1, 2026
Merged

nstepien merged 1 commit into
mainfrom
pack

Conversation

@nstepien

@nstepien nstepien commented Sep 1, 2026

Copy link
Copy Markdown
Owner

No description provided.

@nstepien nstepien self-assigned this Sep 1, 2026
@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 4874e58d-d0af-40a0-9d0a-e06d259602c5


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nstepien
nstepien merged commit 672ed54 into main Sep 1, 2026
5 checks passed
@nstepien
nstepien deleted the pack branch September 1, 2026 22:44
nstepien added a commit that referenced this pull request Oct 17, 2026
)

Removing the `main` field in #85 also dropped `index.js` from the
tarball, as `files` only lists `dist` and `index.d.ts`. The plugin
leaves the `ecij` import in place, so builds still resolve it. Packing
`main` and installing it in react-data-grid breaks `vp build`:

```
Error: [vite+]: Rolldown failed to resolve import "ecij" from ".../website/routes/ColumnSpanning.tsx".
```

This adds `index.js` to `files` and adds [publint](https://publint.dev/)
as `node --run lint:package` (`publint --strict`), which checks every
file referenced by `package.json` against the files `npm pack` would
publish. CI and the release workflow run it after the build, so a
missing entry point now fails CI and stops a release.

## Verification

- `npm pack --dry-run` lists `index.js` again (7 files).
- Without the `files` change, publint fails with
`pkg.exports["."].default is ./index.js but the file is not published.
Is it specified in pkg.files?`, with both npm 11 and npm 12. With it,
publint reports `All good!`.
- With the packed tarball installed in react-data-grid (`f7d4e272`), `vp
pack` and `vp build` pass, and all of its tests pass (544 passed, 3
skipped).
- Compared with ecij 0.5.0, the CSS is byte-identical and the class
names are the same. The only JS change is the IIFE class names from #87
in the unminified `lib/index.js`, which minifiers fold back into
strings.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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