-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
90 lines (90 loc) · 3.19 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
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
{
"name": "magda-embedding-api",
"type": "module",
"version": "1.0.0",
"description": "An OpenAI embeddings API compatible microservice for Magda.",
"main": "app.ts",
"directories": {
"test": "test"
},
"repository": "[email protected]:magda-io/magda-embedding-api.git",
"author": "Jacky Jiang <[email protected]>",
"license": "Apache-2.0",
"private": true,
"engines": {
"node": ">=18.19.0"
},
"exports": {
".": "./dist/index.js",
"./package.json": "./package.json"
},
"scripts": {
"prebuild": "rimraf dist",
"build": "tsc",
"watch": "tsc -w",
"start": "npm run build && fastify start -l info dist/app.js",
"dev": "npm run build && concurrently -k -p \"[{name}]\" -n \"TypeScript,App\" -c \"yellow.bold,cyan.bold\" \"npm:watch\" \"npm:dev:start\"",
"dev:start": "fastify start --ignore-watch=.ts$ -w -l info -P dist/app.js",
"docker-build-local": "create-docker-context-for-node-component --build --push --tag auto --repository example.com",
"docker-build-prod": "create-docker-context-for-node-component --build --push --tag auto",
"retag-and-push": "retag-and-push",
"test": "tap run --show-full-coverage --allow-incomplete-coverage",
"lint": "eslint ./src && prettier --check ./src",
"helm-docs": "docker run --rm -v \"$(pwd):/helm-docs\" -u $(id -u) jnorwood/helm-docs:v1.13.1 -t ./README.md.gotmpl -o ../../README.md",
"helm-lint": "helm template deploy/magda-embedding-api -f deploy/test-deploy.yaml 1>/dev/null",
"update-all-charts": "helm dep up ./deploy/magda-embedding-api",
"add-all-chart-version-changes": "git ls-files -m | grep Chart.yaml | xargs git add && git ls-files -m | grep Chart.lock | xargs git add",
"add-all-helm-docs-changes": "yarn helm-docs && git ls-files -m | grep -i readme.md | xargs git add",
"version": "yarn update-helm-chart-version && yarn update-all-charts && yarn add-all-chart-version-changes && yarn add-all-helm-docs-changes"
},
"dependencies": {
"@fastify/autoload": "^5.10.0",
"@fastify/sensible": "^5.6.0",
"@fastify/type-provider-typebox": "^4.0.0",
"@sinclair/typebox": "^0.32.34",
"@xenova/transformers": "^2.17.2",
"fastify": "^4.28.1",
"fastify-cli": "^6.2.1",
"fastify-plugin": "^4.5.1",
"fs-extra": "^11.2.0",
"onnxruntime-node": "^1.14.0"
},
"devDependencies": {
"@langchain/openai": "^0.2.1",
"@magda/ci-utils": "^1.0.5",
"@magda/docker-utils": "^4.2.1",
"@types/fs-extra": "^11.0.4",
"@types/node": "^18.19.3",
"concurrently": "^8.2.2",
"eslint": "^9.6.0",
"fastify-tsconfig": "^2.0.0",
"neostandard": "^0.11.0",
"pino-pretty": "^11.2.1",
"prettier": "^3.3.2",
"pretty-quick": "^4.0.0",
"rimraf": "^5.0.7",
"simple-git-hooks": "^2.11.1",
"tap": "^20.0.3",
"typescript": "^5.5.3"
},
"resolutions": {
"strip-ansi": "^6.0.1"
},
"tap": {
"tsconfig": "./test/tsconfig.json",
"exclude": [
"test/helper.ts"
],
"timeout": 120,
"jobs": 1
},
"config": {
"docker": {
"name": "magda-embedding-api",
"include": "node_modules dist Dockerfile package.json"
}
},
"simple-git-hooks": {
"pre-commit": "npx pretty-quick --staged"
}
}