Skip to content

Commit

Permalink
chore: no more yarn; use npm
Browse files Browse the repository at this point in the history
  • Loading branch information
alioguzhan committed May 7, 2024
1 parent 4ac1ea1 commit d19ac13
Show file tree
Hide file tree
Showing 9 changed files with 11,604 additions and 8,699 deletions.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn run commitlint --edit "$1"
npx commitlint --edit "$1"
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn run lint-staged
npx lint-staged
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /usr/src/app

COPY src ./src
COPY package.json tsconfig.json webpack.config.js typedoc.json ./
RUN yarn install && yarn build
RUN npm install && npm run build

FROM node:20-alpine

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.openfaas
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /usr/src/app

COPY src ./src
COPY package.json tsconfig.json webpack.config.js typedoc.json ./
RUN yarn install && yarn build
RUN npm install && npm run build

FROM node:20-alpine

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ docker run --rm -p 1025:25 -p 1080:80 tophfr/mailcatcher:0.7.1
Build the app and run the development server:

```
yarn build
yarn start
npm run build
npm start
```

Send an email:
Expand Down Expand Up @@ -69,7 +69,7 @@ ncu -u
## Testing

```
yarn test
npm run test
```

## Production
Expand Down
Loading

0 comments on commit d19ac13

Please sign in to comment.