Skip to content

Commit

Permalink
Export swagger.json file on npm package.
Browse files Browse the repository at this point in the history
When publishing SDK package, it would better to export `swagger.json` file, because some user requested me that he's using like that:

```typescript
import swagger from "toss-payments-server-api/swagger.json"
```
  • Loading branch information
samchon committed Sep 22, 2023
1 parent 4e0d622 commit 68dc1dd
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 42 deletions.
4 changes: 2 additions & 2 deletions packages/fake-iamport-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fake-iamport-server",
"version": "4.0.0",
"version": "4.0.1",
"description": "Fake iamport server for testing",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -66,7 +66,7 @@
"source-map-support": "^0.5.19",
"tstl": "^2.5.13",
"typescript-transform-paths": "^3.4.6",
"typia": "^5.0.4",
"typia": "^5.0.5",
"uuid": "^9.0.0"
},
"keywords": [
Expand Down
8 changes: 4 additions & 4 deletions packages/fake-toss-payments-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fake-toss-payments-server",
"version": "4.0.0",
"version": "4.0.1",
"description": "Fake toss-payments server for testing",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -40,7 +40,7 @@
"homepage": "https://github.com/samchon/fake-toss-payments-server",
"devDependencies": {
"@nestia/e2e": "^0.3.6",
"@nestia/sdk": "^2.0.4",
"@nestia/sdk": "^2.0.5",
"@trivago/prettier-plugin-sort-imports": "^4.0.0",
"@types/atob": "^2.1.2",
"@types/btoa": "^1.2.3",
Expand All @@ -62,13 +62,13 @@
"typescript-transform-paths": "^3.4.6"
},
"dependencies": {
"@nestia/core": "^2.0.4",
"@nestia/core": "^2.0.5",
"atob": "^2.1.2",
"btoa": "^1.2.1",
"serialize-error": "^4.1.0",
"source-map-support": "^0.5.19",
"tstl": "^2.5.13",
"typia": "^5.0.4",
"typia": "^5.0.5",
"uuid": "^9.0.0"
},
"keywords": [
Expand Down
7 changes: 4 additions & 3 deletions packages/iamport-server-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iamport-server-api",
"version": "4.0.0",
"version": "4.0.1",
"description": "API for Iamport Server",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand All @@ -24,6 +24,7 @@
"files": [
"lib",
"package.json",
"swagger.json",
"README.md"
],
"devDependencies": {
Expand All @@ -33,7 +34,7 @@
"typescript": "^5.2.2"
},
"dependencies": {
"@nestia/fetcher": "^2.0.4",
"typia": "^5.0.4"
"@nestia/fetcher": "^2.0.5",
"typia": "^5.0.5"
}
}
16 changes: 8 additions & 8 deletions packages/iamport-server-api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"info": {
"title": "Iamport API",
"description": "Built by [fake-iamport-server](https://github.com/samchon/payments/tree/master/packages/fake-iamport-server) with [nestia](https://github.com/samchon/nestia)",
"version": "4.0.0",
"version": "4.0.1",
"license": {
"name": "MIT"
}
Expand Down Expand Up @@ -80,7 +80,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportCertification.ts",
"textSpan": {
"start": 437,
"start": 455,
"length": 16
}
}
Expand Down Expand Up @@ -181,7 +181,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportCertification.ts",
"textSpan": {
"start": 437,
"start": 455,
"length": 16
}
}
Expand Down Expand Up @@ -382,7 +382,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportCertification.ts",
"textSpan": {
"start": 437,
"start": 455,
"length": 16
}
}
Expand Down Expand Up @@ -647,7 +647,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts",
"textSpan": {
"start": 2219,
"start": 2306,
"length": 16
}
}
Expand Down Expand Up @@ -853,7 +853,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts",
"textSpan": {
"start": 2219,
"start": 2306,
"length": 16
}
}
Expand Down Expand Up @@ -966,7 +966,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts",
"textSpan": {
"start": 2219,
"start": 2306,
"length": 16
}
}
Expand Down Expand Up @@ -1084,7 +1084,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts",
"textSpan": {
"start": 2219,
"start": 2306,
"length": 16
}
}
Expand Down
11 changes: 6 additions & 5 deletions packages/payment-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@samchon/payment-api",
"version": "4.0.0",
"version": "4.0.1",
"description": "API for Payment Backend",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand All @@ -24,6 +24,7 @@
"files": [
"lib",
"package.json",
"swagger.json",
"README.md"
],
"devDependencies": {
Expand All @@ -33,9 +34,9 @@
"typescript": "^5.2.2"
},
"dependencies": {
"@nestia/fetcher": "^2.0.4",
"iamport-server-api": "^4.0.0",
"toss-payments-server-api": "^4.0.0",
"typia": "^5.0.4"
"@nestia/fetcher": "^2.0.5",
"iamport-server-api": "^4.0.1",
"toss-payments-server-api": "^4.0.1",
"typia": "^5.0.5"
}
}
2 changes: 1 addition & 1 deletion packages/payment-api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}
],
"info": {
"version": "4.0.0",
"version": "4.0.1",
"title": "@samchon/payment-backend",
"description": "Payment Backend Server",
"license": {
Expand Down
16 changes: 8 additions & 8 deletions packages/payment-backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@samchon/payment-backend",
"version": "4.0.0",
"version": "4.0.1",
"description": "Payment Backend Server",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -52,7 +52,7 @@
},
"homepage": "https://github.com/samchon/payments",
"devDependencies": {
"@nestia/sdk": "^2.0.4",
"@nestia/sdk": "^2.0.5",
"@trivago/prettier-plugin-sort-imports": "^4.0.0",
"@types/atob": "^2.1.2",
"@types/bcryptjs": "^2.4.4",
Expand All @@ -67,34 +67,34 @@
"@typescript-eslint/parser": "^5.26.0",
"cli": "^1.0.1",
"copyfiles": "^2.4.1",
"iamport-server-api": "^4.0.0",
"iamport-server-api": "^4.0.1",
"nestia": "^4.5.0",
"pm2": "^4.5.6",
"prettier": "^2.6.2",
"prisma-markdown": "^1.0.0",
"rimraf": "^3.0.2",
"sloc": "^0.2.1",
"toss-payments-server-api": "^4.0.0",
"toss-payments-server-api": "^4.0.1",
"ts-node": "^10.9.1",
"ts-patch": "^3.0.2",
"typescript": "^5.2.2",
"typescript-transform-paths": "^3.4.6"
},
"dependencies": {
"@nestia/core": "^2.0.4",
"@nestia/core": "^2.0.5",
"@prisma/client": "^5.3.1",
"bcryptjs": "^2.4.3",
"dotenv": "^16.3.1",
"dotenv-expand": "^10.0.0",
"fake-iamport-server": "^4.0.0",
"fake-toss-payments-server": "^4.0.0",
"fake-iamport-server": "^4.0.1",
"fake-toss-payments-server": "^4.0.1",
"git-last-commit": "^1.0.0",
"inquirer": "^8.2.5",
"mutex-server": "^0.3.1",
"prisma": "^5.3.1",
"source-map-support": "^0.5.19",
"tstl": "^2.5.13",
"typia": "^5.0.4"
"typia": "^5.0.5"
},
"files": [
"lib",
Expand Down
7 changes: 4 additions & 3 deletions packages/toss-payments-server-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "toss-payments-server-api",
"version": "4.0.0",
"version": "4.0.1",
"description": "API for Toss Payments Server",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand All @@ -24,6 +24,7 @@
"files": [
"lib",
"package.json",
"swagger.json",
"README.md"
],
"devDependencies": {
Expand All @@ -33,7 +34,7 @@
"typescript": "^5.2.2"
},
"dependencies": {
"@nestia/fetcher": "^2.0.4",
"typia": "^5.0.4"
"@nestia/fetcher": "^2.0.5",
"typia": "^5.0.5"
}
}
16 changes: 8 additions & 8 deletions packages/toss-payments-server-api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"info": {
"title": "Toss Payments API",
"description": "Built by [fake-toss-payments-server](https://github.com/samchon/payments/tree/master/packages/toss-payments-server-api) with [nestia](https://github.com/samchon/nestia)",
"version": "4.0.0",
"version": "4.0.1",
"license": {
"name": "MIT"
}
Expand Down Expand Up @@ -178,7 +178,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossBilling.ts",
"textSpan": {
"start": 435,
"start": 457,
"length": 19
}
}
Expand Down Expand Up @@ -310,7 +310,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossBilling.ts",
"textSpan": {
"start": 435,
"start": 457,
"length": 19
}
}
Expand Down Expand Up @@ -528,7 +528,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossCashReceipt.ts",
"textSpan": {
"start": 153,
"start": 164,
"length": 19
}
}
Expand Down Expand Up @@ -704,7 +704,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts",
"textSpan": {
"start": 2305,
"start": 2399,
"length": 19
}
}
Expand Down Expand Up @@ -802,7 +802,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts",
"textSpan": {
"start": 2305,
"start": 2399,
"length": 19
}
}
Expand Down Expand Up @@ -906,7 +906,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts",
"textSpan": {
"start": 2305,
"start": 2399,
"length": 19
}
}
Expand Down Expand Up @@ -1124,7 +1124,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts",
"textSpan": {
"start": 2305,
"start": 2399,
"length": 19
}
}
Expand Down

0 comments on commit 68dc1dd

Please sign in to comment.