Skip to content

fix: fix module-root.js edge case where there is a package.json in a subpath #442

fix: fix module-root.js edge case where there is a package.json in a subpath

fix: fix module-root.js edge case where there is a package.json in a subpath #442

Triggered via pull request January 9, 2024 00:45
Status Failure
Total duration 32s
Artifacts

nodejs.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 6 warnings
build (ubuntu-latest, 16.x): src/utils/module-root.js#L15
Unnecessary 'else' after 'return'
build (ubuntu-latest, 16.x): src/utils/module-root.js#L16
Replace `findup('package.json',·{·cwd:·path.dirname(callsite()[1].getFileName())·}))` with `⏎········findup('package.json',·{⏎··········cwd:·path.dirname(callsite()[1].getFileName()),⏎········}),⏎······);`
build (ubuntu-latest, 16.x)
Process completed with exit code 1.
build (ubuntu-latest, 20.x): src/utils/module-root.js#L15
Unnecessary 'else' after 'return'
build (ubuntu-latest, 20.x): src/utils/module-root.js#L16
Replace `findup('package.json',·{·cwd:·path.dirname(callsite()[1].getFileName())·}))` with `⏎········findup('package.json',·{⏎··········cwd:·path.dirname(callsite()[1].getFileName()),⏎········}),⏎······);`
build (ubuntu-latest, 20.x)
Process completed with exit code 1.
build (ubuntu-latest, 18.x): src/utils/module-root.js#L15
Unnecessary 'else' after 'return'
build (ubuntu-latest, 18.x): src/utils/module-root.js#L16
Replace `findup('package.json',·{·cwd:·path.dirname(callsite()[1].getFileName())·}))` with `⏎········findup('package.json',·{⏎··········cwd:·path.dirname(callsite()[1].getFileName()),⏎········}),⏎······);`
build (ubuntu-latest, 18.x)
Process completed with exit code 1.
build (ubuntu-latest, 16.x)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build (ubuntu-latest, 16.x): src/utils/index.js#L27
Unexpected unnamed function
build (ubuntu-latest, 20.x)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build (ubuntu-latest, 20.x): src/utils/index.js#L27
Unexpected unnamed function
build (ubuntu-latest, 18.x)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build (ubuntu-latest, 18.x): src/utils/index.js#L27
Unexpected unnamed function