feat: enhance package.json finder#1286
Conversation
|
Thanks for the implementation, @reey . I really like the solution, but it needs to be safe and waterproof. For additional tests, we need to have a
|
|
@jkowalleck Thanks for the feedback. The overall idea was if there would be no Regarding the URL encoded purls it seems that the behavior is different for windows vs linux? is this intended? |
Signed-off-by: Tristan Bastian <tristan.bastian@softwareag.com>
Signed-off-by: Tristan Bastian <tristan.bastian@softwareag.com>
Signed-off-by: Tristan Bastian <tristan.bastian@softwareag.com>
9683252 to
0c59504
Compare
|
@reey, your implementation looks solid, your test beds are great! |
Signed-off-by: Tristan Bastian <tristan.bastian@softwareag.com>
Signed-off-by: Tristan Bastian <tristan.bastian@softwareag.com>
5748ee1 to
94a2286
Compare
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
There was a problem hiding this comment.
all looks good,
i will fix the yarn situation in another branch (#1265)
first, and will merge your feature afterward.
| /* Completeness */ | ||
| "skipDefaultLibCheck": false, /* Skip type checking .d.ts files that are included with TypeScript. */ | ||
| "skipLibCheck": false /* Skip type checking all .d.ts files. */ | ||
| "skipLibCheck": true /* Skip type checking all .d.ts files. */ |
There was a problem hiding this comment.
Had some issues there on my windows machine..
Reverted that
There was a problem hiding this comment.
FYI, this was the issue on windows:
npm run build
> @cyclonedx/webpack-plugin@3.12.0 build
> run-p --aggregate-output -l build:*
[build:node]
[build:node] > @cyclonedx/webpack-plugin@3.12.0 prebuild:node
[build:node] > node -r fs -e 'fs.rmSync("dist",{recursive:true,force:true})'
[build:node]
[build:node]
[build:node] > @cyclonedx/webpack-plugin@3.12.0 build:node
[build:node] > tsc -b ./tsconfig.json
[build:node]
[build:node] node_modules/@types/node/globals.d.ts(72,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'AbortSignal' must be of type '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }', but here has type '{ new (): AbortSignal; prototype: AbortSignal; }'.
ERROR: "build:node" exited with 1.
There was a problem hiding this comment.
ah, thanks, might add a windows CI/CT to have this coverred:
#1292
Signed-off-by: Tristan Bastian <tristan.bastian@softwareag.com>
package.json finderpackage.json finder
|
Thanks for the contribution, |
implements #1284
For assets loaded from a subdirectory of
node_modules, it will pick the firstpackage.jsonthat actually hasnameandversionattributes.Added a testcase for this, which verifies this functionality for the
luxonandlibphonenumber-jspackages.The
package.jsonforlibphonenumber-js/maxmisses a version number while forluxonthe name is missing.The snapshot has quite a lot of changes:
purlentries are no longer url encoded.@apollo/client/*entries have been merged into a single@apollo/cliententry@babel/runtimewas added as dependency