Skip to content

Commit 28fd732

Browse files
authored
build: move bash commands in scripts to shx (latticexyz#3083)
1 parent f2e6668 commit 28fd732

File tree

54 files changed

+63
-536
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+63
-536
lines changed

.changeset/odd-coats-bake.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-mud": patch
3+
---
4+
5+
Templates now use `npx shx` to run shell commands in scripts for better Windows compatibility.

.prettierrc.js .prettierrc.cjs

File renamed without changes.

e2e/packages/client-vanilla/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "module",
77
"scripts": {
88
"build": "vite build",
9-
"clean": "rimraf dist",
9+
"clean": "npx shx rm -rf dist",
1010
"dev": "vite"
1111
},
1212
"dependencies": {
@@ -30,7 +30,6 @@
3030
"viem": "2.19.8"
3131
},
3232
"devDependencies": {
33-
"rimraf": "^3.0.2",
3433
"vite": "^4.2.1",
3534
"vitest": "0.34.6"
3635
}

e2e/packages/contracts/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"scripts": {
77
"build": "mud build",
8-
"clean": "forge clean && rimraf src/codegen",
8+
"clean": "forge clean && npx shx rm -rf src/codegen",
99
"deploy:local": "mud deploy",
1010
"test": "mud test",
1111
"test:ci": "pnpm run test"
@@ -21,7 +21,6 @@
2121
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
2222
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
2323
"prettier": "3.2.5",
24-
"rimraf": "^3.0.2",
2524
"typescript": "5.4.2",
2625
"vite": "^4.2.1",
2726
"vitest": "0.34.6"

e2e/pnpm-lock.yaml

-87
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/local-explorer/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"@typescript-eslint/parser": "7.1.1",
2222
"eslint": "8.57.0",
2323
"mprocs": "^0.6.4",
24-
"rimraf": "^3.0.2",
2524
"typescript": "5.4.2"
2625
},
2726
"engines": {

examples/local-explorer/packages/contracts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"scripts": {
77
"build": "mud build",
8-
"clean": "forge clean && rimraf src/codegen",
8+
"clean": "forge clean && npx shx rm -rf src/codegen",
99
"deploy:garnet": "mud deploy --profile=garnet",
1010
"deploy:local": "mud deploy",
1111
"deploy:redstone": "mud deploy --profile=redstone",

examples/local-explorer/pnpm-lock.yaml

-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/minimal/packages/contracts/package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"scripts": {
77
"build": "mud build",
8-
"clean": "forge clean && rimraf src/codegen",
8+
"clean": "forge clean && npx shx rm -rf src/codegen",
99
"deploy:local": "mud deploy",
1010
"dev": "mud dev-contracts",
1111
"faucet": "DEBUG=mud:faucet faucet-server",
@@ -27,11 +27,9 @@
2727
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
2828
"prettier": "3.2.5",
2929
"prettier-plugin-solidity": "1.3.1",
30-
"rimraf": "^3.0.2",
3130
"solhint": "^3.4.1",
3231
"solhint-config-mud": "file:../../../../packages/solhint-config-mud",
3332
"solhint-plugin-mud": "file:../../../../packages/solhint-plugin-mud",
34-
"ts-node": "^10.9.1",
3533
"typescript": "5.4.2"
3634
}
3735
}

0 commit comments

Comments
 (0)