-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 <[email protected]>
Signed-off-by: Tristan Bastian <[email protected]>
Signed-off-by: Tristan Bastian <[email protected]>
9683252
to
0c59504
Compare
@reey, your implementation looks solid, your test beds are great! |
Signed-off-by: Tristan Bastian <[email protected]>
Signed-off-by: Tristan Bastian <[email protected]>
5748ee1
to
94a2286
Compare
Signed-off-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all looks good,
i will fix the yarn
situation in another branch (#1265)
first, and will merge your feature afterward.
tsconfig.json
Outdated
@@ -99,7 +99,7 @@ | |||
|
|||
/* 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had some issues there on my windows machine..
Reverted that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, this was the issue on windows:
npm run build
> @cyclonedx/[email protected] build
> run-p --aggregate-output -l build:*
[build:node]
[build:node] > @cyclonedx/[email protected] prebuild:node
[build:node] > node -r fs -e 'fs.rmSync("dist",{recursive:true,force:true})'
[build:node]
[build:node]
[build:node] > @cyclonedx/[email protected] 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, thanks, might add a windows CI/CT to have this coverred:
#1292
Signed-off-by: Tristan Bastian <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
package.json
finderpackage.json
finder
Signed-off-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
Thanks for the contribution, |
implements #1284
For assets loaded from a subdirectory of
node_modules
, it will pick the firstpackage.json
that actually hasname
andversion
attributes.Added a testcase for this, which verifies this functionality for the
luxon
andlibphonenumber-js
packages.The
package.json
forlibphonenumber-js/max
misses a version number while forluxon
the name is missing.The snapshot has quite a lot of changes:
purl
entries are no longer url encoded.@apollo/client/*
entries have been merged into a single@apollo/client
entry@babel/runtime
was added as dependency