Skip to content

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

Merged
jcfranco merged 2 commits intomasterfrom
jcfranco/4481-patch-es5-helpers-to-work-around-tslib-bug
May 18, 2022
Merged

fix: patch __spreadArray helper to work around tslib bug (#4481)#4575
jcfranco merged 2 commits intomasterfrom
jcfranco/4481-patch-es5-helpers-to-work-around-tslib-bug

Conversation

@jcfranco
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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! 🥇

Comment thread package.json
"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
Copy Markdown
Contributor

@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
Copy Markdown
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
Copy Markdown
Contributor

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