generated from joyqi/typescript-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
50 lines (50 loc) · 1.35 KB
/
package.json
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
{
"name": "node-openai",
"keywords": [
"openai",
"chatgpt",
"api",
"sdk"
],
"author": "joyqi",
"license": "",
"description": "An elegant NodeJs library for openai api.",
"repository": {
"type": "git",
"url": "git+https://github.com/joyqi/node-openai.git"
},
"homepage": "https://github.com/joyqi/node-openai#readme",
"bugs": {
"url": "https://github.com/joyqi/node-openai/issues"
},
"version": "latest",
"exports": {
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/mjs/index.js",
"require": "./lib/cjs/index.js"
},
"./package.json": "./package.json"
},
"main": "lib/cjs/index.js",
"module": "lib/mjs/index.js",
"types": "lib/types/index.d.ts",
"scripts": {
"clear": "rm -rf ./lib",
"patch:esm-js": "npx tsc-esm-fix --tsconfig=tsconfig.mjs.json",
"patch:esm-type": "echo '{ \"type\": \"module\" }' >> lib/mjs/package.json",
"build:esm": "npx tsc -p tsconfig.mjs.json && npm run patch:esm-js && npm run patch:esm-type",
"build:cjs": "npx tsc",
"build": "npm run clear && npm run build:esm && npm run build:cjs",
"test": "npx mocha"
},
"devDependencies": {
"@types/mocha": "latest",
"@types/node": "latest",
"assert": "latest",
"mocha": "latest",
"ts-node": "latest",
"tsc-esm-fix": "latest",
"typescript": "latest"
}
}