Skip to content

Commit 3f733df

Browse files
feat: begin the restructure of the repo for better dev exp
1 parent f2a0824 commit 3f733df

789 files changed

Lines changed: 41763 additions & 380 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"version": "1.0.0",
44
"description": "The OpenAPI specification for the Paystack API",
55
"author": "Damilola Odujoko",
6-
"main": "index.js",
6+
"main": "src/index.js",
7+
"type": "module",
78
"scripts": {
89
"build": "pnpm build-main && pnpm build-wallet && pnpm build-membership && pnpm build-marketplace && pnpm build-betting && pnpm build-lending && pnpm build-savings",
910
"build-main": "swagger-cli bundle main/paystack.yaml --outfile dist/paystack.yaml --type yaml",
@@ -15,7 +16,11 @@
1516
"build-savings": "swagger-cli bundle use_cases/savings.yaml --outfile dist/savings.yaml --type yaml",
1617
"lint": "pnpm lint-main && pnpm lint-sdk",
1718
"lint-main": "spectral lint dist/paystack.yaml",
18-
"lint-sdk": "spectral lint ./sdk/paystack.yaml"
19+
"lint-sdk": "spectral lint ./sdk/paystack.yaml",
20+
"split:main": "redocly split ./src/assets/base/paystack.yaml --outDir=./src/assets/openapi",
21+
"bundle:main": "redocly bundle ./src/assets/openapi/openapi.yaml --output temp/paystack.yaml --remove-unused-components",
22+
"start": "nodemon src/index.js",
23+
"dev": "pnpm bundle:main && pnpm start"
1924
},
2025
"repository": {
2126
"type": "git",
@@ -33,7 +38,11 @@
3338
"devDependencies": {
3439
"@apidevtools/swagger-cli": "^4.0.4",
3540
"@quobix/vacuum": "^0.10.1",
36-
"@redocly/cli": "^1.22.1",
37-
"@stoplight/spectral-cli": "^6.5.1"
41+
"@redocly/cli": "^2.0.2",
42+
"@stoplight/spectral-cli": "^6.5.1",
43+
"express": "^5.1.0",
44+
"nodemon": "^3.1.10",
45+
"open": "^10.2.0",
46+
"yaml": "^2.8.1"
3847
}
3948
}

pnpm-lock.yaml

Lines changed: 1371 additions & 375 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17221,4 +17221,4 @@ components:
1722117221
content:
1722217222
application/json:
1722317223
schema:
17224-
$ref: "#/components/schemas/DirectDebitActivationChargeResponse"
17224+
$ref: "#/components/schemas/DirectDebitActivationChargeResponse"
File renamed without changes.
File renamed without changes.

main/examples/dedicated-virtual-account/create.yaml renamed to src/assets/main/examples/dedicated-virtual-account/create.yaml

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)