Skip to content

[@babel/types] Moved generators related to babel-types into the babel-types package directory. - #9245

Merged
nicolo-ribaudo merged 2 commits into
babel:masterfrom
cameron-martin:bugfix/publishing-types
Jan 8, 2019
Merged

nicolo-ribaudo merged 2 commits into
babel:masterfrom
cameron-martin:bugfix/publishing-types

Conversation

@cameron-martin

@cameron-martin cameron-martin commented Dec 27, 2018 •

Copy link
Copy Markdown
Contributor
Q                       A
Fixed Issues? Fixes #9239
Patch: Bug Fix? 👍
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? No - no idea how to automatically test this change.
Documentation PR Link
Any Dependency Changes?
License MIT

Fixes babel#9239, but only partially because the generators still import utils from outside the package directory.
@babel-bot

babel-bot commented Dec 27, 2018 •

Copy link
Copy Markdown
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9665/

@nicolo-ribaudo

Copy link
Copy Markdown
Member

Can't we also move utils and docs?

@nicolo-ribaudo nicolo-ribaudo added PR: Internal 🏠 A type of pull request used for our changelog categories pkg: types labels Dec 27, 2018
@cameron-martin

Copy link
Copy Markdown
Contributor Author

Ah I didn't notice that the docs generator pertains only to the types. I'll move that too then.

@cameron-martin

Copy link
Copy Markdown
Contributor Author

@nicolo-ribaudo Do you know what invokes that docs generator?

@nicolo-ribaudo

nicolo-ribaudo commented Dec 27, 2018 •

Copy link
Copy Markdown
Member

It used to be called by make build, but I removed it (#8142). Now it needs to be manually called to update the website, I think.

cc @xtuc Does the website automatically generate @babel/types docs using this script?

I split utils.js into one file per function to match the style of the current utils that existed in the babel-types scripts directory.
@cameron-martin cameron-martin changed the title [@babel/types] Moved type definition generators into package directory. [@babel/types] Moved generators related to babel-types into the babel-types package directory. Dec 27, 2018
@cameron-martin

cameron-martin commented Dec 27, 2018 •

Copy link
Copy Markdown
Contributor Author

I've moved the docs generator & utils into babel-types, now I just need to know if there is anything dependent on the docs generator script that needs updating.

@cameron-martin

Copy link
Copy Markdown
Contributor Author

Does anything else need to happen before this is merged?

@nicolo-ribaudo

nicolo-ribaudo commented Jan 8, 2019 •

Copy link
Copy Markdown
Member

I'm waiting for another review, but I'll merge this PR before the next release.

@existentialism existentialism left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As an aside, we need to get the generated types docs back on the website soon (babel/website#1680).

@nicolo-ribaudo
nicolo-ribaudo merged commit 778a61a into babel:master Jan 8, 2019
@nicolo-ribaudo

Copy link
Copy Markdown
Member

Thank you!

@cameron-martin
cameron-martin deleted the bugfix/publishing-types branch January 11, 2019 10:09
@lock lock Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 4, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Oct 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: types PR: Internal 🏠 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@babel/types wasn't released after being modified

4 participants