1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fixing yarn version command, adding yarn version plugin (#17325)

* Removing invalid flags for yarn version command

* Adding yarn version plugin

* remove .yarn from coverage

---------

Co-authored-by: Brad Decker <bhdecker84@gmail.com>
This commit is contained in:
ryanml 2023-02-01 17:05:52 -07:00 committed by GitHub
parent 308151cd49
commit 4ee93f2594
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 578 additions and 9 deletions

View File

@ -19,7 +19,7 @@ fi
printf '%s\n' 'Updating the manifest version if needed'
version="${CIRCLE_BRANCH/Version-v/}"
yarn version --no-git-tag-version --new-version "${version}"
yarn version "${version}"
if [[ -z $(git status --porcelain) ]]
then

File diff suppressed because one or more lines are too long

View File

@ -2,14 +2,16 @@ enableScripts: false
enableTelemetry: false
logFilters:
- code: YN0004
level: discard
nodeLinker: node-modules
plugins:
- 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'
spec: "https://raw.githubusercontent.com/LavaMoat/LavaMoat/main/packages/yarn-plugin-allow-scripts/bundles/@yarnpkg/plugin-allow-scripts.js"
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"
yarnPath: .yarn/releases/yarn-3.2.4.cjs
logFilters:
- code: YN0004
level: discard

View File

@ -6,10 +6,10 @@
// subset of files to check against these targets.
module.exports = {
global: {
branches: 22,
functions: 33.5,
branches: 50,
functions: 55,
lines: 62.25,
statements: 41.75,
statements: 61.5,
},
transforms: {
branches: 100,

17
nyc.config.js Normal file
View File

@ -0,0 +1,17 @@
// nyc is our coverage reporter for mocha, and currently is collecting
// coverage for .yarn folder. all of these are default excludes except the
// .yarn/** entry. This entire file should be removable once we complete the
// migration from mocha to jest in the app folder.
module.exports = {
exclude: [
'coverage/**',
'packages/*/test/**',
'test/**',
'test{,-*}.js',
'**/*{.,-}test.js',
'**/__tests__/**',
'**/node_modules/**',
'**/babel.config.js',
'.yarn/**',
],
};