-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathpackage.json
69 lines (69 loc) · 2.7 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
{
"name": "openfoodfacts-nodejs",
"author": "openfoodfacts",
"license": "Apache-2.0",
"version": "2.0.0",
"description": "Open Food Facts API NodeJS Wrapper",
"keywords": [
"OFF",
"OpenFoodFacts",
"NodeJS",
"Wrapper"
],
"homepage": "https://github.com/openfoodfacts/openfoodfacts-nodejs#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/openfoodfacts/openfoodfacts-nodejs.git"
},
"bugs": {
"url": "https://github.com/openfoodfacts/openfoodfacts-nodejs/issues"
},
"exports": [
"./dist/main.js"
],
"types": "dist/main.d.ts",
"scripts": {
"prepack": "yarn run build",
"build": "tsc -p tsconfig.build.json",
"build:docs": "typedoc src/main.ts",
"commitmsg": "commitlint -quiet=0 --extends=@commitlint/config-conventional -e",
"api": "yarn run api:folksonomy && yarn run api:prices && yarn run api:robotoff && yarn run api:server:v2",
"api:server:v2": "openapi-typescript 'https://raw.githubusercontent.com/openfoodfacts/openfoodfacts-server/main/docs/api/ref/api.yml' --output src/schemas/server/v2.ts",
"api:server:v3": "openapi-typescript 'https://raw.githubusercontent.com/openfoodfacts/openfoodfacts-server/main/docs/api/ref/api-v3.yml' --output src/schemas/server/v3.ts",
"api:prices": "openapi-typescript https://prices.openfoodfacts.net/api/openapi.json --output src/schemas/prices.ts",
"api:robotoff": "openapi-typescript https://raw.githubusercontent.com/openfoodfacts/robotoff/main/doc/references/api.yml --output src/schemas/robotoff.ts",
"api:folksonomy": "openapi-typescript https://api.folksonomy.openfoodfacts.org/openapi.json --output src/schemas/folksonomy.ts",
"api:nutripatrol": "openapi-typescript https://nutripatrol.openfoodfacts.org/api/openapi.json --output src/schemas/nutripatrol.ts",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"format": "prettier --check .",
"format:fix": "prettier --write .",
"test": "jest",
"test:coverage": "jest --coverage"
},
"dependencies": {
"openapi-fetch": "^0.13.0"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.13.0",
"@jest/globals": "^29.7.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.8.5",
"@typescript-eslint/eslint-plugin": "^8.12.2",
"@typescript-eslint/parser": "^8.12.2",
"eslint": "^9.13.0",
"globals": "^15.11.0",
"jest": "^29.7.0",
"openapi-typescript": "^7.4.3",
"prettier": "^3.1.1",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typedoc": "^0.27.2",
"typescript": "^5.6.3",
"typescript-eslint": "^8.12.2"
},
"packageManager": "[email protected]"
}