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

command: "run" not working as expected. #9

Open
ccolorado opened this issue Jun 20, 2022 · 1 comment
Open

command: "run" not working as expected. #9

ccolorado opened this issue Jun 20, 2022 · 1 comment

Comments

@ccolorado
Copy link

This is very likely a user error, but when trying to add this watcher.

  scripts: {
    tasks: [{ command: "run", params: { script: ["{path}"] } }],
    files: ["./scripts/**/*"],
    verbose: true,
  }

I am getting the following error

Running task "run" with params {"script":["scripts/SOME_SCRIPT.js"]}
Task "run" failed.
HardhatError: HH301: Invalid value scripts/SCRIPT.js for argument script of type stringwhen treid to add the following watcher:

Is the run task not compatible with this plugin, and if it isn't is there a list of tasks that are or aren't compatible?

@b3hr4d
Copy link

b3hr4d commented Aug 27, 2022

I think you should use:
{ command: 'run', params: { script: './scripts/deploy.ts' } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants