forked from MetaMask/snaps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes MetaMask#458. This upgrades Yarn to the latest version, v3, and uses the Yarn v3 workspaces plugin to manage the workspace. The examples package is now a sub-workspace (meaning it can't be published to npm anymore), which removes the need for the build script and solves some issues regarding dependency management as well. Co-authored-by: Erik Marks <[email protected]>
- Loading branch information
Showing
37 changed files
with
23,900 additions
and
19,847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
nodeLinker: node-modules | ||
|
||
enableScripts: false | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | ||
spec: '@yarnpkg/plugin-workspace-tools' | ||
|
||
yarnPath: .yarn/releases/yarn-3.2.1.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,18 +16,18 @@ | |
"link-packages": "./scripts/link-packages.sh", | ||
"lint:eslint": "eslint . --cache --ext js,ts", | ||
"lint:misc": "prettier '**/*.json' '**/*.md' '!**/CHANGELOG.md' '**/*.yml' --ignore-path .gitignore", | ||
"lint:changelogs": "yarn workspaces run lint:changelog", | ||
"lint:changelogs": "cross-env npm_package_repository_url=https://github.com/MetaMask/snaps-skunkworks.git yarn workspaces foreach --parallel --topological 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", | ||
"build": "yarn build:pre-tsc && yarn build:tsc && yarn build:post-tsc", | ||
"build:clean": "yarn clean && yarn build", | ||
"build:tsc": "tsc --build", | ||
"build:pre-tsc": "yarn workspaces run build:pre-tsc ", | ||
"build:post-tsc": "yarn workspaces run build:post-tsc", | ||
"clean": "yarn workspaces run clean", | ||
"test": "yarn workspaces run test", | ||
"test:ci": "yarn workspaces run test:ci" | ||
"build:pre-tsc": "yarn workspaces foreach --parallel --topological run build:pre-tsc", | ||
"build:post-tsc": "yarn workspaces foreach --parallel --topological run build:post-tsc", | ||
"clean": "yarn workspaces foreach --parallel run clean", | ||
"test": "yarn workspaces foreach --parallel run test", | ||
"test:ci": "yarn workspaces foreach --parallel run test:ci" | ||
}, | ||
"simple-git-hooks": { | ||
"pre-commit": "yarn lint-staged" | ||
|
@@ -42,7 +42,7 @@ | |
}, | ||
"devDependencies": { | ||
"@jest-runner/electron": "^3.0.1", | ||
"@lavamoat/allow-scripts": "^1.0.6", | ||
"@lavamoat/allow-scripts": "^2.0.3", | ||
"@metamask/auto-changelog": "^2.5.0", | ||
"@metamask/eslint-config": "^8.0.0", | ||
"@metamask/eslint-config-jest": "^8.0.0", | ||
|
@@ -52,6 +52,7 @@ | |
"@types/node": "^14.14.25", | ||
"@typescript-eslint/eslint-plugin": "^5.19.0", | ||
"@typescript-eslint/parser": "^5.19.0", | ||
"cross-env": "^7.0.3", | ||
"electron": "^13.6.6", | ||
"eslint": "^7.30.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
|
@@ -73,9 +74,11 @@ | |
"allowScripts": { | ||
"@jest-runner/electron": true, | ||
"@lavamoat/preinstall-always-fail": false, | ||
"core-js": true, | ||
"electron": true, | ||
"simple-git-hooks": false | ||
"simple-git-hooks": false, | ||
"$root$": false, | ||
"electron>@electron/get>global-agent>core-js": false | ||
} | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.