Skip to content

chore: keep root package publishable under pnpm#18

Merged
saseungmin merged 2 commits into
mainfrom
chore/pnpm-root-package
Jun 27, 2026
Merged

chore: keep root package publishable under pnpm#18
saseungmin merged 2 commits into
mainfrom
chore/pnpm-root-package

Conversation

@saseungmin

Copy link
Copy Markdown
Member

Expo Snack made the packages/swipe-deck move look like the wrong abstraction.

This keeps the published package at the repo root and moves tooling to pnpm.

Constraint: Single npm package is published from the repository root

Constraint: docs and example remain workspace projects

Expo Snack made the packages/swipe-deck move look like the wrong abstraction.

This keeps the published package at the repo root and moves tooling to pnpm.

Constraint: Single npm package is published from the repository root

Constraint: docs and example remain workspace projects

Rejected: Keep packages/swipe-deck migration | no second publishable package exists

Rejected: Leave Yarn hooks | local automation would diverge from CI and docs

Confidence: high

Scope-risk: moderate

Directive: Keep nodeLinker hoisted unless React Native Metro resolution is revalidated

Tested: CI=true pnpm install --no-frozen-lockfile

Tested: CI=true pnpm install --frozen-lockfile

Tested: CI=true pnpm format:check

Tested: CI=true pnpm lint:ci

Tested: CI=true pnpm typecheck

Tested: CI=true pnpm build

Tested: CI=true pnpm test --maxWorkers=2 --coverage

Tested: CI=true pnpm docs:typecheck

Tested: CI=true pnpm docs:build

Tested: CI=true pnpm example:build

Tested: CI=true pnpm changeset status

Tested: CI=true pnpm pack --pack-destination /private/tmp/swipe-deck-root-pack-final

Tested: git diff --check

Not-tested: Expo Snack install after publishing the next npm version
The root package does not need to publish README-only assets.

Jest also resolves React correctly with the existing worklets resolver.

Constraint: pnpm uses a hoisted node_modules layout for React Native tooling

Rejected: Keep assets in files | it only preserves a README image in the tarball

Rejected: Keep moduleNameMapper | tests pass without the defensive mappings

Confidence: high

Scope-risk: narrow

Tested: CI=true pnpm test --maxWorkers=2 --coverage

Tested: CI=true pnpm format:check package.json

Tested: CI=true pnpm pack --pack-destination /private/tmp/swipe-deck-no-assets

Tested: git diff --check
@changeset-bot

changeset-bot Bot commented Jun 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b035c6f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@react-native-motion-kit/swipe-deck Patch

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

@saseungmin saseungmin merged commit 4a326d6 into main Jun 27, 2026
3 of 6 checks passed
@saseungmin saseungmin deleted the chore/pnpm-root-package branch June 27, 2026 06:20
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