chore(package): fix module resolution to support >=node10#4
Conversation
Worth a lookUnchecked items in the PR checklist Each checkbox is an attestation — please fill them in honestly. If one doesn't apply to your change, note why in the description. |
🦋 Changeset detectedLatest commit: 58821e9 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Pull request overview
Updates the monorepo packaging/build setup to validate published artifacts across different resolution environments (via ATTW + publint), and adjusts build outputs/exports to improve module/type resolvability.
Changes:
- Add a
lint:packageTurbo task and wire it into the rootbuildpipeline. - Update
@sqts/coreand@sqts/sqlbuild/package metadata for dual ESM/CJS outputs (custom extensions,type: module, updatedexports). - Add a changeset and update lockfile/dependency versions to support the new packaging checks.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
turbo.json |
Adds lint:package task to Turbo config. |
package.json |
Runs turbo lint:package as part of build; adds ATTW CLI dependency and bumps tooling versions. |
packages/core/tsdown.config.ts |
Adjusts build output extensions and Node protocol handling; updates externals. |
packages/sql/tsdown.config.ts |
Adjusts build output extensions and externals. |
packages/core/package.json |
Updates package to ESM-by-default metadata + conditional exports/types layout; adds lint:package script. |
packages/sql/package.json |
Updates package to ESM-by-default metadata + conditional exports/types layout; adds lint:package script. |
.changeset/tall-glasses-think.md |
Declares patch releases for @sqts/core and @sqts/sql. |
bun.lock |
Lockfile updates for added/changed tooling deps. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
What this changes
Used ATTR & publint to ensure that all packages and paths are resolvable on node10, node16, and in bundlers
How I tested this
Build command now runs ATTR and publint
Checklist