Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .yarn/plugins/local/plugin-workspaces-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,16 @@ module.exports = {
validator: isBoolean,
});

interlaced = Option.Boolean(`--interlaced`, false, {
description: `Print the output of commands in real-time instead of buffering it`,
validator: isBoolean,
});

jobs = Option.String(`--jobs`, {
description: `Number of jobs to run concurrently`,
validator: isString,
});

include = Option.String('--include', {
description: `List workspaces based on a glob pattern`,
validator: isString,
Expand Down Expand Up @@ -178,6 +188,14 @@ module.exports = {
extraArgs.push('--topological-dev');
}

if (this.interlaced) {
extraArgs.push('--interlaced');
}

if (this.jobs) {
extraArgs.push('--jobs', this.jobs.toString());
}

const includes = workspaces.map((workspace) => workspace.manifest.name)
.flatMap(({ scope, name }) => ['--include', `@${scope}/${name}`]);

Expand Down
2 changes: 1 addition & 1 deletion packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
"lint:misc": "prettier --no-error-on-unmatched-pattern --log-level warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!packages/**\" --ignore-path ../../.gitignore",
"since-latest-release": "../../scripts/since-latest-release.sh",
"start": "yarn workspaces foreach --worktree --parallel --verbose --interlaced --no-private --jobs unlimited run start",
"start": "yarn workspaces filter --include 'packages/examples/packages/**' --parallel --interlaced --no-private --jobs unlimited run start",
"start:test": "yarn start",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
Expand Down
2 changes: 1 addition & 1 deletion packages/test-snaps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
"lint:misc": "prettier --no-error-on-unmatched-pattern --log-level warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore",
"since-latest-release": "../../scripts/since-latest-release.sh",
"start": "yarn workspaces foreach --parallel --verbose --interlaced --all --include \"@metamask/test-snaps\" --include \"@metamask/example-snaps\" run start:test",
"start": "yarn workspaces foreach --parallel --interlaced --all --include \"@metamask/test-snaps\" --include \"@metamask/example-snaps\" run start:test",
"start:test": "cross-env NODE_ENV=development webpack serve",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
Expand Down
Loading