Skip to content

Fix malformed build script in @guildpass/integration-client package.json #332

Description

@Lakes41

Background

During workspace build (pnpm -r build), the @guildpass/integration-client package fails with:

error TS5042: Option 'project' cannot be mixed with source files on a command line.

This error occurs because the TypeScript CLI receives conflicting arguments: -p tsconfig.json (which signals a project build) followed by additional source file arguments.

Problem

The packages/integration-client/package.json build script contains extra text appended to the TypeScript command:

"build": "tsc -p tsconfig.json pnpm start pnpm typecheck pnpm lint"

This concatenation results in TypeScript receiving invalid arguments, causing the entire workspace build to fail at this step.

Expected Outcome

The @guildpass/integration-client build script is corrected to run only the TypeScript compilation step without extraneous commands appended.

Suggested Implementation

  1. Open packages/integration-client/package.json
  2. Locate the "build" script entry
  3. Replace the entire value with: "tsc -p tsconfig.json"
  4. Verify no trailing or appended text remains
  5. Run pnpm build -r --filter @guildpass/integration-client to confirm it compiles without errors
  6. Run full workspace build: pnpm -r build

Acceptance Criteria

  • packages/integration-client/package.json contains a clean build script with only tsc -p tsconfig.json
  • Running pnpm build -r --filter @guildpass/integration-client completes without TypeScript errors
  • Full workspace build pnpm -r build succeeds past the integration-client step
  • No other scripts in the file have similar malformed concatenation

Affected Files/Directories

  • packages/integration-client/package.json

Metadata

Metadata

Assignees

Labels

Third CampaignOfficial FWC26 campaign issue — eligible for campaign scoring and rewardsbugConfirmed defect or incorrect behavior that needs to be fixedbuildUser interface or user experience improvements and design workintermediateIntermediate difficulty tasks requiring solid experience and some context

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions