Skip to content
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

fix: patch __spreadArray helper to work around tslib bug (#4481) #4575

Merged

Conversation

jcfranco
Copy link
Member

Related Issue: #4481

Summary

This patches the __spreadArray tslib helper emitted from buildEs5 to handle spreading of strings within arrays.

@jcfranco jcfranco requested a review from benelan May 18, 2022 02:12
@jcfranco jcfranco self-assigned this May 18, 2022
@jcfranco jcfranco requested a review from a team as a code owner May 18, 2022 02:12
@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label May 18, 2022
Copy link
Member

@benelan benelan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🥇

@@ -48,6 +48,7 @@
"util:copy-icons": "cpy \"./node_modules/@esri/calcite-ui-icons/js/*.json\" \"./src/components/icon/assets/icon/\" --flat",
"util:deploy-next": "npm run util:prep-next && npm run util:push-tags && npm run util:publish-next",
"util:deploy-next-from-ci": "ts-node --project ./tsconfig-node-scripts.json support/deployNextFromCI.ts",
"util:patch-es5-helpers": "ts-node support/patchES5Helpers.ts",
Copy link
Member

@benelan benelan May 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add && npm run util:patch-es5-helpers to the end of these NPM scripts:

  • release:prepare
  • util:prep-next
  • util:clean-tested-build

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it to build since all of the above reference it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol I literally looked for all the scripts that ran build to make that suggestion. Long day yesterday

@jcfranco jcfranco merged commit 756437b into master May 18, 2022
@jcfranco jcfranco deleted the jcfranco/4481-patch-es5-helpers-to-work-around-tslib-bug branch May 18, 2022 15:47
@github-actions github-actions bot added this to the Sprint 05/09 - 05/20 milestone May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants