Skip to content

Commit cb3dd55

Browse files
committed
eslint: speedup npm install
1 parent 8dc740e commit cb3dd55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/main/java/com/diffplug/spotless/npm/NpmProcess.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2020 DiffPlug
2+
* Copyright 2016-2022 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ class NpmProcess {
3434
}
3535

3636
void install() {
37-
npmAwait("install", "--no-audit", "--no-package-lock");
37+
npmAwait("install", "--no-audit", "--no-package-lock", "--prefer-offline");
3838
}
3939

4040
Process start() {

0 commit comments

Comments
 (0)