Skip to content

Commit

Permalink
Ignore scripts when installing dependencies
Browse files Browse the repository at this point in the history
This is to prevent issues with sinonjs/sinon#2557
  • Loading branch information
pipex committed Oct 18, 2023
1 parent 6ebd6b5 commit 3331a71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
package-lock=false
ignore-scripts=true
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apk add --update curl
WORKDIR /usr/src/app

# Copies the package.json first for better cache on later pushes
COPY package.json ./
COPY package.json .npmrc ./

# Install dependencies
RUN npm install
Expand Down

0 comments on commit 3331a71

Please sign in to comment.