Files
AFFiNE-Mirror/tools/utils/src/distribution.ts
T
DarkSky aca47445aa feat(client): migration old package to rspack (#15068)
#### PR Dependency Tree


* **PR #15068** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Chores**
* Upgraded Vitest across packages to 4.1.8 and bumped Tailwind PostCSS
to 4.3.0
* CLI/tooling updated to support the media-capture-playground package
and adjust build/dev server behavior

* **Bug Fixes**
  * Improved workspace deletion reliability in the Electron app

* **Refactor**
* Simplified media capture playground build setup (build/config
adjustments)

* **Tests**
* Made tests more robust by preserving/restoring environment state
during runs
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-06-02 12:00:50 +08:00

32 lines
939 B
TypeScript

import { PackageList, type PackageName } from './yarn';
export const PackageToDistribution = new Map<
PackageName,
BUILD_CONFIG_TYPE['distribution']
>([
['@affine/admin', 'admin'],
['@affine/web', 'web'],
['@affine/media-capture-playground', 'web'],
['@affine/electron-renderer', 'desktop'],
['@affine/electron', 'desktop'],
['@affine/mobile', 'mobile'],
['@affine/ios', 'ios'],
['@affine/android', 'android'],
]);
export const AliasToPackage = new Map<string, PackageName>([
['admin', '@affine/admin'],
['web', '@affine/web'],
['electron', '@affine/electron'],
['desktop', '@affine/electron-renderer'],
['renderer', '@affine/electron-renderer'],
['mobile', '@affine/mobile'],
['ios', '@affine/ios'],
['android', '@affine/android'],
['server', '@affine/server'],
['gql', '@affine/graphql'],
...PackageList.map(
pkg => [pkg.name.split('/').pop()!, pkg.name] as [string, PackageName]
),
]);