Skip to content

Commit 5d4bd17

Browse files
committed
Upgrade to Yarn v3
We use Yarn v3 for our other libraries, so we're following suit here.
1 parent d1af978 commit 5d4bd17

7 files changed

Lines changed: 6624 additions & 4247 deletions

File tree

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
node_modules/
22
dist/
33
*.log
4+
5+
# yarn v3 (w/o zero-install)
6+
# See: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
7+
.pnp.*
8+
.yarn/*
9+
!.yarn/patches
10+
!.yarn/plugins
11+
!.yarn/releases
12+
!.yarn/sdks
13+
!.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+
};

.yarn/plugins/@yarnpkg/plugin-constraints.cjs

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

.yarn/releases/yarn-3.2.1.cjs

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

.yarnrc.yml

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

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
},
2626
"author": "Erik Marks <rekmarks@protonmail.com>",
2727
"license": "ISC",
28-
"private": false,
2928
"publishConfig": {
3029
"access": "public"
3130
},
@@ -55,10 +54,10 @@
5554
"tinyify": "^4.0.0",
5655
"typescript": "^4.0.3"
5756
},
58-
"dependencies": {},
5957
"lavamoat": {
6058
"allowScripts": {
6159
"@lavamoat/preinstall-always-fail": false
6260
}
63-
}
61+
},
62+
"packageManager": "yarn@3.2.1"
6463
}

0 commit comments

Comments
 (0)