eggjs / eggjs/egg

chore: migrate egg-cors plugin into monorepo

Open
#5,799 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
19k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

## Migration Task

Migrate [`eggjs/egg-cors`](https://github.com/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 keep `egg-cors`)

## Checklist

- [ ] Move source code to `plugins/cors/src/`
- [ ] Update package.json (type: module, exports, publishConfig, peerDependencies: egg)
- [ ] Add minimal `tsconfig.json` extending root config
- [ ] Add `vitest.config.ts` and migrate tests
- [ ] Add `src/types.ts` for module augmentation (extend `EggAppConfig`)
- [ ] Update root `tsconfig.json` references
- [ ] Update internal dependencies to use `workspace:*`
- [ ] Verify build and tests pass
- [ ] Archive the original repo after migration

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.