mirror of
https://github.com/ProtonMail/pmcrypto.git
synced 2026-01-11 19:46:31 +00:00
Dev: switch to yarn berry as package manager
This commit is contained in:
parent
3334ddb73a
commit
6232629329
8 changed files with 7022 additions and 8304 deletions
8
.github/workflows/tests.yml
vendored
8
.github/workflows/tests.yml
vendored
|
|
@ -21,11 +21,11 @@ jobs:
|
|||
- uses: actions/setup-node@v5
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
run: yarn --immutable
|
||||
|
||||
- if: ${{ matrix.runner == 'ubuntu-latest' }}
|
||||
run: npm run lint
|
||||
- run: npm run test-type-definitions
|
||||
run: yarn run lint
|
||||
- run: yarn run test-type-definitions
|
||||
|
||||
- name: Install Chrome
|
||||
run: npx playwright install --with-deps chromium
|
||||
|
|
@ -37,4 +37,4 @@ jobs:
|
|||
run: npx playwright install --with-deps webkit
|
||||
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
run: yarn test
|
||||
|
|
|
|||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -3,3 +3,4 @@ node_modules
|
|||
.DS_Store
|
||||
/build
|
||||
.vscode
|
||||
.yarn/install-state.gz
|
||||
|
|
|
|||
942
.yarn/releases/yarn-4.10.2.cjs
vendored
Executable file
942
.yarn/releases/yarn-4.10.2.cjs
vendored
Executable file
File diff suppressed because one or more lines are too long
3
.yarnrc.yml
Normal file
3
.yarnrc.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
nodeLinker: node-modules
|
||||
|
||||
yarnPath: .yarn/releases/yarn-4.10.2.cjs
|
||||
|
|
@ -127,9 +127,13 @@ const sessionKey = await decryptSessionKey({
|
|||
```
|
||||
</details>
|
||||
|
||||
## Testing
|
||||
## Development
|
||||
Yarn is used as package manager; it comes bundled as part of the repository code.
|
||||
After checking out the repo, you can just run `yarn` to install dependencies.
|
||||
|
||||
### Testing
|
||||
Headless Chrome (or Chromium), Firefox and Webkit are used for the tests.
|
||||
To install any missing browsers automatically, you can run `npx playwright install --with-deps <chromium|firefox|webkit>`. Alternatively, you can install them manually as you normally would on your platform.
|
||||
If you'd like to test on a subset of browsers, use e.g. `npm test -- --browsers ChromeHeadless,FirefoxHeadless`.
|
||||
If you'd like to test on a subset of browsers, use e.g. `yarn test -- --browsers ChromeHeadless,FirefoxHeadless`.
|
||||
|
||||
|
||||
|
|
|
|||
8297
package-lock.json
generated
8297
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -69,5 +69,6 @@
|
|||
"web-streams-polyfill": "^3.3.3",
|
||||
"webpack": "^5.101.3",
|
||||
"webpack-cli": "^4.10.0"
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@4.10.2"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue