You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-9Lines changed: 26 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,9 +104,7 @@ and replace the original script with the `wireit` command.
104
104
</table>
105
105
106
106
Now when you run `npm run build`, Wireit upgrades the script to be smarter and
107
-
more efficient. Wireit works with [yarn](https://yarnpkg.com/)
108
-
(both 1.X "[Classic](https://classic.yarnpkg.com/)" and its successor "Berry")
109
-
and [pnpm](https://pnpm.io/), too.
107
+
more efficient. Wireit also works with [`node --run`](https://nodejs.org/en/blog/announcements/v22-release-announce#running-packagejson-scripts), [yarn](https://yarnpkg.com/), and [pnpm](https://pnpm.io/).
110
108
111
109
You should also add `.wireit` to your `.gitignore` file. Wireit uses the
112
110
`.wireit` directory to store caches and other data for your scripts.
@@ -238,6 +236,19 @@ npm or Wireit:
238
236
npm run build -- --verbose
239
237
```
240
238
239
+
Or in general:
240
+
241
+
```sh
242
+
npm run {script} {npm args} {wireit args} -- {script args}
243
+
```
244
+
245
+
An additional `--` is required when using `node --run` in order to distinguish
246
+
between arguments intended for `node`, `wireit`, and the script itself:
0 commit comments