Skip to content

Commit

Permalink
chore: migrate cross-workspace script running to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavis committed Oct 4, 2024
1 parent b173628 commit e6c52ea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ jobs:
run: yarn run build

- name: pack
# Cannot use yarn lerna run pack
run: yarn lerna exec yarn pack
run: yarn workspaces foreach --all --topological exec yarn pack

# Prepack (without cleanup per package) to ensure that type resolution in
# dependent packages continues to work when the typedefs are generated by
Expand Down Expand Up @@ -346,4 +345,4 @@ jobs:
working-directory: endo
run: |
PATH=$PATH:$GITHUB_WORKSPACE/bin
yarn lerna run test:xs
yarn test:xs
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@
},
"scripts": {
"clean": "lerna clean",
"cover": "lerna run cover",
"cover": "yarn workspaces foreach --all run cover",
"docs": "typedoc",
"docs:markdown-for-agoric-documentation-repo": "typedoc --plugin typedoc-plugin-markdown --tsconfig tsconfig.build.json",
"update": "lernaupdate --dedupe",
"update": "echo 'DEPRECATED: use \"yarn upgrade-interactive\" or \"yarn dedupe\"'",
"format": "prettier --write .github packages",
"lint": "prettier --check .github packages && lerna run --no-bail lint",
"lint-fix": "lerna run --no-bail lint-fix",
"test": "lerna run --ignore @endo/skel --no-bail test",
"test262": "lerna run test262",
"build": "lerna run build",
"lint": "prettier --check .github packages && yarn workspaces foreach --all run lint",
"lint-fix": "yarn workspaces foreach --all run lint-fix",
"test": "yarn workspaces foreach --all --exclude @endo/skel run test",
"test:xs": "yarn workspaces foreach --all run test:xs",
"test262": "yarn workspaces foreach --all run test262",
"build": "yarn workspaces foreach --all run build",
"build-ts": "tsc --build tsconfig.build.json"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions scripts/migrate-test-names.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ const usage = `
Run this script in a package to convert its test names and Ava config.
To run it over all packages,
yarn lerna exec --concurrency 1 --no-bail '../../scripts/migrate-test-names.mjs'
yarn workspaces foreach --all exec '../../scripts/migrate-test-names.mjs'
Then for the couple deeper packages
yarn lerna exec --concurrency 1 --no-bail '../../../scripts/migrate-test-names.mjs'
yarn workspaces foreach --all exec '../../../scripts/migrate-test-names.mjs'
`;

Expand Down

0 comments on commit e6c52ea

Please sign in to comment.