-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpackage.json
59 lines (59 loc) · 1.64 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
{
"name": "@cyclonedx/cyclonedx-library",
"version": "0.0.1-alpha",
"description": "Core functionality of CDX for JavaScript (node or web-browser)",
"repository": {
"type": "git",
"url": "https://github.com/CycloneDX/cyclonedx-javascript-library"
},
"bugs": {
"url": "https://github.com/CycloneDX/cyclonedx-javascript-library/issues"
},
"license": "Apache-2.0",
"author": "Jan Kowalleck",
"contributors": [
{
"name": "Jan Kowalleck"
}
],
"type": "commonjs",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"packageurl-js": "^0.0.6"
},
"devDependencies": {
"@types/node": "^17.0.30",
"deepmerge": "4.2.2",
"mocha": "9.2.2",
"ts-loader": "9.3.0",
"ts-standard": "^11.0.0",
"typescript": "4.6.4",
"webpack": "5.72.0",
"webpack-cli": "4.9.2"
},
"browser": "dist.web/lib.js",
"main": "dist.node/index.js",
"types": "src/index.ts",
"directories": {
"lib": "dist.node",
"doc": "docs",
"example": "examples",
"test": "test"
},
"scripts": {
"prepublish": "npm run build",
"lint": "tsc --noEmit",
"build": "npm run build:web && npm run build:node",
"prebuild:node": "node -r fs -e 'fs.rmSync(\"dist.node\",{recursive:true,force:true})'",
"build:node": "tsc --build",
"prebuild:web": "node -r fs -e 'fs.rmSync(\"dist.web\",{recursive:true,force:true})'",
"build:web": "webpack",
"cs-fix": "ts-standard --fix",
"test": " npm run test:standard && npm run test:web && npm run test:node",
"test:node": "mocha",
"test:web": "node -e 'console.log(\"todo: write web test\")'",
"test:standard": "ts-standard"
}
}