Conversation
…nd enhance ESLint configuration
…s and Direction types
…nhance configuration
…lding and update Vite configuration
…nd enhance release process with dry run for develop branch
Feat/upgrade core deps and structure
There was a problem hiding this comment.
Pull request overview
This release upgrades dependencies and modernizes the project structure by migrating from Rollup to Vite, replacing Yarn with pnpm, and converting CommonJS configuration files to ESM format.
Changes:
- Migrated build tooling from Rollup to Vite with improved TypeScript declaration generation
- Replaced Yarn with pnpm as the package manager throughout scripts, configs, and CI workflows
- Converted all configuration files from CommonJS (
.cjs) to ESM (.js) format with consistent formatting
Reviewed changes
Copilot reviewed 35 out of 39 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| vite.config.ts | New Vite configuration replacing Rollup setup |
| src/useDetectScroll.ts | Formatting updates (semicolons removed, indentation adjusted) |
| src/types.ts | Converted enums to const objects with type inference |
| src/index.ts | Formatting updates consistent with new code style |
| rollup.config.js | Removed old Rollup configuration |
| prettier.config.js | New Prettier config in ESM format with updated rules |
| prettier.config.cjs | Removed old CommonJS Prettier config |
| pnpm-workspace.yaml | Added workspace configuration for monorepo support |
| playground/* | New playground app for testing the package locally |
| package.json | Updated scripts, dependencies, and build configuration for pnpm/Vite |
| lint-staged.config.js | Converted to ESM format with pnpm commands |
| lint-staged.config.cjs | Removed old CommonJS config |
| eslint.config.js | Enhanced ESLint config with better TypeScript support |
| commitlint.config.js | New comprehensive commit message rules in ESM format |
| commitlint.config.cjs | Removed old CommonJS config |
| Readme.md | Updated documentation formatting and installation instructions |
| CONTRIBUTING.md | Updated with pnpm commands and release process details |
| CODE_OF_CONDUCT.md | Reformatted for improved readability |
| AGENTS.md | New automation instructions file |
| .releaserc.js | New semantic-release configuration |
| .nvmrc | Added Node version specification |
| .husky/* | Simplified Git hooks to use pnpm directly |
| .github/workflows/* | Updated CI/CD workflows for pnpm and automated releases |
| .github/copilot-instructions.md | New file with repository guidelines for assistants |
|
🎉 This PR is included in version 4.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.