Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: PHP ${{ matrix.php-versions }} Test
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -33,7 +33,7 @@ jobs:
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
14 changes: 7 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,10 @@ test.php
# PHPUnit cache
.phpunit.result.cache

# Yarn
/.yarn/*
!/.yarn/patches
!/.yarn/plugins
!/.yarn/releases
!/.yarn/sdks
!/.yarn/versions
# Yarn (legacy)
yarn.lock
.yarn/
.pnp.*

# pnpm
.pnpm-store/
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1 @@
yarn commitlint --edit $1
pnpm commitlint --edit $1
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
yarn cs-fix && yarn test
pnpm cs-fix && pnpm test
2 changes: 1 addition & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"publish": false
},
"hooks": {
"after:bump": "yarn run build && git add -A"
"after:bump": "pnpm run build && git add -A"
},
"plugins": {
"@release-it/bumper": {
Expand Down
1 change: 0 additions & 1 deletion .yarnrc.yml

This file was deleted.

10 changes: 5 additions & 5 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ composer cs-fix
### SDK Generation Commands (requires Node.js)
```bash
# Install build dependencies
yarn install
pnpm install

# Generate SDK from remote OpenAPI spec
yarn build
pnpm run build

# Generate SDK from local OpenAPI spec
yarn build:local
pnpm run build:local

# Create a new release
yarn release
pnpm release
```

## Architecture
Expand Down Expand Up @@ -96,7 +96,7 @@ This is an OpenAPI-driven PHP SDK for the MONEI payment platform. The codebase f
### Code Generation Workflow

1. OpenAPI spec defines the API contract
2. `yarn build` generates base SDK code
2. `pnpm run build` generates base SDK code
3. Post-build scripts apply formatting and run tests
4. Custom code preserved in MoneiClient.php

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -565,13 +565,13 @@ The SDK is built using OpenAPI Generator. To build the SDK from the OpenAPI spec

```bash
# Install dependencies
yarn install
pnpm install

# Generate SDK from remote OpenAPI spec
yarn build
pnpm run build

# Generate SDK from local OpenAPI spec
yarn build:local
pnpm run build:local
```

## Tests
Expand Down
16 changes: 12 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"scripts": {
"generate": "openapi-generator-cli generate --generator-key monei-php",
"generate:local": "openapi-generator-cli generate --generator-key monei-php-local",
"build": "yarn run generate && yarn run scope && yarn run cs-fix",
"build:local": "yarn run generate:local && yarn run scope && yarn run cs-fix",
"build": "pnpm run generate && pnpm run scope && pnpm run cs-fix",
"build:local": "pnpm run generate:local && pnpm run scope && pnpm run cs-fix",
"release": "release-it",
"cs-fix": "composer cs-fix",
"test": "composer test",
Expand All @@ -20,11 +20,19 @@
"devDependencies": {
"@commitlint/cli": "^20.1.0",
"@commitlint/config-conventional": "^20.0.0",
"@openapitools/openapi-generator-cli": "2.25.2",
"@openapitools/openapi-generator-cli": "2.31.0",
"@release-it/bumper": "^7.0.5",
"@release-it/conventional-changelog": "10.0.1",
"husky": "^9.1.7",
"release-it": "^19.0.6"
},
"packageManager": "yarn@4.12.0"
"packageManager": "pnpm@10.33.0",
"pnpm": {
"onlyBuiltDependencies": [
"@openapitools/openapi-generator-cli"
],
"ignoredBuiltDependencies": [
"@nestjs/core"
]
}
}
Loading