pr-checkmate 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,9 +19,11 @@ async function runPrettier() {
19
19
  const hasConfig = node_fs_1.default.existsSync('.prettierrc') ||
20
20
  node_fs_1.default.existsSync('.prettierrc.json') ||
21
21
  node_fs_1.default.existsSync('prettier.config.js');
22
- const pattern = hasConfig ? '.' : config_1.SOURCE_PATH;
22
+ const pattern = hasConfig
23
+ ? '.' // run on whole project if config exists
24
+ : `${config_1.SOURCE_PATH}/**/*.{ts,tsx,js,jsx,json,md}`; // otherwise only supported extensions
23
25
  try {
24
- await (0, execa_1.execa)('npx', ['prettier', '--write', `${pattern}/**/*`], {
26
+ await (0, execa_1.execa)('npx', ['prettier', '--write', pattern], {
25
27
  stdio: 'inherit',
26
28
  });
27
29
  utils_1.logger.info('Prettier completed');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pr-checkmate",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Automated PR quality checks: linting, formatting, dependency analysis, and spellcheck",
5
5
  "keywords": [
6
6
  "github-actions",