Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
102 lines (102 loc) · 2.7 KB
/
Copy pathpackage.json
File metadata and controls
102 lines (102 loc) · 2.7 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
{
"name": "@hackmd/api",
"version": "2.8.0",
"description": "HackMD Node.js API Client",
"repository": {
"type": "git",
"url": "https://github.com/hackmdio/api-client.git",
"directory": "nodejs"
},
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./raw": {
"import": "./dist/raw.js",
"require": "./dist/raw.cjs",
"types": "./dist/raw.d.ts"
},
"./dist": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./dist/*": "./dist/*"
},
"scripts": {
"clean": "rimraf dist",
"build": "pnpm run clean && rollup -c && pnpm check:node-types",
"codegen": "openapi-ts",
"check:generated": "node scripts/check-generated.mjs",
"check:node-types": "tsc -p tests/types/tsconfig.json",
"docs:build": "typedoc",
"docs:dev": "pnpm docs:build && serve .docs-dist --listen tcp://127.0.0.1:3000",
"typecheck": "tsc --noEmit -p tsconfig.json",
"spec:pull": "curl -fsSL https://api.hackmd.io/v1/docs/swagger.json -o spec/hackmd-openapi.json",
"watch": "pnpm run clean && rollup -c -w",
"prepublishOnly": "pnpm run build",
"lint": "eslint src --fix --ext .ts",
"test": "jest",
"test:e2e": "jest --config jest.e2e.config.ts"
},
"keywords": [
"HackMD",
"API Client"
],
"files": [
"dist/*",
"README.md",
"LICENSE"
],
"engines": {
"node": ">=22"
},
"author": {
"name": "HackMD",
"email": "support@hackmd.io",
"url": "https://hackmd.io"
},
"license": "MIT",
"packageManager": "pnpm@10.33.2",
"devDependencies": {
"@faker-js/faker": "^10.5.0",
"@hey-api/openapi-ts": "0.98.2",
"@rollup/plugin-commonjs": "^28.0.3",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-typescript": "^12.1.2",
"@types/eslint": "^8.21.0",
"@types/jest": "^29.4.0",
"@types/node": "^22.15.30",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"dotenv": "^16.0.3",
"eslint": "^8.57.1",
"jest": "^29.4.2",
"msw": "^2.7.3",
"rimraf": "^6.1.4",
"rollup": "^4.41.1",
"serve": "14.2.6",
"ts-jest": "^29.4.12",
"ts-node": "^8.8.2",
"typedoc": "0.28.20",
"typescript": "^5.9.2"
},
"dependencies": {
"axios": "^1.20.0",
"tslib": "^1.14.1"
},
"pnpm": {
"overrides": {
"compression@1.8.1": "1.8.2",
"js-yaml@4.1.1": "4.3.2",
"cross-spawn@>=7.0.0 <7.1.0": "^7.1.0",
"minimatch@>=7.0.0 <10.0.0": "^11.0.8"
}
}
}