chore: modernize repo tooling and dependencies#8
Merged
Conversation
Major dependency updates: - Migrate redis-storage from redis@3.x to redis@4.x (native promises) - Update @types/node from 18.19.0 to ^20.0.0 - Upgrade TypeScript from 5.1.6 to ^5.7.0 - Upgrade ESLint from 8.x to 9.x with flat config - Upgrade Prettier from 2.x to 3.x - Migrate test framework from Mocha to Vitest ESM conversion: - Add "type": "module" to root package.json - Convert gulpfile.js to ESM syntax Code quality: - Remove deprecated bluebird dependency - Remove old .eslintrc.js in favor of eslint.config.js - Update tsconfig.json with modern settings (NodeNext modules, ES2022) - Convert all test files from Mocha/assert to Vitest/expect
- Remove gulp, del, and glob dependencies - Add rimraf for cross-platform file deletion - Convert gulp tasks to npm scripts: - clean: removes dist and .tmp directories - clean:modules: removes node_modules from packages - clean:all: runs both clean tasks - Remove gulpfile.js
Replace legacy main/types fields with the modern exports field
for all packages. This provides:
- Better encapsulation of package internals
- Proper TypeScript resolution via types condition
- Future-proof for subpath exports if needed
All packages now use:
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
}
Use a GitHub App token instead of GITHUB_TOKEN so that commits made by the changeset bot will trigger subsequent workflow runs (CI checks). Required setup: 1. Create a GitHub App with Contents: write permission 2. Install the app on the repository 3. Add BOT_APP_ID as a repository variable 4. Add BOT_APP_PRIVATE_KEY as a repository secret
|
- Add Redis 7 service container to test workflow - Update redis storage test to use CI Redis when REDIS_HOST/REDIS_PORT set - Fall back to redis-memory-server for local development - Fixes timeout issues on Node 20
- Remove redis-memory-server from devDependencies - Tests now require actual Redis (CI service container or local Docker) - Faster installs, no 4MB binary download
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.