Skip to content

Commit c037128

Browse files
authored
run all packages/plugins checks from the workspace (facebook#4963)
1 parent 5dc50ab commit c037128

2 files changed

Lines changed: 2 additions & 14 deletions

File tree

.github/workflows/pre-merge.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,6 @@ jobs:
3636
- name: Run plugins lint
3737
run: yarn lint:plugins
3838

39-
- name: Run remark-codeblock-language-as-title plugin checks
40-
working-directory: plugins/remark-codeblock-language-as-title
41-
run: yarn tsc
42-
43-
- name: Run remark-lint-no-dead-urls plugin checks
44-
working-directory: plugins/remark-lint-no-dead-urls
45-
run: yarn tsc && yarn test
46-
47-
- name: Run remark-snackplayer plugin checks
48-
working-directory: plugins/remark-snackplayer
49-
run: yarn tsc && yarn test
50-
5139
lint-website:
5240
runs-on: ubuntu-latest
5341
steps:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"serve": "yarn --cwd website serve",
1919
"prepare": "husky",
2020
"lint": "eslint .",
21-
"lint:packages": "eslint ./packages",
22-
"lint:plugins": "eslint ./plugins",
21+
"lint:packages": "yarn workspaces foreach --from \"packages/*\" -p -R run lint",
22+
"lint:plugins": "yarn workspaces foreach --from \"plugins/*\" -p -R run lint && yarn workspaces foreach --from \"plugins/*\" -p -R run test",
2323
"lint:website": "eslint ./website ./docs",
2424
"update-lock": "yarn dedupe",
2525
"check-dependencies": "manypkg check"

0 commit comments

Comments
 (0)