Skip to content

Commit b85389a

Browse files
authored
Merge pull request #602 from minrk/omit-dev
npm: update --production to --omit=dev
2 parents cb0ffef + 978c50c commit b85389a

File tree

3 files changed

+13
-23
lines changed

3 files changed

+13
-23
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: npm audit
4848
run: |
4949
# If this fails, run `npm audit fix`
50-
npm audit --production --audit-level=moderate
50+
npm audit --omit=dev --audit-level=moderate
5151
5252
test:
5353
runs-on: ubuntu-24.04

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ COPY . /srv/configurable-http-proxy/
2121
WORKDIR /srv/configurable-http-proxy
2222

2323
# Install configurable-http-proxy according to package-lock.json (ci) without
24-
# devDepdendencies (--production), then uninstall npm which isn't needed.
25-
RUN npm ci --production \
24+
# devDepdendencies (--omit=dev), then uninstall npm which isn't needed.
25+
RUN npm ci --omit=dev \
2626
&& npm uninstall -g npm
2727

2828
# Switch from the root user to the nobody user

package-lock.json

Lines changed: 10 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)