test: add dist/package.json postbuild test and packaging/CI fixes#6
test: add dist/package.json postbuild test and packaging/CI fixes#6selfagency merged 9 commits intomasterfrom
Conversation
chore: add write-dist-package script and CHANGELOG
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Summary of changes made in this branch:
dist/package.jsonpointing at the bundled ESM/CJS outputs and types (main/module/types/exports). Replaced an earlier .mjs implementation with an ESM.jsscript.tests/dist-package.test.tswhich runs the build and assertsdist/package.jsonis created with correct fields.CHANGELOG.mddocumenting the recent packaging and test changes.pnpm install --frozen-lockfileand run tests withpnpm test. Specified pnpm version in the action (version: '8').dist/index.js,dist/index.cjs, and typings.src/mappings.tsto avoid TypeScript errors with current target.windows-1252by switching to a namespace import insrc/index.tssoencode/decodeare available under ESM/TS.tests/fixtures/utf8-debug.htmlfor CI stability.What I verified locally:
dist/package.jsonand the new test asserts that.version: '8'for pnpm/action-setup.If you'd like I can: update the PR reviewers/assignees, bump package version and prepare a release, or revert any of the changes.