Skip to content

Commit

Permalink
Add Yarn constraints to enforce the same version for each package (#1311
Browse files Browse the repository at this point in the history
)

* Add Yarn constraints to enforce the same version for each package

* Bump packages versions to 0.32.2

Update packages versions to match other versions.

* Update snap manifests to version 0.32.2

This commit updates the snap manifests of the Bitcoin, Core and Ethereum packages
to version 0.32.2. The shasum of the source was also changed.
  • Loading branch information
Mrtenz committed Mar 31, 2023
1 parent 9400f73 commit adbc8f1
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 11 deletions.
52 changes: 52 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-constraints.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ plugins:
spec: '@yarnpkg/plugin-workspace-tools'
- path: .yarn/plugins/@yarnpkg/plugin-allow-scripts.cjs
spec: 'https://raw.githubusercontent.com/LavaMoat/LavaMoat/main/packages/yarn-plugin-allow-scripts/bundles/@yarnpkg/plugin-allow-scripts.js'
- path: .yarn/plugins/@yarnpkg/plugin-constraints.cjs
spec: '@yarnpkg/plugin-constraints'

yarnPath: .yarn/releases/yarn-3.4.1.cjs
3 changes: 3 additions & 0 deletions constraints.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
% Ensure all subpackage versions are the same as the root package version.
gen_enforced_field(WorkspaceCwd, 'version', Version) :-
workspace_field('.', 'version', Version).
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"lint:misc": "prettier '**/*.json' '**/*.md' '!**/CHANGELOG.md' '**/*.yml' '**/*.html'",
"lint:changelogs": "yarn workspaces foreach --parallel --verbose run lint:changelog",
"lint:tsconfig": "node scripts/verify-tsconfig.mjs",
"lint": "yarn lint:tsconfig && yarn lint:eslint && yarn lint:misc --check",
"lint:fix": "yarn lint:tsconfig && yarn lint:eslint --fix && yarn lint:misc --write",
"lint": "yarn lint:tsconfig && yarn lint:eslint && yarn lint:misc --check && yarn constraints",
"lint:fix": "yarn lint:tsconfig && yarn lint:eslint --fix && yarn lint:misc --write && yarn constraints --fix",
"build": "yarn build:tsc && yarn build:post-tsc",
"build:clean": "yarn clean && yarn build",
"build:tsc": "tsc --build tsconfig.build.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "signer-bitcoin",
"version": "0.31.0",
"version": "0.32.2",
"private": true,
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"version": "0.31.0",
"version": "0.32.2",
"description": "An Bitcoin transaction signer, which uses a snap for deriving private keys",
"proposedName": "signer-bitcoin",
"repository": {
"type": "git",
"url": "https://github.com/MetaMask/snaps-monorepo.git"
},
"source": {
"shasum": "B69Mq57XQZme1VRdVfb7H2YxC5Gyiw4mpy9/6ZbytA8=",
"shasum": "mgSQfe9AYAMNXKisUgoDvfoMmKkFA4LpAnY2V0PSdX4=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "signer-core",
"version": "0.31.0",
"version": "0.32.2",
"private": true,
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"version": "0.31.0",
"version": "0.32.2",
"description": "A snap using its own entropy for deriving child keys",
"proposedName": "signer-core",
"repository": {
"type": "git",
"url": "https://github.com/MetaMask/snaps-monorepo.git"
},
"source": {
"shasum": "HBXPKk8+lODtF82apQ4pbnenuhGwtbgo/ItWgSxKvgk=",
"shasum": "f9/748l3aiinpHBmfhA1pey58tfcpmHRz9AXf7ZFGoo=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "signer-ethereum",
"version": "0.31.0",
"version": "0.32.2",
"private": true,
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"version": "0.31.0",
"version": "0.32.2",
"description": "An Ethereum transaction signer, which uses a snap for deriving private keys",
"proposedName": "signer-ethereum",
"repository": {
"type": "git",
"url": "https://github.com/MetaMask/snaps-monorepo.git"
},
"source": {
"shasum": "7a0MS4k/aXmoGLvHF6TSR0GQwFG19OXFsoeuECN2BQE=",
"shasum": "tyiJoC/9Vcab65HcleGVyut/sPac+TFl7+ufAvlXvtQ=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down

0 comments on commit adbc8f1

Please sign in to comment.