Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Commit e016072

Browse files
authored
build: migrate from yarn v1 to yarn berry (v2) (#572)
* build: migrate to yarn berry * build: fix test configuration * chore: update ci * chore: update readme * chore: use node linker yarn2 * chore: remove step * chore: update yarn config * chore: fix webpack * chore: fix build cache files * chore: fix build cache files * chore: restore network seetings * chore: remove sdks files * chore: apply suggestions * chore: apply suggestions * chore: remove cross-env dependency * chore: add immutable option * chore: add immutable option
1 parent cd7ac33 commit e016072

File tree

23 files changed

+20977
-15623
lines changed

23 files changed

+20977
-15623
lines changed

.babelrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
key: *yarn_cache_key
5050
- run:
5151
name: Install dependencies
52-
command: yarn install --frozen-lockfile
52+
command: yarn install
5353
- run:
5454
name: Lint code
5555
command: yarn lint

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ coverage/
33
static/
44
.github/
55
.circleci/
6+
jest/identity.js
67
build
78
*.md
89
*.lock

.github/workflows/canary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
node-version: '12.x'
1818
registry-url: 'https://registry.verdaccio.org'
1919
- name: Install
20-
run: yarn install --frozen-lockfile --network-timeout 100000
20+
run: yarn install --immutable
2121
- name: Lint
2222
run: yarn lint
2323
- name: Build

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
node-version: ${{ matrix.node_version }}
2323
- name: Install
24-
run: yarn install --frozen-lockfile --network-timeout 100000
24+
run: yarn install
2525
- name: Lint
2626
run: yarn lint
2727
- name: Build

.gitignore

100755100644
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ __tests__
1919
static/*
2020
coverage/
2121
stats.json
22+
23+
# This is the Yarn build state; it's local to each clone
24+
/.yarn/build-state.yml
25+
/.yarn/sdks/
26+
27+
# This is the Yarn install state cache, it can be rebuilt anytime
28+
/.yarn/install-state.gz
29+
.history

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"arcanis.vscode-zipfs",
4+
"dbaeumer.vscode-eslint",
5+
"esbenp.prettier-vscode",
6+
"stylelint.vscode-stylelint"
7+
]
8+
}

.vscode/settings.json

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
{
2-
"eslint.packageManager": "yarn",
3-
"eslint.validate": [
4-
"javascript",
5-
"javascriptreact",
6-
"typescript",
7-
"typescriptreact"
8-
],
9-
"typescript.tsdk": "node_modules/typescript/lib",
10-
"editor.formatOnSave": false,
11-
"editor.codeActionsOnSave": {
12-
"source.fixAll.eslint": true
13-
},
14-
"eslint.alwaysShowStatus": true
2+
"eslint.packageManager": "yarn",
3+
"eslint.validate": [
4+
"javascript",
5+
"javascriptreact",
6+
"typescript",
7+
"typescriptreact"
8+
],
9+
"editor.formatOnSave": false,
10+
"editor.codeActionsOnSave": {
11+
"source.fixAll.eslint": true
12+
},
13+
"eslint.alwaysShowStatus": true,
14+
"search.exclude": {
15+
"**/.yarn": true,
16+
"**/.pnp.*": true
17+
},
18+
"typescript.enablePromptUseWorkspaceTsdk": true
1519
}

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Lines changed: 38 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)