-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
115 lines (115 loc) · 5.62 KB
/
package.json
File metadata and controls
115 lines (115 loc) · 5.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"name": "librus-sdk",
"version": "0.7.1",
"description": "TypeScript SDK and CLI for Librus family portal and Gateway API 2.0 flows.",
"author": "Andrey Koltsov",
"repository": {
"type": "git",
"url": "git+https://github.com/andrewkoltsov/librus-sdk.git"
},
"homepage": "https://github.com/andrewkoltsov/librus-sdk#readme",
"bugs": {
"url": "https://github.com/andrewkoltsov/librus-sdk/issues"
},
"type": "module",
"main": "dist/sdk/index.js",
"types": "dist/sdk/index.d.ts",
"bin": {
"librus": "dist/cli/deprecatedMain.js",
"librus-sdk": "dist/cli/main.js"
},
"exports": {
".": {
"types": "./dist/sdk/index.d.ts",
"import": "./dist/sdk/index.js"
},
"./openapi.json": "./openapi/api_v3_openapi.json",
"./openapi/api_v3_openapi.json": "./openapi/api_v3_openapi.json",
"./openapi/gateway_api_20_openapi.json": "./openapi/gateway_api_20_openapi.json",
"./openapi/wiadomosci_librus_pl_api_openapi.json": "./openapi/wiadomosci_librus_pl_api_openapi.json"
},
"engines": {
"node": ">=22.12.0"
},
"scripts": {
"build": "tsc -p tsconfig.json",
"cli": "tsx src/cli/main.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"openapi:check": "tsx ./scripts/generate-openapi.ts --check",
"openapi:generate": "tsx ./scripts/generate-openapi.ts",
"version": "npm run openapi:generate",
"format": "prettier --write .",
"format:check": "prettier --check .",
"pack:check": "node ./scripts/pack-check.mjs",
"report:integration": "npm run build && node --env-file=.env.integration.local test/integration/report-all.mjs",
"report:integration:cli": "npm run build && node --env-file=.env.integration.local test/integration/report-cli.mjs",
"report:integration:sdk": "npm run build && node --env-file=.env.integration.local test/integration/report-sdk.mjs",
"report:integration:gateway-api-20": "npm run build && LIBRUS_API_BACKEND=gateway_api_20 node --env-file=.env.integration.gateway-api-20.local test/integration/report-all.mjs",
"report:integration:gateway-api-20:cli": "npm run build && LIBRUS_API_BACKEND=gateway_api_20 node --env-file=.env.integration.gateway-api-20.local test/integration/report-cli.mjs",
"report:integration:gateway-api-20:sdk": "npm run build && LIBRUS_API_BACKEND=gateway_api_20 node --env-file=.env.integration.gateway-api-20.local test/integration/report-sdk.mjs",
"report:integration:synergia": "npm run build && LIBRUS_API_BACKEND=gateway_api_20 node --env-file=.env.integration.synergia.local test/integration/report-all.mjs",
"report:integration:synergia:cli": "npm run build && LIBRUS_API_BACKEND=gateway_api_20 node --env-file=.env.integration.synergia.local test/integration/report-cli.mjs",
"report:integration:synergia:sdk": "npm run build && LIBRUS_API_BACKEND=gateway_api_20 node --env-file=.env.integration.synergia.local test/integration/report-sdk.mjs",
"validate": "npm run lint && npm run format:check && npm run build && npm run test:coverage && npm run pack:check",
"prepublishOnly": "npm run validate",
"prepare": "husky",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:integration": "npm run build && node --env-file=.env.integration.local --test test/integration/*.integration.test.mjs",
"test:integration:cli": "npm run build && node --env-file=.env.integration.local --test test/integration/cli.integration.test.mjs",
"test:integration:sdk": "npm run build && node --env-file=.env.integration.local --test test/integration/sdk.integration.test.mjs",
"test:integration:gateway-api-20": "npm run build && LIBRUS_API_BACKEND=gateway_api_20 node --env-file=.env.integration.gateway-api-20.local --test test/integration/*.integration.test.mjs",
"test:integration:gateway-api-20:cli": "npm run build && LIBRUS_API_BACKEND=gateway_api_20 node --env-file=.env.integration.gateway-api-20.local --test test/integration/cli.integration.test.mjs",
"test:integration:gateway-api-20:sdk": "npm run build && LIBRUS_API_BACKEND=gateway_api_20 node --env-file=.env.integration.gateway-api-20.local --test test/integration/sdk.integration.test.mjs",
"test:integration:synergia": "npm run build && LIBRUS_API_BACKEND=gateway_api_20 node --env-file=.env.integration.synergia.local --test test/integration/*.integration.test.mjs",
"test:integration:synergia:cli": "npm run build && LIBRUS_API_BACKEND=gateway_api_20 node --env-file=.env.integration.synergia.local --test test/integration/cli.integration.test.mjs",
"test:integration:synergia:sdk": "npm run build && LIBRUS_API_BACKEND=gateway_api_20 node --env-file=.env.integration.synergia.local --test test/integration/sdk.integration.test.mjs"
},
"files": [
"dist",
"openapi",
"README.md",
"LICENSE"
],
"keywords": [
"librus",
"sdk",
"cli",
"typescript"
],
"license": "MIT",
"dependencies": {
"@valibot/to-json-schema": "^1.6.0",
"commander": "^15.0.0",
"fetch-cookie": "^3.1.0",
"parse5": "^8.0.0",
"tough-cookie": "^6.0.1",
"valibot": "^1.3.1"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/node": "^25.6.0",
"@vitest/coverage-v8": "^4.1.2",
"eslint": "^10.1.0",
"eslint-config-prettier": "^10.1.8",
"fast-check": "^4.6.0",
"globals": "^17.4.0",
"husky": "^9.1.7",
"lint-staged": "^17.0.4",
"prettier": "^3.8.1",
"tsx": "^4.20.5",
"typescript": "^6.0.2",
"typescript-eslint": "^8.57.2",
"vitest": "^4.1.2"
},
"lint-staged": {
"*.{ts,mts,cts,js,mjs,cjs}": [
"eslint --fix",
"prettier --write"
],
"*.{json,md,yml,yaml}": [
"prettier --write"
]
}
}