-
Notifications
You must be signed in to change notification settings - Fork 115
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
Replace <rootDir> prior to path.join() #154
Conversation
This allows outputDirectory to be formatted like <rootDir>/../some/dir. In that case, path.join() assumes the .. cancels out the <rootDir>, which seems entirely reasonable. Unfortunately, it means the final value is some/dir, and that ends up rooted at process.cwd(), which doesn't always match <rootDir>. Handling the <rootDir> replacement first allevaites this problem.
Wasn't sure if I need to manually bump the version or not. Let me know if I should do that, and I can. |
Fixes #153. |
Thank you! Please add a test so we know if this behavior regresses in future releases. |
I was looking for a place to add a test, but there weren't any tests against The |
Ok hold off for now. I'll take a closer look at this PR and the testability of things later on. |
@palmerj3 Anything I can do to help get this merged? I'm happy to refactor the |
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. - [Release notes](https://github.com/yargs/y18n/releases) - [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md) - [Commits](https://github.com/yargs/y18n/commits) Signed-off-by: dependabot[bot] <[email protected]>
…npm_and_yarn/y18n-4.0.1 Bump y18n from 4.0.0 to 4.0.1
…-config Add outputFile config and tests
fix: Upgrade uuid package
Fix displayName usage in templates
Detail: Component and governance pipeline detect security vulnerability alert about ansi-regex(v4.1.0). To update ansi-regex to v5.0.1, I update strip-ansi to v6.0.1
Fix CG by updating strip-ansi from 5.2.0 to 6.0.1
Please rebase when you can |
This allows outputDirectory to be formatted like <rootDir>/../some/dir. In that case, path.join() assumes the .. cancels out the <rootDir>, which seems entirely reasonable. Unfortunately, it means the final value is some/dir, and that ends up rooted at process.cwd(), which doesn't always match <rootDir>. Handling the <rootDir> replacement first allevaites this problem.
This has been released in 13.0.0 |
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jest-junit](https://github.com/jest-community/jest-junit) | [`12.3.0` -> `13.0.0`](https://renovatebot.com/diffs/npm/jest-junit/12.3.0/13.0.0) | [![age](https://badges.renovateapi.com/packages/npm/jest-junit/13.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/jest-junit/13.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/jest-junit/13.0.0/compatibility-slim/12.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/jest-junit/13.0.0/confidence-slim/12.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>jest-community/jest-junit</summary> ### [`v13.0.0`](https://github.com/jest-community/jest-junit/releases/v13.0.0) [Compare Source](https://github.com/jest-community/jest-junit/compare/v12.3.0...v13.0.0) Update strip-ansi to newer version - [https://github.com/jest-community/jest-junit/pull/188](https://github.com/jest-community/jest-junit/pull/188) Add noStackTrace CLI option - [https://github.com/jest-community/jest-junit/pull/160](https://github.com/jest-community/jest-junit/pull/160) Fix rootDir usage - [https://github.com/jest-community/jest-junit/pull/154](https://github.com/jest-community/jest-junit/pull/154) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/ttbud/ttbud).
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jest-junit](https://github.com/jest-community/jest-junit) | [`12.3.0` -> `13.0.0`](https://renovatebot.com/diffs/npm/jest-junit/12.3.0/13.0.0) | [![age](https://badges.renovateapi.com/packages/npm/jest-junit/13.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/jest-junit/13.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/jest-junit/13.0.0/compatibility-slim/12.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/jest-junit/13.0.0/confidence-slim/12.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>jest-community/jest-junit</summary> ### [`v13.0.0`](https://github.com/jest-community/jest-junit/releases/v13.0.0) [Compare Source](https://github.com/jest-community/jest-junit/compare/v12.3.0...v13.0.0) Update strip-ansi to newer version - [https://github.com/jest-community/jest-junit/pull/188](https://github.com/jest-community/jest-junit/pull/188) Add noStackTrace CLI option - [https://github.com/jest-community/jest-junit/pull/160](https://github.com/jest-community/jest-junit/pull/160) Fix rootDir usage - [https://github.com/jest-community/jest-junit/pull/154](https://github.com/jest-community/jest-junit/pull/154) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/ttbud/ttbud).
This allows outputDirectory to be formatted like
<rootDir>/../some/dir
. In that case,path.join()
assumes the..
cancels out the<rootDir>
, which seems entirely reasonable. Unfortunately, it means the final value issome/dir
, and that ends up rooted atprocess.cwd()
, which doesn't always match<rootDir>
.Handling the
<rootDir>
replacement first alleviates this problem.