chore: migrate egg-cors plugin into monorepo
Author: killaguCreated Feb 22, 2026Updated Feb 22, 2026
Migration Task
Migrate eggjs/egg-cors into the egg monorepo.
Source
- Repo: https://github.com/eggjs/egg-cors
- Package:
egg-cors
Target
- Path:
plugins/cors/ - Package name:
@eggjs/cors(or keepegg-cors)
Checklist
- Move source code to
plugins/cors/src/ - Update package.json (type: module, exports, publishConfig, peerDependencies: egg)
- Add minimal
tsconfig.jsonextending root config - Add
vitest.config.tsand migrate tests - Add
src/types.tsfor module augmentation (extendEggAppConfig) - Update root
tsconfig.jsonreferences - Update internal dependencies to use
workspace:* - Verify build and tests pass
- Archive the original repo after migration
Source: eggjs/egg