Skip to content

chore: prepare package for npm publishing (NodeNext, exports, v1.1.1)#2

Merged
watzon merged 1 commit into
mainfrom
chore/publish-readiness
Jul 1, 2026
Merged

chore: prepare package for npm publishing (NodeNext, exports, v1.1.1)#2
watzon merged 1 commit into
mainfrom
chore/publish-readiness

Conversation

@watzon

@watzon watzon commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Summary

Prepares three-mf for npm publishing with Node-compatible ESM (NodeNext), explicit .js relative imports, and package exports (v1.1.1).

Changes

Build & module resolution

  • tsconfig.build.json: module / moduleResolutionNodeNext
  • Explicit .js on relative from / export * from imports across src/
  • Exclude src/test.ts from the build

Package (v1.1.1)

  • exports: ., ./production-extension, ./materials-extension
  • files, prepack, prepublishOnly, metadata cleanup

New / docs / CI

  • MIT LICENSE
  • src/materials-extension/index.ts barrel
  • README publishing section, CHANGELOG 1.1.1
  • CI: frozen lockfile install

Validation

  • bun run build
  • bun test — 111 passed, 0 failed
  • npm pack --dry-run — 87 files, no src/test in tarball
  • Node ESM smoke from packed tarball: three-mf, three-mf/production-extension, three-mf/materials-extension

- NodeNext build with explicit .js relative imports
- package.json exports, files, prepack/prepublishOnly, v1.1.1
- MIT LICENSE, materials-extension barrel, exclude src/test.ts from build
- README publishing notes, CHANGELOG, CI frozen lockfile
@watzon
watzon merged commit dc832a9 into main Jul 1, 2026
1 check passed
@watzon
watzon deleted the chore/publish-readiness branch July 1, 2026 23:23
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