Skip to content

Commit 07370b5

Browse files
authoredDec 13, 2022
Update FAQ: Specify custom registry for setup
1 parent 5112a06 commit 07370b5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed
 

‎docs/faq.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,13 @@ This can be done adding some arguments to the already defined `npmInstall`-task.
4343
npmInstall.args = ['--loglevel', 'silly']
4444
```
4545

46-
# How do I specify a registry for the NPM setup task?
46+
# How do I specify a registry for the NPM/yarn/Pnpm setup task?
4747

48-
This can be done by adding to the arguments for the already defined `npmSetup` task.
48+
This can be done by adding to the arguments for the already defined `npmSetup`/`yarnSetup`/`pnpmSetup` tasks.
4949

5050
```gradle
51-
tasks.npmSetup {
52-
doFirst {
53-
args.addAll(['--registry', 'http://myregistry.npm.com'])
54-
}
51+
tasks.<npm|yarn|pnpm>Setup {
52+
args.addAll(['--registry', 'http://myregistry.npm.com'])
5553
}
5654
```
5755

0 commit comments

Comments
 (0)