mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-11-23 06:20:59 +03:00
## Description Fixes Electron Forge packaging on Windows hanging during the `afterCopy` cleanup of nested `.bin` entries. `path.join(buildPath, '**/.bin/**/*')` produces a backslash-delimited glob on Windows. Passing that pattern directly to `fast-glob` caused traversal to consume a full CPU core and grow the Node heap until the process failed near its default ~4 GB limit. This Yarn patch normalizes the generated glob to forward slashes before passing it to `fast-glob`. The patch is pinned to `@electron-forge/core` 7.11.1 through the workspace resolutions. Observed locally on Windows x64: - Before: packaging remained in `Preparing native dependencies` / `Finalizing package` for 30+ minutes and eventually failed with `JavaScript heap out of memory`. - After: `yarn affine @affine/electron package --platform=win32 --arch=x64` completed successfully; the final packaging pass took about 28 seconds. - The packaged application was launched and its renderer was inspected through Chromium remote debugging; the workspace rendered with no runtime exceptions. ## Checklist - [x] I have signed the [AFFiNE Contributor License Agreement](https://cla-assistant.io/toeverything/AFFiNE) — required before merge; the `license/cla` check must be green ([how it works](https://github.com/toeverything/AFFiNE/blob/canary/docs/BUILDING.md#sign-the-cla-first)) - [x] The PR targets the `canary` branch and its title follows [Conventional Commits](https://www.conventionalcommits.org/) - [ ] Tests are added or updated where it makes sense - [ ] `yarn lint` and `yarn typecheck` pass locally - [ ] If the PR code includes AI-generated edits, I have carefully reviewed it to ensure that the scope of the PR is consistent with what is claimed in the title and description, and that there are no redundant or invalid implementations. - [x] I agree that maintainers may close the PR without discussion if they consider the code quality to be too low. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Pinned Electron Forge to a patched version. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
230 lines
8.7 KiB
JSON
230 lines
8.7 KiB
JSON
{
|
|
"name": "@affine/monorepo",
|
|
"version": "0.27.5",
|
|
"private": true,
|
|
"author": "toeverything",
|
|
"license": "MIT",
|
|
"workspaces": [
|
|
".",
|
|
"blocksuite/**/*",
|
|
"packages/*/*",
|
|
"packages/frontend/apps/*",
|
|
"tools/*",
|
|
"docs/reference",
|
|
"tools/@types/*",
|
|
"tests/*"
|
|
],
|
|
"engines": {
|
|
"node": ">=22.12.0 <23.0.0"
|
|
},
|
|
"scripts": {
|
|
"affine": "r affine.ts",
|
|
"af": "r affine.ts",
|
|
"dev": "yarn affine dev",
|
|
"build": "yarn affine build",
|
|
"lint:format": "oxfmt --check .",
|
|
"lint:format:fix": "oxfmt --write .",
|
|
"lint:ox": "oxlint --deny-warnings",
|
|
"lint:ox:fix": "yarn lint:ox --fix",
|
|
"lint": "yarn lint:ox && yarn lint:format",
|
|
"lint:fix": "yarn lint:ox:fix && yarn lint:format:fix",
|
|
"test": "vitest --run",
|
|
"test:ui": "vitest --ui",
|
|
"test:coverage": "vitest run --coverage",
|
|
"typecheck": "tsc -b tsconfig.json --verbose",
|
|
"postinstall": "yarn affine init && yarn husky"
|
|
},
|
|
"lint-staged": {
|
|
"*": "oxfmt --write --no-error-on-unmatched-pattern",
|
|
"*.{ts,tsx,mjs,js,jsx}": [
|
|
"oxlint --fix --no-error-on-unmatched-pattern"
|
|
],
|
|
"*.toml": [
|
|
"taplo format"
|
|
],
|
|
"*.rs": [
|
|
"cargo fmt --"
|
|
]
|
|
},
|
|
"dependenciesMeta": {
|
|
"@apollo/protobufjs": {
|
|
"built": false
|
|
},
|
|
"@prisma/client": {
|
|
"built": true
|
|
},
|
|
"@prisma/engines": {
|
|
"built": true
|
|
},
|
|
"@scarf/scarf": {
|
|
"built": false
|
|
},
|
|
"@sentry/cli": {
|
|
"built": true
|
|
},
|
|
"@swc/core": {
|
|
"built": false
|
|
},
|
|
"core-js": {
|
|
"built": false
|
|
},
|
|
"electron": {
|
|
"built": true
|
|
},
|
|
"electron-winstaller": {
|
|
"built": true
|
|
},
|
|
"esbuild": {
|
|
"built": true
|
|
},
|
|
"msgpackr-extract": {
|
|
"built": false
|
|
},
|
|
"msw": {
|
|
"built": false
|
|
},
|
|
"prisma": {
|
|
"built": false
|
|
},
|
|
"protobufjs": {
|
|
"built": false
|
|
},
|
|
"unrs-resolver": {
|
|
"built": false
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@affine-tools/cli": "workspace:*",
|
|
"@capacitor/cli": "^8.4.2",
|
|
"@faker-js/faker": "^10.5.0",
|
|
"@istanbuljs/schema": "^0.1.3",
|
|
"@playwright/test": "=1.58.2",
|
|
"@taplo/cli": "^0.7.0",
|
|
"@toeverything/infra": "workspace:*",
|
|
"@types/node": "^22.0.0",
|
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
"@vanilla-extract/vite-plugin": "~5.1.5",
|
|
"@vitest/browser": "^4.1.11",
|
|
"@vitest/coverage-istanbul": "^4.1.11",
|
|
"@vitest/ui": "^4.1.11",
|
|
"electron": "^39.0.0",
|
|
"eslint": "9.39.2",
|
|
"eslint-plugin-import-x": "^4.16.1",
|
|
"eslint-plugin-lit": "^2.2.1",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
"eslint-plugin-sonarjs": "^4.0.2",
|
|
"happy-dom": "^20.0.0",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^16.0.0",
|
|
"msw": "^2.13.2",
|
|
"oxfmt": "0.63.0",
|
|
"oxlint": "1.78.0",
|
|
"oxlint-tsgolint": "7.0.2001",
|
|
"semver": "^7.7.3",
|
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
"unplugin-swc": "^1.5.9",
|
|
"vite": "^7.3.6",
|
|
"vitest": "^4.1.11"
|
|
},
|
|
"packageManager": "yarn@4.18.0",
|
|
"resolutions": {
|
|
"array-buffer-byte-length": "npm:@nolyfill/array-buffer-byte-length@^1",
|
|
"array-includes": "npm:@nolyfill/array-includes@^1",
|
|
"array.prototype.flat": "npm:@nolyfill/array.prototype.flat@^1",
|
|
"array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@^1",
|
|
"array.prototype.tosorted": "npm:@nolyfill/array.prototype.tosorted@^1",
|
|
"arraybuffer.prototype.slice": "npm:@nolyfill/arraybuffer.prototype.slice@^1",
|
|
"asynciterator.prototype": "npm:@nolyfill/asynciterator.prototype@^1",
|
|
"available-typed-arrays": "npm:@nolyfill/available-typed-arrays@^1",
|
|
"deep-equal": "npm:@nolyfill/deep-equal@^1",
|
|
"define-properties": "npm:@nolyfill/define-properties@^1",
|
|
"es-iterator-helpers": "npm:@nolyfill/es-iterator-helpers@^1",
|
|
"es-set-tostringtag": "npm:@nolyfill/es-set-tostringtag@^1",
|
|
"function-bind": "npm:@nolyfill/function-bind@^1",
|
|
"function.prototype.name": "npm:@nolyfill/function.prototype.name@^1",
|
|
"get-symbol-description": "npm:@nolyfill/get-symbol-description@^1",
|
|
"globalthis": "npm:@nolyfill/globalthis@^1",
|
|
"gopd": "npm:@nolyfill/gopd@^1",
|
|
"has": "npm:@nolyfill/has@^1",
|
|
"has-property-descriptors": "npm:@nolyfill/has-property-descriptors@^1",
|
|
"has-proto": "npm:@nolyfill/has-proto@^1",
|
|
"has-symbols": "npm:@nolyfill/has-symbols@^1",
|
|
"has-tostringtag": "npm:@nolyfill/has-tostringtag@^1",
|
|
"is-arguments": "npm:@nolyfill/is-arguments@^1",
|
|
"is-array-buffer": "npm:@nolyfill/is-array-buffer@^1",
|
|
"is-date-object": "npm:@nolyfill/is-date-object@^1",
|
|
"is-generator-function": "npm:@nolyfill/is-generator-function@^1",
|
|
"is-regex": "npm:@nolyfill/is-regex@^1",
|
|
"is-shared-array-buffer": "npm:@nolyfill/is-shared-array-buffer@^1",
|
|
"is-string": "npm:@nolyfill/is-string@^1",
|
|
"is-symbol": "npm:@nolyfill/is-symbol@^1",
|
|
"is-weakref": "npm:@nolyfill/is-weakref@^1",
|
|
"iterator.prototype": "npm:@nolyfill/iterator.prototype@^1",
|
|
"json-stable-stringify": "npm:@nolyfill/json-stable-stringify@^1",
|
|
"jsonify": "npm:@nolyfill/jsonify@^1",
|
|
"object-is": "npm:@nolyfill/object-is@^1",
|
|
"object-keys": "npm:@nolyfill/object-keys@^1",
|
|
"object.assign": "npm:@nolyfill/object.assign@^1",
|
|
"object.entries": "npm:@nolyfill/object.entries@^1",
|
|
"object.fromentries": "npm:@nolyfill/object.fromentries@^1",
|
|
"object.hasown": "npm:@nolyfill/object.hasown@^1",
|
|
"object.values": "npm:@nolyfill/object.values@^1",
|
|
"on-headers": "npm:on-headers@^1.1.0",
|
|
"reflect.getprototypeof": "npm:@nolyfill/reflect.getprototypeof@^1",
|
|
"regexp.prototype.flags": "npm:@nolyfill/regexp.prototype.flags@^1",
|
|
"safe-array-concat": "npm:@nolyfill/safe-array-concat@^1",
|
|
"safe-regex-test": "npm:@nolyfill/safe-regex-test@^1",
|
|
"side-channel": "npm:@nolyfill/side-channel@^1",
|
|
"string.prototype.matchall": "npm:@nolyfill/string.prototype.matchall@^1",
|
|
"string.prototype.trim": "npm:@nolyfill/string.prototype.trim@^1",
|
|
"string.prototype.trimend": "npm:@nolyfill/string.prototype.trimend@^1",
|
|
"string.prototype.trimstart": "npm:@nolyfill/string.prototype.trimstart@^1",
|
|
"typed-array-buffer": "npm:@nolyfill/typed-array-buffer@^1",
|
|
"typed-array-byte-length": "npm:@nolyfill/typed-array-byte-length@^1",
|
|
"typed-array-byte-offset": "npm:@nolyfill/typed-array-byte-offset@^1",
|
|
"typed-array-length": "npm:@nolyfill/typed-array-length@^1",
|
|
"unbox-primitive": "npm:@nolyfill/unbox-primitive@^1",
|
|
"which-boxed-primitive": "npm:@nolyfill/which-boxed-primitive@^1",
|
|
"which-typed-array": "npm:@nolyfill/which-typed-array@^1",
|
|
"array-flatten": "npm:@nolyfill/array-flatten@^1",
|
|
"array.prototype.findlast": "npm:@nolyfill/array.prototype.findlast@^1",
|
|
"hasown": "npm:@nolyfill/hasown@^1",
|
|
"internal-slot": "npm:@nolyfill/internal-slot@^1",
|
|
"is-core-module": "npm:@nolyfill/is-core-module@^1",
|
|
"is-typed-array": "npm:@nolyfill/is-typed-array@^1",
|
|
"isarray": "npm:@nolyfill/isarray@^1",
|
|
"safe-buffer": "npm:@nolyfill/safe-buffer@^1",
|
|
"safer-buffer": "npm:@nolyfill/safer-buffer@^1",
|
|
"set-function-length": "npm:@nolyfill/set-function-length@^1",
|
|
"string.prototype.repeat": "npm:@nolyfill/string.prototype.repeat@^1",
|
|
"typedarray": "npm:@nolyfill/typedarray@^1",
|
|
"macos-alias": "npm:@napi-rs/macos-alias@0.0.4",
|
|
"fs-xattr": "npm:@napi-rs/xattr@latest",
|
|
"@opentelemetry/core": "^2.10.0",
|
|
"ioredis": "^5.11.1",
|
|
"js-yaml@npm:^3.13.1": "^5.0.0",
|
|
"js-yaml@npm:^3.14.1": "^5.0.0",
|
|
"js-yaml@npm:^4.1.0": "^5.0.0",
|
|
"js-yaml@npm:4.1.1": "^5.0.0",
|
|
"js-yaml@npm:5.2.1": "^5.2.3",
|
|
"esbuild@npm:^0.21.3": "^0.28.0",
|
|
"multer": "^2.4.0",
|
|
"protobufjs": "^7.6.4",
|
|
"tar": "^7.5.21",
|
|
"tmp": "^0.2.7",
|
|
"vite@npm:^5.4.14": "^6.4.3",
|
|
"ws@npm:^8.18.0": "^8.21.0",
|
|
"ws@npm:^8.18.3": "^8.21.0",
|
|
"ws@npm:^8.19.0": "^8.21.0",
|
|
"ws@npm:8.20.1": "^8.21.0",
|
|
"ws@npm:~8.17.1": "^8.21.0",
|
|
"@magic-works/i18n-codegen": "patch:@magic-works/i18n-codegen@npm%3A0.6.1#~/.yarn/patches/@magic-works-i18n-codegen-virtual-25e53a17d6.patch",
|
|
"decode-named-character-reference@npm:^1.0.0": "patch:decode-named-character-reference@npm%3A1.0.2#~/.yarn/patches/decode-named-character-reference-npm-1.0.2-db17a755fd.patch",
|
|
"@atlaskit/pragmatic-drag-and-drop": "patch:@atlaskit/pragmatic-drag-and-drop@npm%3A1.4.0#~/.yarn/patches/@atlaskit-pragmatic-drag-and-drop-npm-1.4.0-75c45f52d3.patch",
|
|
"yjs": "patch:yjs@npm%3A13.6.21#~/.yarn/patches/yjs-npm-13.6.21-c9f1f3397c.patch",
|
|
"@electron-forge/core@npm:7.11.1": "patch:@electron-forge/core@npm%3A7.11.1#~/.yarn/patches/@electron-forge-core-npm-7.11.1-b6ae130da1.patch"
|
|
}
|
|
}
|