chore: align use package surface#197
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 522279c06e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "types": "./dist/index.d.ts", | ||
| "import": "./dist/index.mjs", | ||
| "require": "./dist/index.cjs" | ||
| } |
There was a problem hiding this comment.
Restore the package.json subpath export
When consumers or tooling import or require @sigrea/use/package.json to read package metadata, this export map now rejects that previously public subpath with ERR_PACKAGE_PATH_NOT_EXPORTED because the ./package.json entry was removed. Since npm still includes package.json in the published tarball, adding the subpath back preserves the existing package API without changing the runtime bundle.
Useful? React with 👍 / 👎.
Summary
Tests