-
Notifications
You must be signed in to change notification settings - Fork 44
/
package.json
59 lines (59 loc) · 2.23 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
{
"name": "opcraft",
"version": "0.0.0",
"description": "An infinite, unstoppable World",
"repository": {
"type": "git",
"url": "https://github.com/latticexyz/opcraft.git"
},
"private": true,
"workspaces": {
"packages": [
"packages/client",
"packages/contracts"
]
},
"devDependencies": {
"@commitlint/cli": "^16.2.4",
"@commitlint/config-conventional": "^16.2.4",
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "3.3.0",
"eslint": "^8.15.0",
"husky": ">=6",
"lerna": "^4.0.0",
"lint-staged": ">=10",
"prettier": "^2.6.2",
"run-pty": "^3.0.0"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"scripts": {
"prepare": "husky install && (forge --version || yarn foundryup) && yarn lerna run prepare",
"commit": "cz",
"prettier:check": "prettier --check 'packages/**/*.ts'",
"prettier": "prettier --write 'packages/**/*.ts'",
"lint": "eslint . --ext .ts",
"lerna:release": "lerna version --conventional-commits --yes",
"lerna:publish": "lerna publish --no-private --force-publish",
"start:ri": "run-pty % yarn workspace contracts run start % yarn workspace client run start",
"start": "run-pty % yarn start:contracts % yarn start:client",
"start:client": "wait-on tcp:8545 && yarn workspace client run start",
"start:contracts": "yarn workspace contracts run start",
"link:mud": "for i in node_modules/@latticexyz/*; do yarn link @latticexyz/$(basename $i); done",
"unlink:mud": "for i in node_modules/@latticexyz/*; do yarn unlink @latticexyz/$(basename $i); done && yarn install --force",
"yalc:mud": "for i in node_modules/@latticexyz/*; do yalc add @latticexyz/$(basename $i); done",
"unyalc:mud": "for i in node_modules/@latticexyz/*; do yalc remove @latticexyz/$(basename $i); done && yarn install --force",
"test": "yarn workspaces run test",
"foundryup": "curl -L https://foundry.paradigm.xyz | bash && bash ~/.foundry/bin/foundryup"
},
"lint-staged": {
"*.ts": "eslint --cache --fix",
"*.{ts,css,md,sol}": "prettier --write"
},
"dependencies": {}
}