universo-platform-2d
/
package.json
158 строк · 7.0 Кб
1{
2"name": "@affine/monorepo",
3"version": "0.17.0",
4"private": true,
5"author": "toeverything",
6"license": "MIT",
7"workspaces": [
8".",
9"packages/*/*",
10"packages/frontend/apps/*",
11"tools/*",
12"docs/reference",
13"tools/@types/*",
14"tests/*",
15"tests/affine-legacy/*"
16],
17"engines": {
18"node": "<21.0.0"
19},
20"scripts": {
21"dev": "yarn workspace @affine/cli dev",
22"build": "yarn workspace @affine/cli bundle",
23"dev:electron": "yarn workspace @affine/electron dev",
24"build:electron": "yarn nx build @affine/electron",
25"build:server-native": "yarn nx run-many -t build -p @affine/server-native",
26"start:web-static": "yarn workspace @affine/web static-server",
27"serve:test-static": "yarn exec serve tests/fixtures --cors -p 8081",
28"lint:eslint": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" eslint . --ext .js,mjs,.ts,.tsx --cache",
29"lint:eslint:fix": "yarn lint:eslint --fix",
30"lint:prettier": "prettier --ignore-unknown --cache --check .",
31"lint:prettier:fix": "prettier --ignore-unknown --cache --write .",
32"lint:ox": "oxlint -c oxlint.json --deny-warnings --import-plugin",
33"lint": "yarn lint:eslint && yarn lint:prettier",
34"lint:fix": "yarn lint:eslint:fix && yarn lint:prettier:fix",
35"test": "vitest --run",
36"test:ui": "vitest --ui",
37"test:coverage": "vitest run --coverage",
38"typecheck": "tsc -b tsconfig.json",
39"postinstall": "node ./scripts/check-version.mjs && yarn workspace @affine/i18n i18n-codegen gen && yarn husky install",
40"prepare": "husky"
41},
42"lint-staged": {
43"*": "prettier --write --ignore-unknown --cache",
44"*.{ts,tsx,mjs,js,jsx}": [
45"prettier --ignore-unknown --write",
46"cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" eslint --cache --fix"
47],
48"*.toml": [
49"taplo format"
50],
51"*.rs": [
52"cargo fmt --"
53]
54},
55"devDependencies": {
56"@affine/cli": "workspace:*",
57"@faker-js/faker": "^9.0.0",
58"@istanbuljs/schema": "^0.1.3",
59"@magic-works/i18n-codegen": "^0.6.0",
60"@playwright/test": "=1.47.2",
61"@taplo/cli": "^0.7.0",
62"@toeverything/infra": "workspace:*",
63"@types/affine__env": "workspace:*",
64"@types/eslint": "^9.0.0",
65"@types/node": "^20.12.7",
66"@typescript-eslint/eslint-plugin": "^7.6.0",
67"@typescript-eslint/parser": "^7.6.0",
68"@vanilla-extract/vite-plugin": "^4.0.7",
69"@vitest/coverage-istanbul": "2.1.1",
70"@vitest/ui": "2.1.1",
71"cross-env": "^7.0.3",
72"electron": "^33.0.0",
73"eslint": "^8.57.0",
74"eslint-config-prettier": "^9.1.0",
75"eslint-plugin-import-x": "^0.5.0",
76"eslint-plugin-react": "^7.34.1",
77"eslint-plugin-react-hooks": "^4.6.0",
78"eslint-plugin-rxjs": "^5.0.3",
79"eslint-plugin-simple-import-sort": "^12.0.0",
80"eslint-plugin-sonarjs": "^0.25.1",
81"eslint-plugin-unicorn": "^52.0.0",
82"eslint-plugin-unused-imports": "^3.1.0",
83"happy-dom": "^15.0.0",
84"husky": "^9.0.11",
85"lint-staged": "^15.2.2",
86"msw": "^2.3.0",
87"nx": "^19.0.0",
88"oxlint": "0.9.10",
89"prettier": "^3.3.3",
90"semver": "^7.6.0",
91"serve": "^14.2.1",
92"typescript": "^5.4.5",
93"unplugin-swc": "^1.4.5",
94"vite": "^5.2.8",
95"vitest": "2.1.1"
96},
97"packageManager": "yarn@4.5.0",
98"resolutions": {
99"array-buffer-byte-length": "npm:@nolyfill/array-buffer-byte-length@latest",
100"array-includes": "npm:@nolyfill/array-includes@latest",
101"array.prototype.flat": "npm:@nolyfill/array.prototype.flat@latest",
102"array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@latest",
103"array.prototype.tosorted": "npm:@nolyfill/array.prototype.tosorted@latest",
104"arraybuffer.prototype.slice": "npm:@nolyfill/arraybuffer.prototype.slice@latest",
105"asynciterator.prototype": "npm:@nolyfill/asynciterator.prototype@latest",
106"available-typed-arrays": "npm:@nolyfill/available-typed-arrays@latest",
107"deep-equal": "npm:@nolyfill/deep-equal@latest",
108"define-properties": "npm:@nolyfill/define-properties@latest",
109"es-iterator-helpers": "npm:@nolyfill/es-iterator-helpers@latest",
110"es-set-tostringtag": "npm:@nolyfill/es-set-tostringtag@latest",
111"function-bind": "npm:@nolyfill/function-bind@latest",
112"function.prototype.name": "npm:@nolyfill/function.prototype.name@latest",
113"get-symbol-description": "npm:@nolyfill/get-symbol-description@latest",
114"globalthis": "npm:@nolyfill/globalthis@latest",
115"gopd": "npm:@nolyfill/gopd@latest",
116"has": "npm:@nolyfill/has@latest",
117"has-property-descriptors": "npm:@nolyfill/has-property-descriptors@latest",
118"has-proto": "npm:@nolyfill/has-proto@latest",
119"has-symbols": "npm:@nolyfill/has-symbols@latest",
120"has-tostringtag": "npm:@nolyfill/has-tostringtag@latest",
121"is-arguments": "npm:@nolyfill/is-arguments@latest",
122"is-array-buffer": "npm:@nolyfill/is-array-buffer@latest",
123"is-date-object": "npm:@nolyfill/is-date-object@latest",
124"is-generator-function": "npm:@nolyfill/is-generator-function@latest",
125"is-regex": "npm:@nolyfill/is-regex@latest",
126"is-shared-array-buffer": "npm:@nolyfill/is-shared-array-buffer@latest",
127"is-string": "npm:@nolyfill/is-string@latest",
128"is-symbol": "npm:@nolyfill/is-symbol@latest",
129"is-weakref": "npm:@nolyfill/is-weakref@latest",
130"iterator.prototype": "npm:@nolyfill/iterator.prototype@latest",
131"object-is": "npm:@nolyfill/object-is@latest",
132"object-keys": "npm:@nolyfill/object-keys@latest",
133"object.assign": "npm:@nolyfill/object.assign@latest",
134"object.entries": "npm:@nolyfill/object.entries@latest",
135"object.fromentries": "npm:@nolyfill/object.fromentries@latest",
136"object.hasown": "npm:@nolyfill/object.hasown@latest",
137"object.values": "npm:@nolyfill/object.values@latest",
138"reflect.getprototypeof": "npm:@nolyfill/reflect.getprototypeof@latest",
139"regexp.prototype.flags": "npm:@nolyfill/regexp.prototype.flags@latest",
140"safe-array-concat": "npm:@nolyfill/safe-array-concat@latest",
141"safe-regex-test": "npm:@nolyfill/safe-regex-test@latest",
142"side-channel": "npm:@nolyfill/side-channel@latest",
143"string.prototype.matchall": "npm:@nolyfill/string.prototype.matchall@latest",
144"string.prototype.trim": "npm:@nolyfill/string.prototype.trim@latest",
145"string.prototype.trimend": "npm:@nolyfill/string.prototype.trimend@latest",
146"string.prototype.trimstart": "npm:@nolyfill/string.prototype.trimstart@latest",
147"typed-array-buffer": "npm:@nolyfill/typed-array-buffer@latest",
148"typed-array-byte-length": "npm:@nolyfill/typed-array-byte-length@latest",
149"typed-array-byte-offset": "npm:@nolyfill/typed-array-byte-offset@latest",
150"typed-array-length": "npm:@nolyfill/typed-array-length@latest",
151"unbox-primitive": "npm:@nolyfill/unbox-primitive@latest",
152"which-boxed-primitive": "npm:@nolyfill/which-boxed-primitive@latest",
153"which-typed-array": "npm:@nolyfill/which-typed-array@latest",
154"@reforged/maker-appimage/@electron-forge/maker-base": "7.5.0",
155"macos-alias": "npm:@napi-rs/macos-alias@0.0.4",
156"fs-xattr": "npm:@napi-rs/xattr@latest"
157}
158}
159