Skip to content

Commit d4dbb9d

Browse files
committed
Bump to Yarn v4
Upgrading to v4 allows us to bring over more things from the module template, such as JavaScript constraints. 4.7.0 is the latest version at the time of this writing.
1 parent 2a42c2c commit d4dbb9d

File tree

7 files changed

+3666
-2464
lines changed

7 files changed

+3666
-2464
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
* text=auto
22

33
yarn.lock linguist-generated=false
4+
5+
# yarn v3
6+
# See: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
7+
/.yarn/releases/** binary
8+
/.yarn/plugins/** binary

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,13 @@ Temporary Items
9090
.apdisk
9191

9292
# End of https://www.gitignore.io/api/osx,node
93+
94+
# yarn v3 (w/o zero-install)
95+
# See: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
96+
.pnp.*
97+
.yarn/*
98+
!.yarn/patches
99+
!.yarn/plugins
100+
!.yarn/releases
101+
!.yarn/sdks
102+
!.yarn/versions
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* eslint-disable */
2+
//prettier-ignore
3+
module.exports = {
4+
name: "@yarnpkg/plugin-allow-scripts",
5+
factory: function (require) {
6+
var plugin=(()=>{var a=Object.create,l=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var p=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty;var u=e=>l(e,"__esModule",{value:!0});var f=e=>{if(typeof require!="undefined")return require(e);throw new Error('Dynamic require of "'+e+'" is not supported')};var g=(e,o)=>{for(var r in o)l(e,r,{get:o[r],enumerable:!0})},m=(e,o,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of s(o))!c.call(e,t)&&t!=="default"&&l(e,t,{get:()=>o[t],enumerable:!(r=i(o,t))||r.enumerable});return e},x=e=>m(u(l(e!=null?a(p(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var k={};g(k,{default:()=>d});var n=x(f("@yarnpkg/shell")),y={hooks:{afterAllInstalled:async()=>{let e=await(0,n.execute)("yarn run allow-scripts");e!==0&&process.exit(e)}}},d=y;return k;})();
7+
return plugin;
8+
}
9+
};

.yarnrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.yarnrc.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
compressionLevel: mixed
2+
3+
enableGlobalCache: false
4+
5+
enableScripts: false
6+
7+
enableTelemetry: 0
8+
9+
logFilters:
10+
- code: YN0004
11+
level: discard
12+
13+
nodeLinker: node-modules
14+
15+
plugins:
16+
- path: .yarn/plugins/@yarnpkg/plugin-allow-scripts.cjs
17+
spec: "https://raw.githubusercontent.com/LavaMoat/LavaMoat/main/packages/yarn-plugin-allow-scripts/bundles/@yarnpkg/plugin-allow-scripts.js"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"devDependencies": {
2929
"@lavamoat/allow-scripts": "^2.5.1",
3030
"@metamask/auto-changelog": "^3.3.0",
31-
"@metamask/eth-json-rpc-middleware": "^15.0.0",
3231
"@metamask/eth-block-tracker": "^11.0.1",
32+
"@metamask/eth-json-rpc-middleware": "^15.0.0",
3333
"ganache": "^7.9.2",
3434
"sinon": "^15.2.0",
3535
"tape": "^5.7.0"
@@ -62,5 +62,5 @@
6262
"ganache>utf-8-validate": false
6363
}
6464
},
65-
"packageManager": "yarn@1.22.22"
65+
"packageManager": "yarn@4.7.0"
6666
}

0 commit comments

Comments
 (0)