Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit ac7bcad

Browse files
committed
chore: update dependencies and get rid of yarn in favor of npm
1 parent 3b396c8 commit ac7bcad

File tree

7 files changed

+5456
-3512
lines changed

7 files changed

+5456
-3512
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
uses: actions/setup-node@v3
2222
with:
2323
node-version: 20.x
24-
cache: 'yarn'
24+
cache: 'npm'
2525

2626
- name: Install dependencies
27-
run: yarn install --frozen-lockfile
27+
run: npm ci
2828

2929
- name: Test
30-
run: yarn test
30+
run: npm test
3131

3232
- name: Build
33-
run: yarn build
33+
run: npm run build

.husky/pre-push

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
set -eu
44

5-
if ! yarn test
5+
if ! npm test
66
then
77
echo "Cannot test project."
88
exit 1
99
fi
1010

11-
if ! yarn build
11+
if ! npm run build
1212
then
1313
echo "Cannot build project."
1414
exit 1

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
FROM --platform=$BUILDPLATFORM node:20-alpine3.18 as BUILDER
44
WORKDIR /app
5-
COPY ["./*.json", "./yarn.lock", "./"]
6-
RUN set -x && yarn install --frozen-lockfile
5+
COPY ["./*.json", "./"]
6+
RUN set -x && npm ci
77
COPY ["./src", "./src"]
8-
RUN set -x && yarn test
9-
RUN set -x && yarn build
8+
RUN set -x && npm test
9+
RUN set -x && npm run build
1010

1111
FROM node:20-alpine3.18
1212
ENV NODE_ENV=production \
@@ -15,7 +15,7 @@ WORKDIR /app
1515
RUN set -x && apk update --no-cache && \
1616
apk upgrade --no-cache && \
1717
apk add --no-cache dumb-init nss freetype harfbuzz ca-certificates ttf-freefont chromium
18-
COPY --from=BUILDER ["/app/dist", "/app/package.json", "/app/yarn.lock", "./"]
19-
RUN set -x && yarn install --production --frozen-lockfile && yarn cache clean
18+
COPY --from=BUILDER ["/app/dist", "/app/package.json", "/app/package-lock.json", "./"]
19+
RUN set -x && npm ci && npm cache clean --force
2020
USER node
2121
CMD [ "node", "src/index.js" ]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The web scraper component of Secutils.dev, refer to [secutils-dev/secutils](http
44

55
## Getting started
66

7-
Install all the required dependencies with `yarn install` and run the scraper server in watch mode with `yarn watch`.
7+
Install all the required dependencies with `npm install` and run the scraper server in watch mode with `npm run watch`.
88

99
### Usage
1010

0 commit comments

Comments
 (0)