-
Notifications
You must be signed in to change notification settings - Fork 84
/
package.json
71 lines (71 loc) · 2.37 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"name": "chopsticks-monorepo",
"author": "Acala Developers <hello@acala.network>",
"license": "Apache-2.0",
"packageManager": "yarn@4.3.1",
"private": true,
"type": "module",
"workspaces": [
"packages/*",
"executor"
],
"scripts": {
"lint": "tsc --noEmit --project tsconfig.lint.json && eslint . --ext .js,.ts && prettier --check .",
"fix": "eslint . --ext .js,.ts --fix && prettier -w .",
"prepare": "husky install",
"clean": "yarn workspaces foreach --all -pvit run clean",
"build": "yarn workspaces foreach --all -pvit --include '@acala-network/*' run build",
"build-wasm": "yarn workspace @acala-network/chopsticks-executor run build",
"build:web-test": "yarn build && yarn workspace web-test run build",
"check": "cd executor && cargo check --locked",
"test": "LOG_LEVEL=warn vitest run",
"test:watch": "vitest",
"coverage": "vitest run --coverage",
"coverage:ui": "vitest test --ui --coverage.enabled=true",
"start": "NODE_OPTIONS='--loader ts-node/esm --loader ./loader.js --no-warnings' node packages/chopsticks/src/cli.ts",
"script:start": "yarn start",
"docs:prep": "yarn workspaces foreach --all -pvit run docs:prep && cp docs/* docs-src",
"docs:dev": "yarn docs:prep && vitepress dev",
"docs:build": "yarn docs:prep && vitepress build",
"docs:preview": "yarn docs:build && vitepress preview",
"publint": "sh ./publint.sh",
"depcheck": "yarn workspaces foreach --all -pvit run depcheck"
},
"engines": {
"node": ">=v18"
},
"prettier": {
"tabWidth": 2,
"semi": false,
"singleQuote": true
},
"lint-staged": {
"*.{js,ts}": "eslint --cache --fix",
"*.{js,ts,css,md}": "prettier --write"
},
"devDependencies": {
"@swc/core": "^1.7.40",
"@types/node": "^22.8.4",
"@types/prettier": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^8.12.2",
"@typescript-eslint/parser": "^8.12.2",
"@vitest/coverage-v8": "^2.1.4",
"@vitest/ui": "^2.1.4",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
"husky": "^9.1.6",
"prettier": "^3.3.3",
"ts-node": "^10.9.2",
"typedoc": "^0.26.10",
"typedoc-plugin-markdown": "^4.2.9",
"typescript": "^5.6.3",
"unplugin-swc": "^1.5.1",
"vite-tsconfig-paths": "^5.0.1",
"vitepress": "^1.4.2",
"vitest": "^2.1.4",
"wasm-pack": "^0.13.1"
}
}