-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
63 lines (63 loc) · 1.72 KB
/
Copy pathpackage.json
File metadata and controls
63 lines (63 loc) · 1.72 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
{
"name": "hiapi",
"version": "0.2.1",
"description": "Zero-dependency Node.js client for the HiAPI unified async task API (/v1/tasks).",
"keywords": [
"hiapi",
"ai",
"image-generation",
"video-generation",
"async-tasks",
"api-client"
],
"license": "MIT",
"homepage": "https://hiapi.ai",
"repository": {
"type": "git",
"url": "git+https://github.com/HiAPIAI/hiapi-node.git"
},
"bugs": {
"url": "https://github.com/HiAPIAI/hiapi-node/issues"
},
"author": "HiAPI <support@hiapi.ai>",
"type": "module",
"engines": {
"node": ">=18.17"
},
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
},
"./package.json": "./package.json"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"sideEffects": false,
"scripts": {
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json && node -e \"require('fs').writeFileSync('dist/cjs/package.json', JSON.stringify({type: 'commonjs'}) + '\\n')\"",
"pretest": "tsc -p tsconfig.test.json",
"test": "cd build-test/tests && node --expose-gc --test && cd ../.. && npm run smoke",
"smoke": "npm run build && node scripts/smoke-esm.mjs && node scripts/smoke-cjs.cjs && node scripts/smoke-types.mjs",
"prepack": "npm run build"
},
"devDependencies": {
"@types/node": "^22.10.0",
"semver": "^7.8.0",
"typescript": "^5.5.0"
}
}