Skip to content

Commit

Permalink
chore: drop the tools from regenerate-docs command and remove oth…
Browse files Browse the repository at this point in the history
…er old references to `tools` (#1561)

* chore: remove references to old `tools` directory

* chore: drop the `tools` from `regenerate-docs` command
  • Loading branch information
G-Rath authored Apr 20, 2024
1 parent ff36ec2 commit 08cbf8d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
8 changes: 1 addition & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,11 @@ module.exports = {
globals,
},
{
files: ['src/**/*', 'dangerfile.ts', 'tools/*', './jest.config.ts'],
files: ['src/**/*', 'dangerfile.ts', './jest.config.ts'],
parserOptions: {
sourceType: 'module',
},
},
{
files: ['tools/*'],
rules: {
'node/shebang': 'off',
},
},
{
files: ['.eslintrc.js', 'babel.config.js'],
rules: {
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ jobs:
- name: install
run: yarn
- name: regenerate docs
run: yarn tools:regenerate-docs
run: yarn regenerate-docs
- name: report regenerated docs
run: |
git diff --name-only \
| xargs -I '{}' bash -c \
'echo "::error file={}::This needs to be regenerated by running \`tools:regenerate-docs\`" && false'
'echo "::error file={}::This needs to be regenerated by running \`yarn regenerate-docs\`" && false'
release:
permissions:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"prettier:write": "prettier --write 'docs/**/*.md' README.md '.github/**' package.json tsconfig.json src/globals.json .yarnrc.yml",
"postpublish": "pinst --enable",
"test": "jest",
"tools:regenerate-docs": "yarn prepack && eslint-doc-generator",
"regenerate-docs": "yarn prepack && eslint-doc-generator",
"typecheck": "tsc -p ."
},
"commitlint": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"skipLibCheck": false
},
"files": ["eslint-remote-tester.config.ts"],
"include": ["src/**/*", "tools/**/*"],
"include": ["src/**/*"],
"exclude": ["src/rules/__tests__/fixtures/**/*"]
}

0 comments on commit 08cbf8d

Please sign in to comment.