Skip to content

Comments

fix(infra): use cross-platform compatible checks script#1528

Closed
abhu85 wants to merge 1 commit intoaws:mainfrom
abhu85:fix/windows-checks-1512
Closed

fix(infra): use cross-platform compatible checks script#1528
abhu85 wants to merge 1 commit intoaws:mainfrom
abhu85:fix/windows-checks-1512

Conversation

@abhu85
Copy link
Contributor

@abhu85 abhu85 commented Feb 19, 2026

Summary

Replaces the pnpm regex pattern in the checks script with explicit command chaining, fixing the script on Windows.

Before:

"checks": "pnpm run '/^check:.*/'",

After:

"checks": "pnpm run check:lint && pnpm run check:format && pnpm run check:types",

Root Cause

The single quotes around the regex pattern '/^check:.*/' are not properly interpreted by Windows cmd.exe, causing pnpm checks to fail on Windows systems.

Changes

  • Modified package.json to use explicit command chaining with && instead of the pnpm regex pattern
  • The fix runs the same three check scripts: check:lint, check:format, and check:types

Test Plan

  • Verified that the three check scripts exist in package.json
  • The && operator is cross-platform compatible (works on Windows cmd.exe, PowerShell, and Unix shells)
  • Behavior is identical to the regex pattern (runs all check:* scripts)

Fixes #1512

Replace the pnpm regex pattern `'/^check:.*/'` with explicit command
chaining using `&&`. The regex pattern with single quotes does not work
properly on Windows cmd.exe, causing `pnpm checks` to fail.

The explicit commands are cross-platform compatible and run the same
check scripts: check:lint, check:format, and check:types.

Fixes aws#1512

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kmcginnes
Copy link
Collaborator

Closing as duplicate of #1525

@kmcginnes kmcginnes closed this Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running pnpm checks on Windows fails

2 participants