Skip to content

Commit

Permalink
Switch from yarn to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
lephyrus committed Dec 29, 2024
1 parent b621b1d commit 4b3f08f
Show file tree
Hide file tree
Showing 9 changed files with 13,562 additions and 14,319 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
cache: "yarn"
cache: "npm"
- name: Install dependencies
run: yarn install --immutable
run: npm ci
- name: Lint
run: yarn lint
run: npm run lint
- name: Test
run: yarn test
run: npm run test
- name: Build for production
run: yarn build:prod
run: npm run build:prod
- name: Pack
run: cd dist && npm pack
- uses: actions/upload-artifact@v4
Expand Down
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,4 @@ dist
*.log
**/.DS_Store

.yarn/*
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*

/.angular/cache
546 changes: 0 additions & 546 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

873 changes: 0 additions & 873 deletions .yarn/releases/yarn-3.5.1.cjs

This file was deleted.

7 changes: 0 additions & 7 deletions .yarnrc.yml

This file was deleted.

6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ Using `npm`:
npm install ngx-translate-messageformat-compiler @messageformat/core --save
```

... or if you use `yarn`:

```sh
yarn add ngx-translate-messageformat-compiler @messageformat/core
```

Something to be aware of if you deploy to strict production environments: [Fundamentally, messageformat is a compiler that turns ICU MessageFormat input into JavaScript](https://messageformat.github.io/messageformat/use/), and we do this at runtime. This means calling `new Function` under the hood, which requires allowing `unsafe-eval` for the [`script-src`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src) Content Security Policy (CSP).

## Setup
Expand Down
Loading

0 comments on commit 4b3f08f

Please sign in to comment.