chore: add monorepo tools (#9196)
This commit is contained in:
17
package.json
17
package.json
@@ -18,12 +18,10 @@
|
||||
"node": "<21.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "yarn workspace @affine/cli dev",
|
||||
"build": "yarn workspace @affine/cli bundle",
|
||||
"dev:electron": "yarn workspace @affine/electron dev",
|
||||
"build:electron": "yarn workspace @affine/electron build",
|
||||
"build:server-native": "yarn workspace @affine/server-native build",
|
||||
"start:web-static": "yarn workspace @affine/web static-server",
|
||||
"affine": "yarn workspace @affine-tools/cli affine",
|
||||
"af": "yarn workspace @affine-tools/cli affine",
|
||||
"dev": "yarn affine dev",
|
||||
"build": "yarn affine build",
|
||||
"lint:eslint": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" eslint --report-unused-disable-directives-severity=off . --cache",
|
||||
"lint:eslint:fix": "yarn lint:eslint --fix --fix-type problem,suggestion,layout",
|
||||
"lint:prettier": "prettier --ignore-unknown --cache --check .",
|
||||
@@ -34,9 +32,8 @@
|
||||
"test": "vitest --run",
|
||||
"test:ui": "vitest --ui",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"typecheck": "tsc -b tsconfig.json",
|
||||
"postinstall": "node ./scripts/check-version.mjs && yarn workspace @affine/i18n i18n-codegen gen && yarn husky install",
|
||||
"prepare": "husky"
|
||||
"typecheck": "tsc -b tsconfig.json --verbose",
|
||||
"postinstall": "yarn affine init && yarn husky"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*": "prettier --write --ignore-unknown --cache",
|
||||
@@ -52,7 +49,7 @@
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@affine/cli": "workspace:*",
|
||||
"@affine-tools/cli": "workspace:*",
|
||||
"@capacitor/cli": "^6.2.0",
|
||||
"@eslint/js": "^9.16.0",
|
||||
"@faker-js/faker": "^9.3.0",
|
||||
|
||||
Reference in New Issue
Block a user