build: allow node package depends on workspace packages (#11892)

This commit is contained in:
forehalo
2025-04-23 10:04:58 +00:00
parent 64997d4a0e
commit c00671dd84
28 changed files with 326 additions and 325 deletions

View File

@@ -8,13 +8,12 @@ export interface YarnWorkspaceItem {
export interface CommonPackageJsonContent {
name: string;
type?: 'module' | 'commonjs';
version: string;
private?: boolean;
dependencies?: { [key: string]: string };
devDependencies?: { [key: string]: string };
scripts?: { [key: string]: string };
main?: string;
exports?: {
[key: string]: string;
};
exports?: { [key: string]: string | { [key: string]: string } };
}

View File

@@ -963,10 +963,10 @@ export const PackageList = [
location: 'packages/backend/server',
name: '@affine/server',
workspaceDependencies: [
'packages/backend/native',
'tools/cli',
'tools/utils',
'packages/common/graphql',
'packages/backend/native',
],
},
{