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

Concise scripts #647

Open
bennypowers opened this issue Jan 19, 2023 · 2 comments
Open

Concise scripts #647

bennypowers opened this issue Jan 19, 2023 · 2 comments

Comments

@bennypowers
Copy link

bennypowers commented Jan 19, 2023

Allow users to define scripts like so:

"wireit": {
  "patch": "patch-package",
  "husky": "npx husky install",
  "postinstall": {
    "dependencies": [
      "patch",
      "husky"
    ]
  }
}

equivalent to

"wireit": {
  "patch": {
    "command": "patch-package"
  },
  "husky": {
    "command": "npx husky install"
  },
  "postinstall": {
    "dependencies": [
      "patch",
      "husky"
    ]
  }
}
@aomarks
Copy link
Member

aomarks commented Jan 19, 2023

In these cases the one-liners could just be regular npm scripts, since there is nothing added by wireit to their behavior. (Note that wireit scripts can reference regular npm scripts as dependencies).

@bennypowers
Copy link
Author

with wireit-only scripts (#653) landed, this could be useful to provide simple scripts without creating an 'entrypoint'

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