-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
39 lines (39 loc) · 1.33 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
{
"name": "monorepo",
"private": true,
"type": "module",
"scripts": {
"preinstall": "npx only-allow pnpm",
"prepare": "husky",
"tauri": "tauri",
"format": "pnpm format:js && pnpm format:rs",
"format:check": "pnpm format:js:check && pnpm format:rs:check",
"format:js": "prettier --write .",
"format:js:check": "prettier --check .",
"format:rs": "cargo +nightly fmt",
"format:rs:check": "cargo +nightly fmt -- --check",
"lint": "pnpm lint:js && pnpm lint:rs",
"lint:check": "pnpm lint:js:check && pnpm lint:rs:check",
"lint:js": "oxlint --max-warnings=0 --fix .",
"lint:js:check": "oxlint --max-warnings=0 .",
"lint:rs": "cargo clippy --fix --allow-dirty --allow-staged -- -D warnings",
"lint:rs:check": "cargo clippy -- -D warnings",
"test": "pnpm test:js && pnpm test:rs",
"test:js": "echo 'Not implemented yet'",
"test:rs": "cargo test --workspace",
"build:packages": "pnpm run --filter \"@deskulpt-test/*\" build"
},
"devDependencies": {
"@tauri-apps/cli": "^2.2.2",
"husky": "^9.1.6",
"lint-staged": "^15.4.1",
"oxlint": "^0.15.6",
"prettier": "^3.4.2"
},
"prettier": {},
"lint-staged": {
"*.{js,jsx,ts,tsx,json,md,mdx,html,css,scss,yml,yaml}": "prettier --write",
"*.{js,jsx,ts,tsx}": "oxlint --fix",
"*.rs": "rustfmt +nightly --"
}
}