32 lines
877 B
JSON
32 lines
877 B
JSON
|
|
{
|
||
|
|
"name": "@customer-portal/api-client",
|
||
|
|
"version": "0.1.0",
|
||
|
|
"private": true,
|
||
|
|
"main": "dist/index.js",
|
||
|
|
"types": "dist/index.d.ts",
|
||
|
|
"exports": {
|
||
|
|
".": {
|
||
|
|
"types": "./dist/index.d.ts",
|
||
|
|
"default": "./dist/index.js"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"files": [
|
||
|
|
"dist"
|
||
|
|
],
|
||
|
|
"scripts": {
|
||
|
|
"build": "tsc -p tsconfig.json",
|
||
|
|
"clean": "rm -rf dist src/__generated__",
|
||
|
|
"codegen": "pnpm run gen:types && pnpm run gen:client",
|
||
|
|
"gen:types": "openapi-typescript ../../apps/bff/openapi/openapi.json -o src/__generated__/types.ts",
|
||
|
|
"gen:client": "openapi-fetch --input ../../apps/bff/openapi/openapi.json --output src/__generated__/client.ts",
|
||
|
|
"type-check": "tsc --noEmit",
|
||
|
|
"lint": "eslint .",
|
||
|
|
"lint:fix": "eslint . --fix"
|
||
|
|
},
|
||
|
|
"devDependencies": {
|
||
|
|
"openapi-fetch": "^0.13.8",
|
||
|
|
"openapi-typescript": "^7.6.1",
|
||
|
|
"typescript": "^5.9.2"
|
||
|
|
}
|
||
|
|
}
|