Skip to content

chore: cleanup unused packages and update setup#5012

Merged
satya164 merged 1 commit into
mainfrom
@satya164/cleanup
Jun 22, 2026
Merged

chore: cleanup unused packages and update setup#5012
satya164 merged 1 commit into
mainfrom
@satya164/cleanup

Conversation

@satya164

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 22, 2026 12:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR streamlines the repo’s tooling by removing unused packages, migrating several internal scripts from CommonJS/JS to ESM/TypeScript, and updating local + CI workflows to use the new setup (including switching git hooks from Husky to Lefthook).

Changes:

  • Remove unused dev dependencies and update yarn.lock accordingly; add Lefthook and newer Node typings.
  • Convert scripts to ESM/TypeScript (generate-mappings, typescript-output-lint, generate-ts-tests, component docs generator) and update call sites.
  • Update CI, docs, ESLint config/ignores, and tests to match the new scripts and reduceMotion usage.

Reviewed changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
yarn.lock Dependency graph updated after package cleanup + new tooling deps (e.g., lefthook, @types/node).
src/core/tests/PaperProvider.test.tsx Updates provider setup to explicitly set reduceMotion defaults and adjusts reduce-motion mocking.
src/babel/tests/index.js Updates test helper to execute the new generate-mappings.ts script.
scripts/typescript-output-lint.ts Migrates script to ESM with node: imports and TS typing updates.
scripts/package.json Sets scripts/ folder module type to ESM.
scripts/generate-ts-tests.ts Replaces glob/rimraf-based JS script with a TS implementation using fs APIs.
scripts/generate-ts-tests.js Removes old CommonJS implementation.
scripts/generate-mappings.ts Replaces old CommonJS mapping generator with a typed ESM/TS version.
scripts/generate-mappings.js Removes old CommonJS implementation.
scripts/generate-component-docs.ts Migrates to ESM and hardens runtime type checks for required modules.
package.json Updates scripts (typecheck, generate-mappings), swaps Husky for Lefthook, and cleans devDependencies.
lefthook.yml Adds Lefthook hook definitions for commit-msg and pre-commit checks.
CONTRIBUTING.md Updates contributor instructions to reflect new script names (typecheck) and corrected wording.
.github/workflows/ci.yml Uses new script names, runs TS-based lint script, and adds example build job.
.github/pull_request_template.md Updates wording to reference typecheck instead of typescript.
.eslintrc Disables react-native/no-inline-styles for test files.
.eslintignore Ignores generated __ts-tests__/ and example/dist/.

Comment thread package.json Outdated
Comment thread CONTRIBUTING.md
Comment thread .eslintignore Outdated
@satya164 satya164 force-pushed the @satya164/cleanup branch from 2679f67 to bc5b8ff Compare June 22, 2026 12:33
Copilot AI review requested due to automatic review settings June 22, 2026 13:06
@satya164 satya164 force-pushed the @satya164/cleanup branch from bc5b8ff to 1b3ca87 Compare June 22, 2026 13:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 24 out of 26 changed files in this pull request and generated 2 comments.

Comment thread package.json Outdated
Comment thread eslint.config.mjs
@satya164 satya164 force-pushed the @satya164/cleanup branch from 1b3ca87 to 4e521b3 Compare June 22, 2026 13:48
Copilot AI review requested due to automatic review settings June 22, 2026 16:04
@satya164 satya164 force-pushed the @satya164/cleanup branch from 4e521b3 to 2bd6d13 Compare June 22, 2026 16:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 101 out of 117 changed files in this pull request and generated 3 comments.

Comment thread src/theme/tokens/sys/elevation.ts
Comment thread src/theme/provider.tsx
Comment thread src/theme/fonts.tsx
@satya164 satya164 force-pushed the @satya164/cleanup branch from 2bd6d13 to bbc2d2f Compare June 22, 2026 16:56
@satya164 satya164 merged commit 6b16adc into main Jun 22, 2026
10 checks passed
@satya164 satya164 deleted the @satya164/cleanup branch June 22, 2026 16:58
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