Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(gas-report): rename mud-gas-report to gas-report #1410

Merged
merged 3 commits into from
Sep 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
style(gas-report): rename mud-gas-report to gas-report
  • Loading branch information
holic committed Sep 7, 2023
commit 93498f950cedb7fe17bb4548b189178530f015e3
4 changes: 2 additions & 2 deletions packages/gas-report/README.md
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ contract ExampleTest is Test, GasReporter {
Then use the cli command to run tests and save the report:

```console
pnpm mud-gas-report --save gas-report.json
pnpm gas-report --save gas-report.json
```

Run `pnpm mud-gas-report --help` for more details.
Run `pnpm gas-report --help` for more details.
4 changes: 2 additions & 2 deletions packages/gas-report/package.json
Original file line number Diff line number Diff line change
@@ -20,13 +20,13 @@
}
},
"bin": {
"mud-gas-report": "./dist/mud-gas-report.js"
"gas-report": "./dist/gas-report.js"
},
"scripts": {
"build": "tsup",
"clean": "rimraf dist",
"dev": "tsup --watch",
"prepare": "mkdir -p ./dist && touch ./dist/mud-gas-report.js",
"prepare": "mkdir -p ./dist && touch ./dist/gas-report.js",
"test": "vitest typecheck --run --passWithNoTests && vitest --run --passWithNoTests && forge test",
"test:ci": "pnpm run test"
},
Original file line number Diff line number Diff line change
@@ -10,11 +10,11 @@ import chalk from "chalk";
dotenv.config();

// $0 makes this a default command (as opposed to a sub-command),
// which replaces `mud-gas-report gas-report` with just `mud-gas-report`
// which replaces `gas-report gas-report` with just `gas-report`
gasReport.command = "$0";

yargs(hideBin(process.argv))
.scriptName("mud-gas-report")
.scriptName("gas-report")
// Use the commands directory to scaffold
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- command array overload isn't typed, see https://github.com/yargs/yargs/blob/main/docs/advanced.md#esm-hierarchy
.command(gasReport as any)
2 changes: 1 addition & 1 deletion packages/gas-report/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from "tsup";

export default defineConfig({
entry: ["ts/index.ts", "ts/mud-gas-report.ts"],
entry: ["ts/index.ts", "ts/gas-report.ts"],
target: "esnext",
format: ["esm"],
dts: false,
2 changes: 1 addition & 1 deletion packages/schema-type/package.json
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@
"clean": "pnpm run clean:js",
"clean:js": "rimraf dist/typescript",
"dev": "tsup --watch",
"gas-report": "mud-gas-report --save gas-report.json",
"gas-report": "gas-report --save gas-report.json",
"test": "vitest typecheck --run && vitest --run && forge test",
"test:ci": "pnpm run test"
},
2 changes: 1 addition & 1 deletion packages/store/package.json
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@
"clean:js": "rimraf dist",
"clean:mud": "rimraf src/codegen",
"dev": "tsup --watch",
"gas-report": "mud-gas-report --save gas-report.json",
"gas-report": "gas-report --save gas-report.json",
"lint": "solhint --config ./.solhint.json 'src/**/*.sol'",
"test": "vitest typecheck --run && vitest --run --passWithNoTests && forge test",
"test:ci": "pnpm run test"
2 changes: 1 addition & 1 deletion packages/world/package.json
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@
"clean:js": "rimraf dist",
"clean:mud": "rimraf src/codegen",
"dev": "tsup --watch",
"gas-report": "mud-gas-report --save gas-report.json",
"gas-report": "gas-report --save gas-report.json",
"lint": "solhint --config ./.solhint.json 'src/**/*.sol'",
"test": "tsc --noEmit && vitest --run && forge test",
"test:ci": "pnpm run test"