Skip to content

release: v1.0.7 - ship compiled plugin - #3

Merged
ysm-dev merged 2 commits into
ysm-dev:mainfrom
colus001:fix/package-js-entrypoint
Sep 9, 2026
Merged

ysm-dev merged 2 commits into
ysm-dev:mainfrom
colus001:fix/package-js-entrypoint

Conversation

@colus001

@colus001 colus001 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • publish a Node-compatible ESM bundle instead of TypeScript source under node_modules
  • preserve the plugin public types with a declaration entrypoint
  • add an installed-tarball smoke test and run it in CI and before publishing

Testing

  • bun run check:ci
  • bun run typecheck
  • bun run knip
  • bun run test:coverage (159 passed)
  • bun run test:package

colus001 and others added 2 commits September 9, 2026 14:55
- Add a "prepare" script alongside "prepack" so `dist/index.js` is
  built for git-based installs too. npm only runs "prepack" for
  `npm pack`/`npm publish`; it runs "prepare" (not "prepack") when
  installing the package from a git dependency, which previously left
  `dist/` missing and broke `main` resolution entirely for that
  install path.

- Add test/types/public-api.test.ts, a compile-time-only check that
  index.d.ts (hand-written, shipped to consumers via "types") stays
  structurally identical to the real exports of src/index.ts. Nothing
  else ties the two together, and skipLibCheck plus tsconfig excluding
  the root index.d.ts meant a renamed, retyped, added, or removed
  export in either file would pass typecheck, lint, knip, tests, and
  the package smoke test undetected. Verified this file fails
  `bun run typecheck` when index.d.ts drifts and passes when it
  matches; it has no test() calls, so it is inert (0 assertions) under
  `bun test`.
@ysm-dev
ysm-dev merged commit 5955380 into ysm-dev:main Sep 9, 2026
1 check passed
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.

2 participants