|
2 | 2 | "name": "@cyclonedx/cyclonedx-library", |
3 | 3 | "version": "8.6.0", |
4 | 4 | "description": "Core functionality of CycloneDX for JavaScript (Node.js or WebBrowser).", |
5 | | - "license": "Apache-2.0", |
6 | 5 | "keywords": [ |
7 | 6 | "CycloneDX", |
8 | 7 | "models", |
|
26 | 25 | "dependency" |
27 | 26 | ], |
28 | 27 | "homepage": "https://github.com/CycloneDX/cyclonedx-javascript-library#readme", |
| 28 | + "bugs": { |
| 29 | + "url": "https://github.com/CycloneDX/cyclonedx-javascript-library/issues" |
| 30 | + }, |
29 | 31 | "repository": { |
30 | 32 | "type": "git", |
31 | 33 | "url": "git+https://github.com/CycloneDX/cyclonedx-javascript-library.git" |
32 | 34 | }, |
33 | | - "bugs": { |
34 | | - "url": "https://github.com/CycloneDX/cyclonedx-javascript-library/issues" |
35 | | - }, |
36 | 35 | "funding": [ |
37 | 36 | { |
38 | 37 | "type": "individual", |
39 | 38 | "url": "https://owasp.org/donate/?reponame=www-project-cyclonedx&title=OWASP+CycloneDX" |
40 | 39 | } |
41 | 40 | ], |
| 41 | + "license": "Apache-2.0", |
42 | 42 | "author": { |
43 | 43 | "name": "Jan Kowalleck", |
44 | 44 | "url": "https://github.com/jkowalleck" |
|
75 | 75 | "url": "https://github.com/AugustusKling" |
76 | 76 | } |
77 | 77 | ], |
| 78 | + "sideEffects": false, |
78 | 79 | "type": "commonjs", |
79 | | - "engines": { |
80 | | - "node": ">=20.18.0" |
81 | | - }, |
82 | | - "dependencies": { |
83 | | - "packageurl-js": "^2.0.1", |
84 | | - "spdx-expression-parse": "^3.0.1 || ^4" |
85 | | - }, |
86 | | - "optionalDependencies": { |
87 | | - "ajv": "^8.12.0", |
88 | | - "ajv-formats": "^3.0.1", |
89 | | - "ajv-formats-draft2019": "^1.6.1", |
90 | | - "libxmljs2": "^0.35||^0.37", |
91 | | - "xmlbuilder2": "^3.0.2" |
92 | | - }, |
93 | | - "devDependencies": { |
94 | | - "@types/mocha": "^10", |
95 | | - "@types/node": "ts5.7", |
96 | | - "@types/spdx-expression-parse": "^3", |
97 | | - "c8": "^10", |
98 | | - "deepmerge": "^4.2.2", |
99 | | - "fast-glob": "^3.3.1", |
100 | | - "memfs": "4.38.2", |
101 | | - "mocha": "11.7.2", |
102 | | - "npm-run-all2": "^8", |
103 | | - "rimraf": "^6", |
104 | | - "ts-loader": "9.5.4", |
105 | | - "typescript": "5.9.2", |
106 | | - "webpack": "5.101.3", |
107 | | - "webpack-cli": "6.0.1", |
108 | | - "webpack-node-externals": "3.0.0" |
109 | | - }, |
110 | | - "types": "./dist.d/index.node.d.ts", |
111 | | - "browser": "./dist.web/lib.js", |
112 | | - "main": "./dist.node/index.node.js", |
113 | 80 | "exports": { |
114 | 81 | ".": { |
115 | 82 | "types": { |
|
161 | 128 | "default": "./dist.node/validation/index.node.js" |
162 | 129 | } |
163 | 130 | }, |
| 131 | + "main": "./dist.node/index.node.js", |
| 132 | + "browser": "./dist.web/lib.js", |
| 133 | + "types": "./dist.d/index.node.d.ts", |
164 | 134 | "directories": { |
165 | | - "doc": "./docs", |
166 | | - "src": "./src", |
167 | 135 | "lib": "./dist.node", |
| 136 | + "doc": "./docs", |
| 137 | + "example": "./examples", |
168 | 138 | "test": "./tests", |
169 | | - "example": "./examples" |
| 139 | + "src": "./src" |
170 | 140 | }, |
| 141 | + "files": [ |
| 142 | + "dist*/**", |
| 143 | + "res" |
| 144 | + ], |
171 | 145 | "scripts": { |
| 146 | + "api-doc": "run-p --aggregate-output -lc api-doc:\\*", |
| 147 | + "api-doc:node": "npm --prefix tools/docs-gen exec -- typedoc --options ./typedoc.node.json", |
| 148 | + "api-doc:web": "npm --prefix tools/docs-gen exec -- typedoc --options ./typedoc.web.json", |
| 149 | + "build": "run-p --aggregate-output -l build:\\*", |
| 150 | + "prebuild:d": "rimraf dist.d", |
| 151 | + "build:d": "tsc -b ./tsconfig.d.json", |
| 152 | + "prebuild:node": "rimraf dist.node", |
| 153 | + "build:node": "tsc -b ./tsconfig.node.json", |
| 154 | + "prebuild:web": "rimraf dist.web", |
| 155 | + "build:web": "webpack build", |
| 156 | + "cs-fix": "npm --prefix tools/code-style exec -- eslint --fix .", |
172 | 157 | "dev-setup": "npm i && run-p --aggregate-output -lc dev-setup:\\*", |
173 | | - "dev-setup:tools": "run-p --aggregate-output -lc dev-setup:tools:\\*", |
174 | | - "dev-setup:tools:docs-gen": "npm --prefix tools/docs-gen install", |
175 | | - "dev-setup:tools:code-style": "npm --prefix tools/code-style install", |
176 | | - "dev-setup:tools:test-dependencies": "npm --prefix tools/test-dependencies install", |
177 | 158 | "dev-setup:examples": "run-p --aggregate-output -lc dev-setup:examples:\\*", |
178 | 159 | "dev-setup:examples:js": "npm --prefix examples/node/javascript i --ignore-scripts", |
179 | 160 | "dev-setup:examples:ts-cjs": "npm --prefix examples/node/typescript/example.cjs i --ignore-scripts", |
180 | 161 | "dev-setup:examples:ts-mjs": "npm --prefix examples/node/typescript/example.mjs i --ignore-scripts", |
181 | | - "prepublish": "npm run build", |
| 162 | + "dev-setup:tools": "run-p --aggregate-output -lc dev-setup:tools:\\*", |
| 163 | + "dev-setup:tools:code-style": "npm --prefix tools/code-style install", |
| 164 | + "dev-setup:tools:docs-gen": "npm --prefix tools/docs-gen install", |
| 165 | + "dev-setup:tools:test-dependencies": "npm --prefix tools/test-dependencies install", |
182 | 166 | "prepublishOnly": "run-s -lc build test", |
183 | | - "build": "run-p --aggregate-output -l build:\\*", |
184 | | - "prebuild:node": "rimraf dist.node", |
185 | | - "build:node": "tsc -b ./tsconfig.node.json", |
186 | | - "prebuild:web": "rimraf dist.web", |
187 | | - "build:web": "webpack build", |
188 | | - "prebuild:d": "rimraf dist.d", |
189 | | - "build:d": "tsc -b ./tsconfig.d.json", |
| 167 | + "prepublish": "npm run build", |
190 | 168 | "test": "run-p --aggregate-output -lc test:\\*", |
191 | | - "test:node": "c8 mocha -p", |
192 | | - "test:web": "node -e 'console.log(\"TODO: write web test\")'", |
| 169 | + "test:dependencies": "npm --prefix tools/test-dependencies exec -- knip --include dependencies,unlisted,unresolved --production", |
193 | 170 | "test:lint": "tsc --noEmit", |
| 171 | + "test:node": "c8 mocha -p", |
194 | 172 | "test:standard": "npm --prefix tools/code-style exec -- eslint .", |
195 | | - "test:dependencies": "npm --prefix tools/test-dependencies exec -- knip --include dependencies,unlisted,unresolved --production", |
196 | | - "cs-fix": "npm --prefix tools/code-style exec -- eslint --fix .", |
197 | | - "api-doc": "run-p --aggregate-output -lc api-doc:\\*", |
198 | | - "api-doc:node": "npm --prefix tools/docs-gen exec -- typedoc --options ./typedoc.node.json", |
199 | | - "api-doc:web": "npm --prefix tools/docs-gen exec -- typedoc --options ./typedoc.web.json" |
| 173 | + "test:web": "node -e 'console.log(\"TODO: write web test\")'" |
| 174 | + }, |
| 175 | + "dependencies": { |
| 176 | + "packageurl-js": "^2.0.1", |
| 177 | + "spdx-expression-parse": "^3.0.1 || ^4" |
| 178 | + }, |
| 179 | + "devDependencies": { |
| 180 | + "@types/mocha": "^10", |
| 181 | + "@types/node": "ts5.7", |
| 182 | + "@types/spdx-expression-parse": "^3", |
| 183 | + "c8": "^10", |
| 184 | + "deepmerge": "^4.2.2", |
| 185 | + "fast-glob": "^3.3.1", |
| 186 | + "memfs": "4.38.2", |
| 187 | + "mocha": "11.7.2", |
| 188 | + "npm-run-all2": "^8", |
| 189 | + "rimraf": "^6", |
| 190 | + "ts-loader": "9.5.4", |
| 191 | + "typescript": "5.9.2", |
| 192 | + "webpack": "5.101.3", |
| 193 | + "webpack-cli": "6.0.1", |
| 194 | + "webpack-node-externals": "3.0.0" |
| 195 | + }, |
| 196 | + "peerDependencies": { |
| 197 | + "ajv": "^8.12.0", |
| 198 | + "ajv-formats": "^3.0.1", |
| 199 | + "ajv-formats-draft2019": "^1.6.1", |
| 200 | + "libxmljs2": "^0.35||^0.37", |
| 201 | + "xmlbuilder2": "^3.0.2" |
| 202 | + }, |
| 203 | + "peerDependenciesMeta": { |
| 204 | + "ajv": { |
| 205 | + "optional": true |
| 206 | + }, |
| 207 | + "ajv-formats": { |
| 208 | + "optional": true |
| 209 | + }, |
| 210 | + "ajv-formats-draft2019": { |
| 211 | + "optional": true |
| 212 | + }, |
| 213 | + "libxmljs2": { |
| 214 | + "optional": true |
| 215 | + }, |
| 216 | + "xmlbuilder2": { |
| 217 | + "optional": true |
| 218 | + } |
| 219 | + }, |
| 220 | + "engines": { |
| 221 | + "node": ">=20.18.0" |
200 | 222 | } |
201 | 223 | } |
0 commit comments