Skip to content

Commit 37acb86

Browse files
authored
chore(npm): add ci-or-install script (#896)
* chore(npm): add ci-or-install script This adds a script which checks the npm version and runs either `npm ci` or `npm install` based on support. This is primarily to work around an issue where `npm install` modifies `package-lock.json` for newer npm versions. A side benefit is that `npm ci` is slightly faster than `npm install`. Fixes #893
1 parent 4e861db commit 37acb86

File tree

5 files changed

+581
-2
lines changed

5 files changed

+581
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ install:
1818
- nvm install $NODE_VERSION
1919
- node --version
2020
- npm --version
21-
- npm install
21+
- npm run ci-or-install
2222
os:
2323
- linux
2424
- osx

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ install:
1515
- set PATH=%APPDATA%\npm;%PATH%
1616
- node --version
1717
- npm --version
18-
- npm install
18+
- npm run ci-or-install
1919

2020
matrix:
2121
fast_finish: false

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy