Skip to content

Commit f24922c

Browse files
committed
refactor: rename compile task to build task
Build is the default now with compile being the alias, to reduce confusion in the future we rename the task as well.
1 parent 0c5a26d commit f24922c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

v-next/hardhat/src/internal/builtin-plugins/solidity/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const buildTask = task("build", "Builds your project")
2424
description: "An optional list of files to compile",
2525
defaultValue: [],
2626
})
27-
.setAction(import.meta.resolve("./tasks/compile.js"))
27+
.setAction(import.meta.resolve("./tasks/build.js"))
2828
.build();
2929

3030
const hardhatPlugin: HardhatPlugin = {

v-next/hardhat/src/internal/builtin-plugins/solidity/tasks/compile.ts renamed to v-next/hardhat/src/internal/builtin-plugins/solidity/tasks/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface CompileActionArguments {
1212
defaultBuildProfile: string | undefined;
1313
}
1414

15-
const compileAction: NewTaskActionFunction<CompileActionArguments> = async (
15+
const buildAction: NewTaskActionFunction<CompileActionArguments> = async (
1616
{ force, files, quiet, defaultBuildProfile },
1717
{ solidity, globalOptions },
1818
) => {
@@ -43,4 +43,4 @@ const compileAction: NewTaskActionFunction<CompileActionArguments> = async (
4343
}
4444
};
4545

46-
export default compileAction;
46+
export default buildAction;

0 commit comments

Comments
 (0)