-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
108 lines (108 loc) · 3.17 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"name": "@RHEcosystemAppEng/exhort-javascript-api",
"version": "0.1.1-ea.50",
"description": "Code-Ready Dependency Analytics JavaScript API.",
"license": "Apache-2.0",
"homepage": "https://github.com/RHEcosystemAppEng/exhort-javascript-api#README.md",
"bugs": "https://github.com/RHEcosystemAppEng/exhort-javascript-api/issues",
"repository": "github:RHEcosystemAppEng/exhort-javascript-api",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"keywords": [
"analysis",
"codeready",
"exhort",
"secure",
"supply-chain",
"vulnerability"
],
"engines": {
"node": ">= 18.0.0",
"npm": ">= 9.0.0"
},
"type": "module",
"bin": "dist/src/cli.js",
"main": "dist/src/index.js",
"module": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"files": [
"!*",
"dist/**/*",
"config/**/*"
],
"scripts": {
"lint": "eslint src test --ext js",
"lint:fix": "eslint src test --ext js --fix",
"test": "c8 npm run tests",
"localtest": "EXHORT_PIP3_PATH=/home/zgrinber/python3.9/bin/pip3 EXHORT_PYTHON3_PATH=/home/zgrinber/python3.9/bin/python3 c8 npm run tests",
"postlocaltest": " git status | grep src/providers/ | grep rewire | xargs -i git clean -f {}",
"tests": "mocha --loader=esmock --grep \"Integration Tests|.*analysis module.*\" --invert",
"tests:rep": "mocha --reporter-option maxDiffSize=0 --reporter json > unit-tests-result.json",
"integration-tests": "mocha --grep \"Integration Tests\"",
"precompile": "rm -rf dist",
"compile": "tsc -p tsconfig.json",
"pregen:backend": "rm -rf generated",
"gen:backend": "openapi-generator-cli generate -i https://raw.githubusercontent.com/RHEcosystemAppEng/exhort-api-spec/v1.0.3/api/v4/openapi.yaml -g typescript --global-property models --model-package backend -o generated",
"postgen:backend": "cp test/it/tsconfig.json generated/backend/tsconfig.json ; find generated/backend -type f -exec sed -i \"/^import { HttpFile } from '..\\/http\\/http'/d\" {} + ; npm run compileintegration ",
"compileintegration": "bash -c \"cd generated/backend ; tsc -p tsconfig.json ; cd ../..\""
},
"dependencies": {
"@babel/core": "^7.23.2",
"@cyclonedx/cyclonedx-library": "~1.13.3",
"fast-toml": "^0.5.4",
"fast-xml-parser": "^4.2.4",
"help": "^3.0.2",
"packageurl-js": "^1.0.2",
"yargs": "^17.7.2",
"node-fetch": "^2.6.7"
},
"devDependencies": {
"@babel/core": "^7.23.2",
"@openapitools/openapi-generator-cli": "^2.6.0",
"@types/node": "^20.3.1",
"babel-plugin-rewire": "^1.2.0",
"c8": "^8.0.0",
"chai": "^4.3.7",
"eslint": "^8.42.0",
"eslint-plugin-editorconfig": "^4.0.3",
"esmock": "^2.6.2",
"mocha": "^10.2.0",
"msw": "^1.3.2",
"sinon": "^15.1.2",
"sinon-chai": "^3.7.0",
"typescript": "^5.1.3"
},
"mocha": {
"check-leaks": false,
"color": true,
"extension": "js",
"fail-zero": true,
"recursive": true,
"ui": "tdd"
},
"c8": {
"all": true,
"check-coverage": true,
"clean": true,
"include": [
"src/**"
],
"exclude": [
"src/cli.js",
"src/index.js",
"src/analysis.js",
"src/providers/java_maven.js",
"src/providers/javascript_npm.js"
],
"lines": 82,
"reporter": [
"html",
"json",
"text"
]
},
"eslintIgnore": [
"index.js"
]
}