Skip to content

Commit 80bec5c

Browse files
committed
Upgrade to yarn 3
1 parent 273307c commit 80bec5c

File tree

5 files changed

+648
-6
lines changed

5 files changed

+648
-6
lines changed

.gitignore

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
# yarn/npm
2-
node_modules/
32
npm-debug.log
43
package-lock.json
54
yarn-error.log
6-
yarn.lock
5+
6+
/node_modules/
7+
/yarn.lock
8+
/.pnp.*
9+
/.yarn/*
10+
!/.yarn/patches
11+
!/.yarn/plugins
12+
!/.yarn/releases
13+
!/.yarn/sdks
14+
!/.yarn/versions
715

816
# coverage
917
reports/

.yarn/releases/yarn-3.0.2.cjs

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

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
enableGlobalCache: true
2+
nodeLinker: node-modules
3+
yarnPath: .yarn/releases/yarn-3.0.2.cjs

config/webpack.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ module.exports = {
190190
// noVNC doesn't package the vnc_lite viewer that we need, so we have to
191191
// fetch it separately.
192192
new SaveRemoteFilePlugin({
193-
url: `https://raw.githubusercontent.com/novnc/noVNC/v${execSync(`yarn list --silent --pattern @novnc/novnc | cut -d '@' -f 3 | tr -d '\n'`, {encoding: 'utf-8'})}/vnc_lite.html`,
193+
url: `https://raw.githubusercontent.com/novnc/noVNC/v${execSync(`yarn info --name-only @novnc/novnc | cut -d ':' -f 2 | tr -d '\n'`, {encoding: 'utf-8'})}/vnc_lite.html`,
194194
filepath: 'vendor/noVNC/vnc_lite.html',
195195
hash: false
196196
}),

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
],
135135
"engines": {
136136
"node": ">= 12.0.0",
137-
"npm": ">= 6.0.0",
138-
"yarn": ">= 1.0.0"
139-
}
137+
"npm": ">= 6.0.0"
138+
},
139+
"packageManager": "[email protected]"
140140
}

0 commit comments

Comments
 (0)