-
Notifications
You must be signed in to change notification settings - Fork 326
Patch Preact translate bug with patch-package #3504
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
Patch Preact translate bug with patch-package #3504
Conversation
package.json
Outdated
| "test:parity-ci": "OKTA_SIW_SKIP_FLAKY=true yarn codegen && run-p -r test:parity-setup test:parity-run", | ||
| "test:parity-ci-flaky": "OKTA_SIW_GEN3=true OKTA_SIW_ONLY_FLAKY=true yarn test:parity-ci" | ||
| "test:parity-ci-flaky": "OKTA_SIW_GEN3=true OKTA_SIW_ONLY_FLAKY=true yarn test:parity-ci", | ||
| "postinstall": "if [[ -z \"$SKIP_POSTINSTALL\" ]]; then patch-package ; fi" |
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.
This command would not work on Windows.
Tried with GitBash and received error "-z was unexpected at this time."
Maybe we can just strip out postinstall command from npm package here (since we don't export Gen3 anyway in npm package, and I hope this fix is temporary)?
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.
Ooh, didn't know about this prepack routine. Good idea, will look into it
denysoblohin-okta
left a comment
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.
Please rebase to the latest odyssey-1.x commit.
Should resolve translate="yes" issues in snapshots
c1ceca9 to
7cbfa55
Compare
* Patch preact translate bug with patch-package
* Patch preact translate bug with patch-package
Description:
SKIP_POSTINSTALLflag to ayarn installcall which prevents thepostinstallpatch-packagecall from running. This is needed for theverify-package.shscript to work because theyarn installcalls from that script were coming from the installation of the SIW as a dependency for a test app, which was breaking since the test app itself did not havepatch-packageinstalled. The english leak test suite doesn't needpatch-packageanywhere except foryarn installcalls from the package rootPR Checklist
Issue:
Reviewers:
Screenshot/Video:
Highlighted
divwith "Label" is imported from Odyssey and was passedtranslate="no"as a propDownstream Monolith Build: